Source: postfix
Version: 3.2.3-1
Severity: grave

The systemd generator is completely broken if inet_interfaces is set in
main.cf.  Due to the environment systemd generators are executed in, no
error is reported anywhere.

The generator uses postmulti, which bails out if the ip in
inet_interfaces can't be found:

| # bash -x /lib/systemd/system-generators/postfix-instance-generator
| + set -e
| + WANTDIR=/postfix.service.wants
| + SERVICEFILE=/lib/systemd/system/postfix@.service
| + mkdir -p /postfix.service.wants
| + '[' -f /etc/postfix/main.cf ']'
| ++ awk '{ print $1}'
| ++ postmulti -l -a
| postmulti: fatal: parameter inet_interfaces: no local interface found for 
1.2.3.4
| + exit 0

At the time the generator is executed, only 127.0.0.1 and ::1 is
available.  This means this can never work.

Bastian

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to