thorsten
2006-Sep-22 11:54 UTC
[CentOS] postfix problem since update: mail loops back to myself
Hello I already asked in the IRC, but apart from recommendations reading the mailing lists, nobody could help me. I read all postfix-update related articles but non of them seemed to match or resolve my problem: Everything works fine, apart from one host, which we are doing MX backups for (backupdomain.com): Sep 22 12:18:58 homer postfix/smtp[18784]: 6BD7B1189E4: to=<user at backupdomain.com>, relay=none, delay=53, status=bounced (mail for backupdomain.com loops back to myself) Sep 22 12:18:58 homer postfix/cleanup[18791]: B3DD6118A13: message-id=<20060922111858.B3DD6118A13 at mail.mydomain.com> Sep 22 12:18:58 homer postfix/qmgr[18776]: B3DD6118A13: from=<>, size=2758, nrcpt=1 (queue active) Sep 22 12:18:58 homer postfix/qmgr[18776]: 6BD7B1189E4: removed The backup MX in our domain record for the backupdomain has priority 20, we 10. dig MX mydomain.com mydomain.com. 86400 IN MX 20 mail.backupdomain.com. mydomain.com. 86400 IN MX 10 mail.mydomain.com. postfix's transport_map is configured to use mysql. a postmap -q backupdomain.com mysql:/etc/postfix/sql/transport returns: smtp:mail.backupdomain.com so it was forwarding a message to that domain. That worked fine. After the postfix upgrade, this stopped working. The target the error, I removed the smtp:mail.backupdomain.com entry from the mysql table and also removed the MX entry for the backupdomain, which I was told, could cause problems as well. It still says: mail for backupdomain.com loops back to myself. So, I am wondering, where postfix gets this information from? Can you give me some further advise? thx, thorsten.
David Hrbáč
2006-Sep-22 11:57 UTC
[CentOS] postfix problem since update: mail loops back to myself
thorsten napsal(a):> Hello > > I already asked in the IRC, but apart from recommendations reading the > mailing lists, nobody could help me. I read all postfix-update related > articles but non of them seemed to match or resolve my problem: > > Everything works fine, apart from one host, which we are doing MX > backups for (backupdomain.com): > > Sep 22 12:18:58 homer postfix/smtp[18784]: 6BD7B1189E4: > to=<user at backupdomain.com>, relay=none, delay=53, status=bounced (mail > for backupdomain.com loops back to myself) > Sep 22 12:18:58 homer postfix/cleanup[18791]: B3DD6118A13: > message-id=<20060922111858.B3DD6118A13 at mail.mydomain.com> > Sep 22 12:18:58 homer postfix/qmgr[18776]: B3DD6118A13: from=<>, > size=2758, nrcpt=1 (queue active) > Sep 22 12:18:58 homer postfix/qmgr[18776]: 6BD7B1189E4: removed > > The backup MX in our domain record for the backupdomain has priority 20, > we 10. > > dig MX mydomain.com > > mydomain.com. 86400 IN MX 20 mail.backupdomain.com. > mydomain.com. 86400 IN MX 10 mail.mydomain.com. > > > postfix's transport_map is configured to use mysql. a > > postmap -q backupdomain.com mysql:/etc/postfix/sql/transport > returns: > smtp:mail.backupdomain.com > > so it was forwarding a message to that domain. That worked fine. > > After the postfix upgrade, this stopped working. The target the error, I > removed the smtp:mail.backupdomain.com entry from the mysql table and > also removed the MX entry for the backupdomain, which I was told, could > cause problems as well. > > It still says: mail for backupdomain.com loops back to myself. > > So, I am wondering, where postfix gets this information from? Can you > give me some further advise? > > thx, > thorsten.Thorsten, send postfix/mysql configuration files. Majority of mysql+postfix howtos is broken and copied from one source. So send the configs. David
Alex Palenschat
2006-Sep-22 16:55 UTC
[CentOS] postfix problem since update: mail loops back to myself
> David Hrb?? wrote: > > OK, so let's sum it up. > > > > Let's have domain1.tld and domain2.tld. > > > > domain1.tld has: > > 20 server.domain2.tld > > 10 server.domain1.tld > > > > domain2.tld has: > > 20 server.domain1.tld > > 10 server.domain2.tld > > > > on server.domain1.tld we need to have: > > domain1.tld within virtual domains or local domain > domain2.tld within > > transport > > > > on server.domain2.tld we need to have: > > domain2.tld within virtual domains or local domain > domain1.tld within > > transport > > > > that's correct. > _______________________________________________I am a bit noobish with postfix and think you would be better served by posting to the postfix-users mailing list, but have you ruled out name resolution as the culprit? Is it possible that bind has also been updated at the same time. Where does your resolver on the mail server think the backup domain is? Also, did your /etc/hosts file change in the upgrade or subsequent to that? Just a guess, alex