So I have 2 different domains hosted on different servers.
domain1.com is hosted on Windows:
- DNS(MS) is 10.1.1.39
- WEB(MS) is 10.1.1.21
- Exchange(MS) is 10.1.1.180
domain2.com is hosted on Linux. All running from one box 10.1.1.41
Now I can receive mail from domain1.com to domain2.com, but I cannot send from domain2.com to domain1.com. I have a LAMP server setup running on CentOS 6.2 I am using courier, postfix, and maildrop.
I copied the log file from my LAMP server maillog when I try to send an e-mail from domain2 to domain1
Apr 26 13:46:42 ns1 postfix/smtpd[4820]: connect from unknown[127.0.0.1] Apr 26 13:46:42 ns1 postfix/smtpd[4820]: A2D37101E78: client=unknown[127.0.0.1] Apr 26 13:46:42 ns1 postfix/cleanup[4808]: A2D37101E78: message-id= Apr 26 13:46:42 ns1 postfix/smtpd[4820]: disconnect from unknown[127.0.0.1] Apr 26 13:46:42 ns1 postfix/qmgr[4452]: A2D37101E78: from=, size=1028, nrcpt=1 (queue active) Apr 26 13:46:42 ns1 amavis[18113]: (18113-07) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] -> , Message-ID: , mail_id: bGLdfgjwN6y6, Hits: -0.999, size: 597, queued_as: A2D37101E78, 9406 ms Apr 26 13:46:42 ns1 postfix/smtp[4809]: 39578101E69: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=9.5, delays=0.12/0.01/0/9.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=18113-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A2D37101E78) Apr 26 13:46:42 ns1 postfix/qmgr[4452]: 39578101E69: removed Apr 26 13:46:42 ns1 postfix/smtp[4828]: A2D37101E78: to=, relay=domain1.com[10.1.1.21]:25, delay=0.08, delays=0.06/0.02/0/0, dsn=4.4.2, status=deferred (lost connection with domain1.com[10.1.1.21] while receiving the initial server greeting)
So here is a copy of my Microsoft DNS settings.
Name Type Data (same as parent) Host (A) 10.1.1.21 (same as parent) Name Server NS ns1.domain1.com ns1 Host (A) 10.1.1.39 mail Host (A) 10.1.1.180 exchange Host (A) 10.1.1.180 www Host (A) 10.1.1.21 mail Mail Exchanger(MX) exchange.domain1.com
DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.2 domain1.com MX global options: +cmd Got answer: -HEADER- opcode: QUERY, status: NOERROR, id: 53574 flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 QUESTION SECTION: domain1.com. IN MX AUTHORITY SECTION: domain1.com. 3600 IN SOA ns1.Workgroupdomain.domain1.com. hostmaster.Workgroupdomain.domain1.com. 69 900 600 86400 900 Query time: 1 msec SERVER: 10.1.1.39#53(10.1.1.39) WHEN: Fri Apr 27 12:40:56 2012 MSG SIZE rcvd: 112
So looking at the maillog from postfix and these settings I guess the real question I have is..
How do I get postfix to see and use the MX record on the DNS server or create some sort of overide for postfix to know that if it wants to send mail to domain1.com it has to use the mail server of mail.domain1.com?
Any help is appreciated.