[Bug 530323] [NEW] resolvconf update script should not produce error when main.cfg missing
Simon Huerlimann
simon at huerlisi.ch
Mon Mar 1 21:34:38 GMT 2010
Public bug reported:
Binary package hint: postfix
I'm using a 9.10 server installation. The following happens as postfix
got installed as an indirect dependency of ubuntu-vm-builder. resolvconf
has been installed manually.
When running ifup/ifdown the following errors are shown:
/usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory
cp: `/etc/resolv.conf' and `/etc/resolv.conf' are the same file
run-parts: /etc/resolvconf/update-libc.d/postfix exited with return code 1
run-parts: /etc/resolvconf/update.d/libc exited with return code 1
run-parts: /etc/network/if-down.d/resolvconf exited with return code 1
It is correct, that no /etc/postfix/main.cf exists, but this is an
irrelevant information when doing network interface maintenance. I thus
propose to simply enhance the the check in /etc/resolvconf/update-
libc.d/postfix from
[ -x /usr/sbin/postconf ] || exit 0
to
[ -x /usr/sbin/postconf -a -e /etc/postfix/main.cf] || exit 0
Even better would be to also detect major postfix configuration problems
by testing '/usr/sbin/postconf -h queue_directory' for empty result.
** Affects: postfix (Ubuntu)
Importance: Undecided
Status: New
--
resolvconf update script should not produce error when main.cfg missing
https://bugs.launchpad.net/bugs/530323
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in ubuntu.
More information about the Ubuntu-server-bugs
mailing list