Hi there,
I solved this problem today by moving away from starting the service
with init-v to systemd. In 2019 a good idea I think.
The service script is attached to this email.
@Harald, it would be awesome if you would prepare and push a new version
of the package including the systemd service script and the new version
of amavisd-milter.
This patch is needed anyway and doesn't depend on a new version of
amavisd-milter. So you don't have to wait for Petr accepting the patch
of Matus (btw, thx Matus! :) ) or not.
Cheers
Flo
[Unit]
Description=Amavisd Milter
Wants=amavisd.service
After=network.target
[Service]
PIDFile=/run/amavisd-milter/pid
Type=simple
User=amavis
Group=amavis
UMask=0007
RuntimeDirectory=amavisd-milter
RuntimeDirectoryMode=750
ExecStart=/usr/sbin/amavisd-milter -f -p /run/amavisd-milter/pid -s
unix:/var/lib/amavis/amavisd-milter.sock -w /var/lib/amavis/tmp -S
/var/lib/amavis/amavis.sock -m 2
ExecStartPost=/bin/chgrp postfix /var/lib/amavis/amavisd-milter.sock
PrivateTmp=true
PermissionsStartOnly=true
[Install]
WantedBy=multi-user.target