On 27.11.23 12:16, Ulrich Hiller, MPI Astronomie wrote:
i want to bypass amavis for a specific *recipient* domain (not sender!).
I am not sure how to do that, because all i find is whitelisting a sender.

afaik amavis variables:

bypass_virus_checks_maps
bypass_spam_checks_maps
bypass_banned_checks_maps
bypass_header_checks_maps

use the recipient addresses.

I would do it on MTA level in postfix's whitelist.pcre:

MTA level is one possibility, but note that single e-mail can have multiple recipients, you probably don't want to bypass checks when only one of them.

I think amavis can send multiple mails when different maps are used
(haven't try this tho).

/example\.com/ FILTER  smtp:[127.0.0.1]:10025

This is a very bad example of using postfix maps. This regular expressions matches part of address, so example....@example.net would match here.

Generally, avois regular expressions unless really needed.

Or should i do it better in amavisd.conf:
@bypass_spam_checks_maps  = ( ['@example1.com', '@example2.com'], );

Or does all this block only sender domains?

Thanks you in advance for any hint, ulrich

--
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.
I intend to live forever - so far so good.

Reply via email to