Bug#1002527: "milter-greylist -u user" considered harmful
Hello,
I've got a similar problem on my Debian 11 mail server after upgrading
from Debian 10. The problem is indeed the Systemd service file:
ExecStart=/usr/sbin/milter-greylist -u greylist
The command line option "-u greylist" overrides the "user" setting
in the configuration file "/etc/milter-greylist/greylist.conf".
I'm trying to use the following ...
socket "/var/spool/postfix/milter-greylist/milter-greylist.sock" 660
user "greylist:postfix"
... but it doesn't work with the above service file. Removing the "-u"
fixes the problem for me:
--- /lib/systemd/system/milter-greylist.service.unpatched 2021-01-13 13:16:52.000000000 +0000
+++ /lib/systemd/system/milter-greylist.service 2022-09-02 11:58:10.344720527 +0100
@@ -5,7 +5,7 @@
[Service]
Type=forking
-ExecStart=/usr/sbin/milter-greylist -u greylist
+ExecStart=/usr/sbin/milter-greylist
Restart=on-failure
PrivateTmp=true
A complete fix would be to add a line like this to the default
"/etc/milter-greylist/greylist.conf" configuration file ...
user "greylist"
... and remove the "-u" argument from the service definition.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
Reply to: