White listing a specific remote IP address

Stephen Davies sdavies at sdc.com.au
Sat Aug 19 03:23:35 CEST 2017


On 18/08/17 17:04, Patrick Ben Koetter wrote:
> * Stephen Davies <sdavies at sdc.com.au>:
>> I can see how to white list a domain but not a specific IP address.
> 
> @client_ipaddr_policy = (
>      [qw( 0.0.0.0/8 127.0.0.1/32 [::] [::1] )] => 'LOCALHOST',
>      [qw( !172.16.1.0/24 172.16.0.0/12 192.168.0.0/16 )] => 'PRIVATENETS',
>      [qw( 192.2.0.1/32 )] => 'WHITELIST',
>      \@mynetworks => 'MYNETS'
> );
> 
> $policy_bank{'WHITELIST'} = {
>      bypass_spam_checks_maps => [1],
>      ...
> };
> 
> 
> HTH,
> 
> p at rick
> 

Thanks. That looks good.

What is the bang before 172.16.1.0/24 (negative?)?

Cheers,
Stephen


More information about the amavis-users mailing list