Bug#1039704: Sendmail does not notice when /etc/resolv.conf changes
Package: sendmail-base
Version: 8.17.1.9-2
Hi,
As far as I understood, since Debian 12, isc-dhcp-client is considered
obsolete, and dhcpcd is recommended instead.
However, dhcpcd appears to be slightly slower, with the result that on
startup sendmail sees an empty /etc/resolv.conf file.
Apparently, sendmail only reads this file once at startup (and on
reload), meaning that it won't be able to process outbound mails, as it
can't look any domain names up.
There actually *is* a /usr/share/sendmail/dynamic script meant to reload
sendmail when the network changes (i.e. nameservers become available),
but unfortunately it only leaves 2 choices:
1. DAEMON_NETMODE="Static" => do not reload sendmail on network change
2. DAEMON_NETMODE="Dynamic" => recompile the entire configuration, and
reload sendmail on network change
Not only is Static the default (which means that people having newly
upgraded to Debian 12 might miss it), but Dynamic is over the top (we
don't need a complete recompilation of the configuration: it never
mentions the server's anywhere)
So could we have a "Semi-Dynamic" setting instead, which would be the
default after upgrade, and which would only do the reload, without
preceding config recompilation?
Thanks,
Alain
--
Alain Knaff
Ingénieur Informaticien
LE GOUVERNEMENT DU GRAND-DUCHÉ DE LUXEMBOURG
Ministère de l'Environnement, du Climat et du Développement durable
Administration de l'environnement
1, avenue du Rock'n'Roll . L-4361 Esch-sur-Alzette
Tél. (+352) 40 56 56-309
E-Mail: Alain.Knaff@aev.etat.lu
www.emwelt.lu . www.environnement.public.lu . www.luxembourg.lu
Reply to: