>> > receive_override_options = no_address_mappings >> > >> > and then permit mappings (which include always_bcc) to occur in the 2nd >> > instance (for the mail that is returned by amavis), for example this >> > might be in master.cf by: >> > >> > 127.0.0.1:10025 inet n - n - - smtpd >> > # note: absence of no_address_mappings means that address mapping >> > *will* occur here, including always_bcc >> > -o receive_override_options=no_unknown_recipient_checks,no_milters >> > ...
On 21.04.21 15:29, Alex wrote:
I should have made that more clear. The problem is that I'm trying to create an address to which amavisd should forward all mail unfiltered, but it only works if either all addresses are included in the policy or the unfiltered address is the only address. For example: @spam_lovers_maps = ( ['a...@example.com'] ); @bypass_spam_checks_maps = ( ['a...@example.com'] ); Also, we have a set of scripts that parse the log output and it's being impacted by this bcc-user address. This also means that any mail quarantined by amavisd for the recipient is also quarantined for the bcc-user.
you CAN do this, bot for this, you must do EXACTLY what I have written before:
I recomment doing no_address_mappings on port 10025 when receiving mail from amavis, and not globally in the main.cf.
*recommend of course. because is it NOT possible to deliver unchanged mail to always_bcc address, when the always_bcc happens AFTER the mail is changed. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; 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. Spam is for losers who can't get business any other way.