Rocco Scappatura a écrit :
> Hello,
> 
> I have a Postfix+MySQL+Amavisd-new platform.
> 
> Time ago I get some hint for avoiding spam scan for a particular sender
> an a particular client.
> 
> In particular, in /etc/postfix/main.cf I put:
> 
> smtpd_restriction_classes = from_policy_bank_senders
> from_policy_bank_senders =
>     check_sender_access hash:/etc/postfix/policy_bank_senders, permit

this looks bogus to me... what is the last permit for?

> 
> Now I would like to avoi spam scanning for a particular recipient.
> 

do it in amavisd-new instead.

if you want per recipient filtering in postfix, you need multiple
instances, when you can use transport_maps to select the filter (instead
of content_filter and FILTER).

While you can use FILTER in a check_recipient_access, this is fragile:
if the message has multiple recipients, the last FILTER statement will
select the filter (so if a spammer guesses the j...@example.com is not
filtered, then he can add it as the last recipient in all his junk...).



Reply via email to