LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-09-2007, 07:14 AM   #1
bence8810
Member
 
Registered: Nov 2004
Location: Budapest, Hungary
Distribution: Debian
Posts: 110

Rep: Reputation: 15
Email server hosting multiple Domains


Hi

I am trying to configure my Debian server to act as an Email server.

I have followed this document for the installation, and basic config:

http://koivi.com/exim4-config/

I have 2 domains I want to use, and I set up the multiple domain approach layed out in the above mentined website. I can receive email to both domains, but I also want to connect from POP3 clients to both domains with their own mailservers, like pop3.1stdomain.com and pop3.2nddomain.com

How do I achieve this? Now I can only connect with my main domains FQDN, but I cannot use the other.

Both domains are pointed to the server, I am using Exim4 for email fetch, and courier POP3 and IMAP.

Thanks,

Ben
 
Old 02-10-2007, 12:05 PM   #2
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
Q1: Do you have a POP3 server setup? Receiving mail through an SMTP server and picking up your mail through a POP3 server are different processes and sometimes require different software packages. For example, my server runs Postfix as an SMPT server and Dovecot as a POP3 server. I am not familiar with Exim though, so it may have the capability to do both.

Q2: Do you have your POP3 server setup to retrieve email from the two domains? You should be able to do this using the main host name of your box or IP address of your box. (i.e. when you setup your mail client, just enter your IP address as the pop3 mail serer).

Once that is accomplished, you know that your POP3 server is setup correctly.

Q3: If you have a POP3 server installed and can retrieve mail successfully using the IP address of the box, the only questions that remains is: do you have DNS setup correctly for the two pop3 server FQDNs that you want to use?

This is for a CentOS box, but you may find some useful information in the mail section:

http://www.howtoforge.com/perfect_setup_centos_4.4

Last edited by mrtwice; 02-10-2007 at 12:07 PM.
 
Old 02-10-2007, 03:09 PM   #3
bence8810
Member
 
Registered: Nov 2004
Location: Budapest, Hungary
Distribution: Debian
Posts: 110

Original Poster
Rep: Reputation: 15
Hi.

Thanks for picking this up, I will answer below one by one.

Quote:
Originally Posted by mrtwice
Q1: Do you have a POP3 server setup? Receiving mail through an SMTP server and picking up your mail through a POP3 server are different processes and sometimes require different software packages. For example, my server runs Postfix as an SMPT server and Dovecot as a POP3 server. I am not familiar with Exim though, so it may have the capability to do both.
Yes, I do. Exim just receives the emails, but wont serve it up by itself, so I use Courier-POP3 and IMAP servers. They run just fine and I am able to fetch my emails both with POP and IMAP

Quote:
Q2: Do you have your POP3 server setup to retrieve email from the two domains? You should be able to do this using the main host name of your box or IP address of your box. (i.e. when you setup your mail client, just enter your IP address as the pop3 mail serer).
Yes, this works. I can use my IP address, or my domain name which is in /etc/hostname
The problem is that it wouldnt work by the FQDN of my other domains. I also have the websites hosted for both domain, and they work fine. www.domainA.com and www.domainB.com.

mail.domainA.com and mail.domainB.com both point to the static UP as well. But I can only pick up email through POP3 or IMAP using mail.domainA.com or the Static IP.


Quote:
Q3: If you have a POP3 server installed and can retrieve mail successfully using the IP address of the box, the only questions that remains is: do you have DNS setup correctly for the two pop3 server FQDNs that you want to use?
DNS is set up correctly, as no matter which name or alias I ping, it always resolves to the same IP. I guess its a problem somewhere with courier, but just cannot find the answer.

Thanks for any pointers,

Ben
 
Old 02-10-2007, 03:14 PM   #4
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
Q1: do you get an error message from your mail client?

Q2: have you checked the courier log files for error messages?
 
Old 02-10-2007, 03:28 PM   #5
bence8810
Member
 
Registered: Nov 2004
Location: Budapest, Hungary
Distribution: Debian
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrtwice
Q1: do you get an error message from your mail client?

The connection to the server has failed. Account: 'mail.domainB.com', Server: 'mail.domainB.com', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E


Quote:
Q2: have you checked the courier log files for error messages?
Nothing shows up in the log file.. if /var/log/mail.err is the log file for Courier. Cannot find anything else.

Thanks

Ben
 
Old 02-11-2007, 03:07 PM   #6
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
Try using telnet to get to your mail server on port 110 from the same box that your email client is on:

Code:
telnet mail.domainB.com 110


Do you get a response?
 
Old 02-11-2007, 03:33 PM   #7
bence8810
Member
 
Registered: Nov 2004
Location: Budapest, Hungary
Distribution: Debian
Posts: 110

Original Poster
Rep: Reputation: 15
Hi

You were totally right, this showed me my blidness. I wasnt getting through, and I wasnt getting through to domainA either. Reason being that from where I tried, port 110 was blocked. I had IMAP set up in a client for my domainA domain, and I only tried to connect the client with POP3 to domainB as I didnt have the IMAP folders configured on the server. You know, this had me going for weeks..... What a silly overlook.

Thanks a lot, and this is how it should be, working, and me thinking it isnt until I realize what I miss......

Best,

Ben
 
Old 02-11-2007, 03:53 PM   #8
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
Glad I could help, thanks for letting me know that you resolved the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: hosting multiple domains fturcic Linux - Software 1 02-15-2005 06:39 PM
Hosting multiple domains Imanerd Linux - Networking 2 01-04-2005 09:10 PM
Securing Multiple Domains on 1 Server jgillin Linux - Security 1 05-10-2004 07:44 AM
Multiple email addresses with qmail (same prefix, different domains) Shaolyen Linux - General 1 11-17-2003 12:50 AM
multiple domains - and email hrc Linux - Software 4 08-04-2003 12:15 PM


All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration