Package: postgrey
Version: 1.36-3
Severity: grave
Justification: renders package unusable

Dear Maintainer,

The default init script that comes with Postgrey on Debian 9 fails to start 
after a reboot. The installer creates /var/run/postgrey and writes its pid 
there but /var/run is a tmpfs file system and so on a reboot /var/run/postgrey 
ceases to exist. The init script for Postgrey does not attempt to create 
/var/run/postgrey and just fails to start when it can't write to 
/var/run/postgrey. When postgrey fails to start then Postfix starts complaining 
that it is misconfigured and begins bouncing emails. I was able to fix this by 
adding these lines to the do_start function in the init script:

        # Assure that /var/run/postgrey exists
        [ -d /var/run/postgrey ] || mkdir -p /var/run/postgrey

        if [ "$DAEMON_USER" != "root" ]; then
                chown "$DAEMON_USER" /var/run/postgrey
        fi


-- System Information:
Debian Release: 9.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages postgrey depends on:
ii  adduser                3.115
ii  debconf [debconf-2.0]  1.5.61
pn  libberkeleydb-perl     <none>
pn  libnet-dns-perl        <none>
pn  libnet-server-perl     <none>
pn  libnetaddr-ip-perl     <none>
ii  perl                   5.24.1-3+deb9u2
ii  ucf                    3.0036

Versions of packages postgrey recommends:
pn  libnet-rblclient-perl  <none>
pn  libparse-syslog-perl   <none>
ii  postfix                3.1.6-0+deb9u1

postgrey suggests no packages.

Reply via email to