Apply policy_bank for valid DKIM senders

Patrick Ben Koetter p at sys4.de
Wed Jul 22 21:25:54 CEST 2015


* Marius Gologan <marius.gologan at gmail.com>:
> Hi,
> 
> Does anyone know a trick to apply a custom policy_bank for Senders signed
> with valid DKIM only?

Use @author_to_policy_bank_maps and map valid DKIM sender(domains) to policy
banks like this:

@author_to_policy_bank_maps = ( {
    'sys4.de'          => 'WHITELIST,NOBANNEDCHECK',
    '.paypal.de'       => 'WHITELIST',
    '.paypal.com'      => 'WHITELIST',
    'amazon.de'        => 'WHITELIST',
} );


p at rick


> 
>  
> 
> I want to ensure the whitelisted Senders are not spoofed and set policy
> exceptions such as this below only for signed senders:
> 
>  
> 
> $policy_bank{'NO_BANNED_ATTACHMENTS'} = {  # those configured to send mail
> to port 10027
> 
>    bypass_spam_checks_maps                   => [0],  # don't spam-check
> this mail
> 
>    bypass_virus_checks_maps                     => [0],  # don't virus-check
> this mail
> 
>    bypass_banned_checks_maps               => [1],  # don't banned-check
> this mail
> 
>    bypass_header_checks_maps                => [1],  # don't header-check
> this mail  
> 
> };
> 
>  
> 
> Thank you.
> 
>  
> 
> Marius.
> 

-- 
[*] sys4 AG
 
https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
 
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
 


More information about the amavis-users mailing list