Control: clone -1 -2 Control: retitle -1 postfix: uses an obsolete resolv.conf file in its chroot Control: retitle -2 postfix: misleading info in error message "Host or domain name not found[...]" Control: severity -2 minor
On 2020-07-10 10:11:38 +0200, Vincent Lefevre wrote: > Package: postfix > Version: 3.5.4-1 > Severity: important > > postfix cannot send mail if IPv6 is local only. In /var/log/mail.log > I've got errors like > > Jul 10 09:53:22 zira postfix/smtp[865322]: 4C24DC218EE: to=<xxx>, relay=none, > delay=2409, delays=2389/0.03/20/0, dsn=4.4.3, status=deferred (Host or domain > name not found. Name service error for name=joooj.vinc17.net type=AAAA: Host > not found, try again) > > for several dozens of minutes. I've eventually found the cause of the issue. First the error message is misleading: this has nothing to do with IPv6 (type=AAAA); it should be corrected (I'm cloning this bug as: misleading info in error message "Host or domain name not found[...]"). The real issue is that the postfix service was started before the network at boot time, and in particular the DHCP client. Thus qmgr was using an obsolete /etc/resolv.conf file, copied to its chroot (my machine is a laptop, which was using WiFi, and at the last boot, I was using Ethernet). There should probably be a script to restart postfix when the DHCP client modifies the /etc/resolv.conf file. This is a bit of a hack, but I don't see ay other solution without modify postfix itself. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)