Your message dated Fri, 15 Dec 2017 01:09:24 -0500
with message-id <2566599.Va8x85HAtx@kitterma-e6430>
and subject line Re: postfix - systemd generator broken with inet_interfaces
has caused the Debian Bug report #882141,
regarding postfix - systemd generator broken with inet_interfaces
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
882141: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882141
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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)

--- End Message ---
--- Begin Message ---
On Sun, 19 Nov 2017 16:34:37 +0100 Bastian Blank <wa...@debian.org> wrote:
> 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.

I've rewritten the postfix-instance-generator to avoid using postmap.  That 
should solve this problem.  Please let me know if it does (just hit dput, so 
should be coming to a mirror near you soon).

Scott K

--- End Message ---

Reply via email to