FWIW, I was able to achieve my goal in what I think is a less-than- optimal way:
smtp inet n - n - - smtpd
...
spamc_cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/spamc -u ${user} -f -e
/usr/lib/cyrus-imapd/deliver -m ${extension} ${user}
and:
mailbox_transport = spamc_cyrus
I feel like this is still less optimal than if the lmtp service could
run the e-mail through a content filter before sending on the lmtp
socket since it would eliminate the additional resource need of firing
up deliver and any possible resource allocation failures that the
fork()/exec() requires.
Is the above really the best way possible or am I missing something?
Cheers,
b.
signature.asc
Description: This is a digitally signed message part
