Marko Cupać
2014-Dec-25 19:48 UTC
10.1-RELEASE-p3 possibly broke parts of dns resolution in postfix
Hi, it appears that update to 10.1-RELEASE-p3 broke my mysql maps in postfix, where hosts is specified with FQDN. Changing it to IP address works around it. This worked, but does not work anymore:> pacija at mail:~ % sudo cat /usr/local/etc/postfix/smtpd_sender_login_maps.cf > user = someuser > password = somepass > hosts = host.example.org > dbname = somedatabase > query = SELECT goto FROM alias WHERE address = '%s' AND active = 1With conf like this I see the following message in maillog:> Dec 25 16:47:15 mail postfix/submission/smtpd[1885]: warning: connect to mysql server host.example.org: Unknown MySQL server host 'host.example.org' (0)This works:> pacija at mail:~ % sudo cat /usr/local/etc/postfix/smtpd_sender_login_maps.cf > user = someuser > password = somepass > hosts = 192.168.1.10 > dbname = somedatabase > query = SELECT goto FROM alias WHERE address = '%s' AND active = 1Also, when submitting mail to submission port, it does not resolve recipient domains, so mail is being rejected when reject_non_fqdn_recipient and reject_unknown_recipient_domain are on. Both forward and reverse drill are resolving fine. -- Marko Cupa? https://www.mimar.rs
Steven Hartland
2014-Dec-25 20:56 UTC
10.1-RELEASE-p3 possibly broke parts of dns resolution in postfix
-p3 didn't contain any changes to DNS lookups -p2 however did include a fix to unbound. Its still very unlikely that either of these caused a breakage as we would have had a flurry of reports before now if there was an issue. Given this I would recommend you check for an unrelated issue, possibly configuration else where? On 25/12/2014 19:48, Marko Cupa? wrote:> Hi, > > it appears that update to 10.1-RELEASE-p3 broke my mysql maps in > postfix, where hosts is specified with FQDN. Changing it to IP address > works around it. > > This worked, but does not work anymore: >> pacija at mail:~ % sudo cat /usr/local/etc/postfix/smtpd_sender_login_maps.cf >> user = someuser >> password = somepass >> hosts = host.example.org >> dbname = somedatabase >> query = SELECT goto FROM alias WHERE address = '%s' AND active = 1 > With conf like this I see the following message in maillog: >> Dec 25 16:47:15 mail postfix/submission/smtpd[1885]: warning: connect to mysql server host.example.org: Unknown MySQL server host 'host.example.org' (0) > This works: >> pacija at mail:~ % sudo cat /usr/local/etc/postfix/smtpd_sender_login_maps.cf >> user = someuser >> password = somepass >> hosts = 192.168.1.10 >> dbname = somedatabase >> query = SELECT goto FROM alias WHERE address = '%s' AND active = 1 > Also, when submitting mail to submission port, it does not resolve > recipient domains, so mail is being rejected when > reject_non_fqdn_recipient and reject_unknown_recipient_domain are on. > > Both forward and reverse drill are resolving fine.