smtp inet n - y - - smtpd
-o content_filter=spamassassin
-o receive_override_options=no_address_mappings
So it looks like I have the no_address_mappings after the content
filter already. Is that right?
no, you have no_address_mappings BEFORE the content filter.
Both these options apply for mail incoming via SMTP.
OK, I think I see what you are saying. When I comment out "-o
receive_override_options=no_address_mappings", the SA bayes filtering
works.
spamassassin unix - n n - - pipe
user=debian-spamd argv=/usr/bin/spamc -u ${user} -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
I recommend switching to something that can deliver mail via LMTP, e.g.
amavis, there you can apply the
receive_override_options=no_address_mappings
I thought I had lmtp set up for local delivery with dovecot. But I guess
with this spamassassin line I'm just using sendmail instead. I'm
obviously confused.
So are you saying that amavis would replace the uses of the sendmail
command here to deliver the email? I'm not familiar with amavis. I'll
search on it.
Thanks!