Postfix : mail for domain.com loops back to myself
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Postfix : mail for domain.com loops back to myself
Hello,
I have an postfix with 5 IP and only one domain "domain.com"
When i try to send an email to user@domain.com, i have this error :
Code:
This is the mail system at host domain.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<user@domain.com>: mail for domain.com loops back to myself
Final-Recipient: rfc822; user@domain.com
Original-Recipient: rfc822;user@domain.com
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for domain.com loops back to myself
@ IN SOA dns104.ovh.net. tech.ovh.net. (2013051603 86400 3600 3600000 300)
IN NS ns104.ovh.net.
IN NS dns104.ovh.net.
IN NS ns1.domain.com.
IN MX 20 domain.com.
IN A 198.xxx.xx.18
IN A 198.xxx.xx.17
IN A 198.xxx.xx.68
IN A 198.xxx.xx.66
IN A 198.xxx.xx.67
IN TXT "v=spf1 a ptr mx:domain.com -all"
_domainkey.domain.com IN TXT "t=y; o=-;".
default._domainkey IN TXT "( k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqAp1WvQBqAGqrtwM2dN4TWmTZB1r5yZwQR7YzIcPAZKp/TJJeNJzY3FUPCOT95PbelP/24leKriCvdP85squ5gcSU3Xb7/NpbcS1G5NzUNimUSnoLnfR7DfeTrCabn2UnHOLzv8PflS7TtFiHlQIDAQAB )"
ftp IN CNAME domain.com.
imap IN CNAME domain.com.
mail IN MX 10 domain.com.
mail IN A 198.xxx.xx.18
mail IN A 198.xxx.xx.17
mail IN A 198.xxx.xx.68
mail IN A 198.xxx.xx.66
mail IN A 198.xxx.xx.67
ns1 IN A 198.xxx.xx.17
pop3 IN CNAME domain.com.
smtp IN CNAME domain.com.
www IN CNAME domain.com.
I'm running on centos 6.
Thanks in advance for anyone who has any insight one this.
Thanks, while you were posting the logs I checked and missed the "inet_interfaces" field, did you configure that? how?
That line should be like:
inet_interfaces=all
May 16 20:09:09 server1 postfix/smtpd[30089]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
May 16 20:09:09 server1 postfix/smtpd[30089]: connect from mail-la0-f41.google.com[209.85.215.41]
May 16 20:09:09 server1 postfix/randomizer[30097]: Using: 4 Transport Service
May 16 20:09:09 server1 postfix/randomizer[30097]: Using: 3 Transport Service
May 16 20:09:09 server1 postfix/randomizer[30097]: Using: 1 Transport Service
May 16 20:09:10 server1 postfix/randomizer[30097]: Using: 0 Transport Service
May 16 20:09:10 server1 postfix/smtpd[30089]: 090FA2402D28: client=mail-la0-f41.google.com[209.85.215.41]
May 16 20:09:10 server1 postfix/cleanup[30098]: 090FA2402D28: message-id=<CAHc-r7_pW8+1aWgMXsy4QGEUKvSTanrB9qaqMNk+5ce6mJuQgw@mail.gmail.com>
May 16 20:09:10 server1 opendkim[17484]: 090FA2402D28: mail-la0-f41.google.com [209.85.215.41] not internal
May 16 20:09:10 server1 opendkim[17484]: 090FA2402D28: not authenticated
May 16 20:09:10 server1 opendkim[17484]: 090FA2402D28: DKIM verification successful
May 16 20:09:10 server1 opendkim[17484]: 090FA2402D28: s=20120113 d=gmail.com SSL
May 16 20:09:10 server1 postfix/qmgr[28742]: 090FA2402D28: from=<mymail@gmail.com>, size=1842, nrcpt=1 (queue active)
May 16 20:09:10 server1 postfix/randomizer[30097]: Using: 0 Transport Service
May 16 20:09:10 server1 postfix/smtpd[30089]: disconnect from mail-la0-f41.google.com[209.85.215.41]
May 16 20:09:10 server1 postfix-rotate1/smtp[30100]: 090FA2402D28: to=<user@domain.com>, relay=none, delay=1.1, delays=0.85/0.01/0.22/0, dsn=5.4.6, status=bounced (mail for domain.com loops back to myself)
May 16 20:09:10 server1 postfix/cleanup[30098]: E3EF12402EEE: message-id=<20130516160910.E3EF12402EEE@domain.com>
May 16 20:09:10 server1 postfix/qmgr[28742]: E3EF12402EEE: from=<>, size=3736, nrcpt=1 (queue active)
May 16 20:09:10 server1 postfix/bounce[30103]: 090FA2402D28: sender non-delivery notification: E3EF12402EEE
May 16 20:09:10 server1 postfix/randomizer[30097]: Using: 2 Transport Service
May 16 20:09:10 server1 postfix/qmgr[28742]: 090FA2402D28: removed
May 16 20:09:12 server1 postfix-rotate3/smtp[30104]: E3EF12402EEE: to=<mymail@gmail.com>, relay=gmail-smtp-in.l.google.com[173.xxx.xx.26]:25, delay=1.6, delays=0.01/0.01/0.68/0.95, dsn=2.0.0, status=sent (250 2.0.0 OK 1368720552 gf3si1919096bkc.200 - gsmtp)
May 16 20:09:12 server1 postfix/qmgr[28742]: E3EF12402EEE: removed
It seems that the DNS query through dig does not have enough information, I can't check properly because I can't your server.
Besides, your dig query asks the server 8.8.8.8 and not any of your DNS server 198.X.X.Y.
maybe that's what is causing your problems
Compare the output from this commands:
#dig -t mx domain.com
and
#dig -t mx yahoo.com
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.