Greetings, Thomas Seilund!
> smtp inet n - n - - smtpd -o
> content_filter=spamfilter -o receive_override_options=no_address_mappings
> spamfilter unix - n n - - pipe
> flags=Rq user=vmail argv=/usr/bin/spamfilter.sh -oi -f ${sender}
> ${recipient}
> Furthermore, I have this script in /usr/bin/spamfilter:
> #!/bin/bash
> SENDMAIL=/usr/sbin/sendmail
> SPAMASSASSIN=/usr/bin/spamc
> RECEIVER=`echo $4 | tr '[:upper:]' '[:lower:]'`
> ${SPAMASSASSIN} -u $RECEIVER | ${SENDMAIL} "$@"
> exit $?
> Finally, this is the parameters I have for SA in file
> /etc/sysconfig/spamassassin:
> SPAMDOPTIONS="--daemonize --create-prefs --max-children=5
> --helper-home-dir=/mnt/ebs01/vmail/%d/%l/SpamAssassin --username=vmail
> --nouser-config --virtual-config-dir=/mnt/ebs01/vmail/%d/%l/SpamAssassin"
> export PYTHONPATH=/usr/lib/python2.6/site-packages
If your users are not using personal spamassasin lists, you can just tell it
to use same user for all server works.
--
With best regards,
Andrey Repin
Friday, March 1, 2019 10:37:52
Sorry for my terrible english...