MYNETS not working

Danilo Godec danilo.godec at agenda.si
Thu May 17 10:34:37 CEST 2012


Hello,

I'm trying to setup Amavis so it would not perform spam tests on mail
sent from my networks.

I tried it by defining 'mynetworks':

> @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
>                   10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
> 169.254.237.0/24 );

and using policy_bank 'MYNETS':

> $policy_bank{'MYNETS'} = {   # mail originating from @mynetworks
>   syslog_ident => 'amavis-mynet',
>   originating => 1,  # is true in MYNETS by default, but let's make it
> explicit
>   final_spam_destiny => D_DISCARD,
>   os_fingerprint_method => undef,  # don't query p0f for internal clients
>   bypass_spam_checks_maps => [1], # dont SPAM check local mail
> };

However it seems that this doesn't work as I still get such log entires:

> May 17 10:26:15 mail amavis[9662]: (09662-01) Passed CLEAN
> {RelayedOpenRelay}, [192.168.10.239] <test at mydomain> ->
> <somebody at outside>, Message-ID:
> <38DF5432303B6240BE323F5B763BFF97C66B41>, mail_id: oYXpOcJ-2J6t, Hits:
> -3.378, size: 3399, queued_as: B5FDECD82B5, Tests:
> [AM.WBL=-2.5,BAYES_00=-1.9,DSPAM.Whitelisted=-0.200,HTML_MESSAGE=0.001,MIME_HTML_MOSTLY=0.428,RDNS_NONE=0.793],
> 404 ms

Is there anything else I have to do to activate 'MYNETS'?

Amavisd-new version is 2.7.0 on SLES 11.

    Danilo



More information about the amavis-users mailing list