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.
On 12.04.21 10:49, Steve Dondley wrote:
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.
you can use lmtp multiple times.
amavis uses builtin LMTP server to receive mail from postfix as
content_filter and builtin LMTP client to push mail back to postfix.
Postfix is supposed to listen on different port where no_address_mappings is
applied:
https://amavis.org/README.postfix.html#basics_smtpd-daemon
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.
yes.
Perhaps you could replace the sendmail with postfix' lmtp command.
But I'm not sure whether if could work and wht exact syntax to use.
note that the downside of amavis is that is uses one user account and
therefore single bayes database.
OTOH, the downside of your solution is that each mail can be
spamassassin-scanned multiple times (once per recipient), which may hugely
increase system load.
--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have.