LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Email server hosting multiple Domains (https://www.linuxquestions.org/questions/linux-server-73/email-server-hosting-multiple-domains-526990/)

bence8810 02-09-2007 06:14 AM

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

mrtwice 02-10-2007 11:05 AM

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

bence8810 02-10-2007 02:09 PM

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

mrtwice 02-10-2007 02:14 PM

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

Q2: have you checked the courier log files for error messages?

bence8810 02-10-2007 02:28 PM

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

mrtwice 02-11-2007 02:07 PM

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?

bence8810 02-11-2007 02:33 PM

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

mrtwice 02-11-2007 02:53 PM

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


All times are GMT -5. The time now is 07:00 AM.