On 2021-12-29 08:37:30 -0500, Scott Kitterman wrote: > On Fri, 10 Jul 2020 11:32:18 +0200 Vincent Lefevre <vinc...@vinc17.net> wrote: > > 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. > > There already is one of these, /etc/resolvconf/update-libc.d/postfix. > Based on what's shipped in that file and the resolvconf > documentation [1], it looks to me like that should be doing exactly > what you want.
I don't have resolvconf installed (it is not installed by default). If you think that this is the way this should be done, then perhaps postfix should recommend resolvconf. -- 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)