Package: postfix Version: 3.6.3-4 Severity: wishlist The postfix daemons keep a copy of /etc/resolv.conf in their chroot, which becomes obsolete if /etc/resolv.conf changes. In bug 964762, a suggestion was to install resolvconf, as the postfix package provides
/etc/resolvconf/update-libc.d/postfix to restart postfix when the DNS servers change. However, resolvconf does more than that and may have issues (e.g. bug 1003135), so that the user may not want to use it. An alternate solution would just be to use a daemon that could run commands when some file changes (in particular, to restart postfix when /etc/resolv.conf changes). It should not be yet another daemon specific to postfix, but an existing solution, with a particular configuration for postfix. It seems that there are several such solutions, which could be considered, such as incron, iwatch or systemd's path unit[*]. The latter solution would work only for systemd users, but I think that's OK for the average user. [*] https://www.freedesktop.org/software/systemd/man/systemd.path.html If it is possible to cleanly use one or several such solutions without any drawback, this should be done, so that things work by default. Alternate solutions could be added to the documentation. If several solutions are supported, only one should be enabled (it could be a user choice stored in a variable, which could be tested by scripts like /etc/resolvconf/update-libc.d/postfix, or some other method[**]). [**] A bit like these cron scripts that quit immediately if they detect that systemd is used, because a systemd timer is also provided by the package. -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages postfix depends on: ii adduser 3.118 ii cpio 2.13+dfsg-7 ii debconf [debconf-2.0] 1.5.79 ii dpkg 1.21.1 ii e2fsprogs 1.46.5-2 ii init-system-helpers 1.61 ii libc6 2.33-1 ii libdb5.3 5.3.28+dfsg1-0.8 ii libicu67 67.1-7 ii libnsl2 1.3.0-2 ii libsasl2-2 2.1.27+dfsg2-2 ii libssl1.1 1.1.1m-1 ii lsb-base 11.1.0 ii netbase 6.3 ii ssl-cert 1.1.2 Versions of packages postfix recommends: ii ca-certificates 20211016 ii python3 3.9.8-1 Versions of packages postfix suggests: ii bsd-mailx [mail-reader] 8.1.2-0.20180807cvs-2 ii emacs-gtk [mail-reader] 1:27.1+1-3.1+b1 ii libsasl2-modules 2.1.27+dfsg2-2 ii mailutils [mail-reader] 1:3.13-1 ii mutt [mail-reader] 2.1.4-1 pn postfix-cdb <none> ii postfix-doc 3.6.3-4 pn postfix-ldap <none> pn postfix-lmdb <none> pn postfix-mta-sts-resolver <none> pn postfix-mysql <none> ii postfix-pcre 3.6.3-4 pn postfix-pgsql <none> pn postfix-sqlite <none> ii procmail 3.22-26 pn resolvconf <none> pn ufw <none> -- debconf information excluded -- 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)