Why my 2 mail server cannot send mail to each other via Sendmail?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why my 2 mail server cannot send mail to each other via Sendmail?
Hello everyone.
I'm Nelson, a newbie of Linux. I've setup two mail servers in same subnet (192.168.20.x), both of them have pointed a mx records and I found that each of the mail server can send or receive mails to/from other mail servers like Yahoo.com, Gmail.com...etc via Openwebmail.
But they cannot send or receive mails each other.
I've set the hostname to avoid the collision from HELO message.
Is there anything else I need to set to achieve?
Please kindly advise me. Thank you very much.
Enclosed herewith my two mail servers setting.
DNS setting (provided by NetworkSolutions.com)
(A) happymacao.com
(A) mail1.happymacao.com
(A) mail2.happymacao.com
(A) mayp.happymacao.com
(A) mail.mayp.happymacao.com
MX for happymacao.com
(MX) 10 mail1.happymacao.com
(MX) 20 mail2.happymacao.com
MX for the subdomain of mayp.happymacao.com
(MX) 10 mail.mayp.happymacao.com
Quote:
"mail1.happymacao.com" configuration
/etc/hosts
192.168.20.71 mail.happymacao.com MAIL
192.168.20.71 mail1.happymacao.com MAIL
192.168.20.71 happymacao.com MAIL
192.168.20.82 mail.mayp.happymacao.com TS2
192.168.20.82 mayp.happymacao.com TS2
127.0.0.1 mail.happymacao.com MAIL
127.0.0.1 mail1.happymacao.com MAIL
127.0.0.1 happymacao.com MAIL
127.0.0.1 localhost.localdomain localhost MAIL
Connect:192.168.20.71 RELAY
Connect:192.168.20.82 RELAY
Connect:172.xx.xx.71 RELAY <-- Intranet IP (for mapping with Internet IP)
Connect:172.xx.xx.82 RELAY <-- Intranet IP (for mapping with Internet IP)
Connect:mail.happymacao.com RELAY
Connect:mail1.happymacao.com RELAY
Connect:mail2.happymacao.com RELAY
About halfway down the page it discusses the configuration for sendmail. It is discussing it in a debian context, but once you have sendmail installed, I would think the configuration is the same for any linux distribution:
1. Can the servers ping each other?
2. If yes, telnet localhost port 25.
3. Do also a telnet on port 25 to server2 from server1 and vice versa.
On default sendmail.cf, you need to edit this line
O DaemonPortOptions=Port=smtp,Name=MTA
Make sure to remove the 127.0.0.1 on that line. Hope it helps.
Hi tajamari,
Thanks for you advised, I've already removed the line which you pointed above.
Sorry for all good helpers first, due to my office during relocating. I haven't enough time for test now....Just...sigh.
I will report again after test.
Thanks again.
regards,
Nelson
Last edited by nelson.ck.sit; 12-09-2008 at 07:29 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.