By doing the virtual_alias_maps *before* instead of after the content
filter, so that the content filter sees the final envelope recipient.
This is done by by NOT having ("receive_override_options" with
"no_address_mappings") before the content filter and by having
("receive_override_options" with "no_address_mappings") after the
content filter. See http://www.postfix.org/FILTER_README.html for
a few examples.
On 12.04.21 10:13, Steve Dondley wrote:
Thanks Wietse. So I already had this in my master.cf file:
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.
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
--
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.
The 3 biggets disasters: Hiroshima 45, Tschernobyl 86, Windows 95