Package: postfix
Version: 3.1.4-4
Severity: important
Tags: patch
The file /lib/systemd/system/[email protected] needs to have the line
"After=network.target" to make sure that all the network interfaces are raised
before it is started. Otherwise the startup will abort if Postfix is
configured to bind to any interface other than all (or maybe localhost).
After a recent update postfix would not be running on system start, it would
report that it couldn't bind to one of the IP addresses in it's config file.
After changing the service file it works correctly.
-- System Information:
Debian Release: 9.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages postfix depends on:
ii adduser 3.115
ii cpio 2.11+dfsg-6
ii debconf [debconf-2.0] 1.5.60
ii dpkg 1.18.18
ii init-system-helpers 1.47
ii libc6 2.24-9
ii libdb5.3 5.3.28-12+b1
ii libicu57 57.1-5
ii libsasl2-2 2.1.27~101-g0780600+dfsg-2
ii libssl1.1 1.1.0c-2
ii lsb-base 9.20161125
ii netbase 5.4
ii postfix-sqlite 3.1.4-4
ii ssl-cert 1.0.38
Versions of packages postfix recommends:
ii python3 3.5.3-1
Versions of packages postfix suggests:
ii bsd-mailx [mail-reader] 8.1.2-0.20160123cvs-3
ii dovecot-core [dovecot-common] 1:2.2.27-2
ii libsasl2-modules 2.1.27~101-g0780600+dfsg-2
pn postfix-cdb <none>
ii postfix-doc 3.1.4-4
pn postfix-ldap <none>
pn postfix-lmdb <none>
ii postfix-mysql 3.1.4-4
ii postfix-pcre 3.1.4-4
pn postfix-pgsql <none>
pn procmail <none>
pn resolvconf <none>
pn sasl2-bin <none>
pn ufw <none>
-- Configuration Files:
/etc/network/if-down.d/postfix changed:
exit 0
if [ ! -d /usr/lib/postfix ]; then
exit 0
fi
RUNNING=""
if [ -f /var/spool/postfix/pid/master.pid ]; then
pid=$(sed 's/ //g' /var/spool/postfix/pid/master.pid)
exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //;s/.*\///')
if [ "X$exe" = "Xmaster" ]; then
RUNNING="y"
fi
fi
if [ ! -x /sbin/resolvconf ]; then
f=/etc/resolv.conf
if ! cp $f $(postconf -h queue_directory)$f 2>/dev/null; then
exit 0
fi
if [ -n "$RUNNING" ]; then
service postfix reload >/dev/null 2>&1
fi
fi
exit 0
/etc/network/if-up.d/postfix changed:
exit 0
if [ "$IFACE" = "lo" ]; then
exit 0
fi
if [ ! -d /usr/lib/postfix ]; then
exit 0
fi
RUNNING=""
if [ -f /var/spool/postfix/pid/master.pid ]; then
pid=$(sed 's/ //g' /var/spool/postfix/pid/master.pid)
exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //;s/.*\///')
if [ "X$exe" = "Xmaster" ]; then
RUNNING="y"
fi
fi
if [ ! -x /sbin/resolvconf ]; then
f=/etc/resolv.conf
if ! cp $f $(postconf -h queue_directory)$f 2>/dev/null; then
exit 0
fi
if [ -n "$RUNNING" ]; then
service postfix reload >/dev/null 2>&1
fi
fi
if [ -n "$RUNNING" ]; then
if [ -x /usr/sbin/sendmail ]; then
/usr/sbin/sendmail -q >/dev/null 2>&1
fi
fi
/etc/ppp/ip-down.d/postfix changed:
exit 0
if [ ! -d /usr/lib/postfix ]; then
exit 0
fi
RUNNING=""
if [ -f /var/spool/postfix/pid/master.pid ]; then
pid=$(sed 's/ //g' /var/spool/postfix/pid/master.pid)
exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //;s/.*\///')
if [ "X$exe" = "Xmaster" ]; then
RUNNING="y"
fi
fi
if [ ! -x /sbin/resolvconf ]; then
f=/etc/resolv.conf
if ! cp $f $(postconf -hx queue_directory)$f 2>/dev/null; then
exit 0
fi
if [ -n "$RUNNING" ]; then
service postfix reload >/dev/null 2>&1
fi
fi
exit 0
/etc/ppp/ip-up.d/postfix changed:
exit 0
if [ "$IFACE" = "lo" ]; then
exit 0
fi
if [ ! -d /usr/lib/postfix ]; then
exit 0
fi
RUNNING=""
if [ -f /var/spool/postfix/pid/master.pid ]; then
pid=$(sed 's/ //g' /var/spool/postfix/pid/master.pid)
exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //;s/.*\///')
if [ "X$exe" = "Xmaster" ]; then
RUNNING="y"
fi
fi
if [ ! -x /sbin/resolvconf ]; then
f=/etc/resolv.conf
if ! cp $f $(postconf -hx queue_directory)$f 2>/dev/null; then
exit 0
fi
if [ -n "$RUNNING" ]; then
service postfix reload >/dev/null 2>&1
fi
fi
if [ -n "$RUNNING" ]; then
if [ -x /usr/sbin/sendmail ]; then
/usr/sbin/sendmail -q >/dev/null 2>&1
fi
fi
/etc/rsyslog.d/postfix.conf changed:
-- debconf information excluded
-- debsums errors found:
debsums: changed file /lib/systemd/system/[email protected] (from postfix
package)