The workaround I finally used was to create a custom service file,
separated from the original one shipped in the sasl2-bin package:

root:/etc/systemd/system# cat saslauthd-postfix.service 
[Unit]
Description=SASL Authentication Daemon for postfix
Documentation=man:saslauthd(8)

[Service]
Type=forking
Group=sasl
ExecStart=/usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -n 5

[Install]
WantedBy=postfix.service
root:/etc/systemd/system#

Note that I had to remove both the PIDFile entry and the
RuntimeDirectory entry as they didn't play well with the
chroot jail directory specified in the -m option.
I also replaced the WantedBy=multi-user.target from the original file
by WantedBy=postfix.service.



best regards,
Luc

Reply via email to