Hi. Using Postfix 2.10.1, I currently have spamassassin configured as a content filter with smtpd such as:
smtp inet n - n - - smtpd -o
content_filter=spamassassin
...
# spamassassin filtering
spamassassin unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/spamc -u ${user} -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
But it seems that that processes spam for/by the account that the e-
mail is originally sent to, not where it finally gets delivered, say,
after alias processing.
I'd like to have that spamassassin (spamc) process applied where
${user} is the final delivery user, after aliases have been processed.
How can I modify my configuration to do such considering I use Cyrus
IMAPD as my local delivery mechanism with it's lmtp delivery channel as
such:
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
and
lmtp unix - - n - - lmtp
It seems like lmtpd needs to be able to have a content_filter also. Or
is there a reason that that would be all wrong?
Cheers,
b.
signature.asc
Description: This is a digitally signed message part
