Package: postfix
Version: 3.1.0-5+b1
Severity: normal

Dear Maintainer,
in my /var/spool/postfix/etc/resolv.conf file "nameserver" line is missing, so 
Postfix cannot send emails and reports "delivery temporarily suspended: Host or 
domain name not found. Name service error ..." errors in mail queue.

/etc/resolv.conf content is:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.0.11.1

while /var/spool/postfix/etc/resolv.conf content is:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

Relevant /etc/network/interfaces content is:
auto br_adm
iface br_adm inet static
        address 10.0.11.19
        netmask 255.255.248.0
        gateway 10.0.11.1
        dns-nameservers 10.0.11.1
        bridge_ports enp1s0f0
        bridge_fd 0

If I restart Postfix using the command "systemctl restart postfix", 
/var/spool/postfix/etc/resolv.conf file get in sync with /etc/resolv.conf and 
Postfix starts working normally.
But after a system reboot "nameserver" line always disappears from 
/var/spool/postfix/etc/resolv.conf file.

If I modify the script /usr/lib/postfix/configure-instance.sh adding a delay 
everything works fine, /var/spool/postfix/etc/resolv.conf stays in sync with 
/etc/resolv.conf even after a reboot.
To add a delay I added the command "sleep 5" before the line 
"FILES="etc/localtime etc/services etc/resolv.conf etc/hosts \".

I know I could remove resolvconf package and use a static /etc/resolv.conf but 
I think this bug could affect other users that need resolvconf.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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-5
ii  debconf [debconf-2.0]  1.5.59
ii  dpkg                   1.18.10
ii  init-system-helpers    1.45
ii  libc6                  2.24-3
ii  libdb5.3               5.3.28-12
ii  libicu57               57.1-4
ii  libsasl2-2             2.1.26.dfsg1-15
ii  libsqlite3-0           3.14.2-1+b1
ii  libssl1.0.2            1.0.2j-1
ii  lsb-base               9.20160629
ii  netbase                5.3
ii  ssl-cert               1.0.38

Versions of packages postfix recommends:
ii  python3  3.5.1-4

Versions of packages postfix suggests:
ii  bsd-mailx [mail-reader]  8.1.2-0.20160123cvs-3
pn  dovecot-common           <none>
ii  libsasl2-modules         2.1.26.dfsg1-15
pn  postfix-cdb              <none>
pn  postfix-doc              <none>
pn  postfix-ldap             <none>
pn  postfix-mysql            <none>
pn  postfix-pcre             <none>
pn  postfix-pgsql            <none>
pn  procmail                 <none>
ii  resolvconf               1.79
pn  sasl2-bin                <none>
pn  ufw                      <none>

-- debconf information excluded

Reply via email to