MYNETS not working

Danilo Godec danilo.godec at agenda.si
Fri May 18 10:54:19 CEST 2012


On 05/17/2012 06:51 PM, Darek M. wrote:
> I have this in mine, which seems to work:
>
>
> bypass_spam_checks_maps   => 1,

I tried that too, but it's all the same.

Even if that setting was false, I'd still expect to see log prefix
'amavis-mynet', but all the log entries show up as 'amavis'.


  Danilo


>
>
> -- 
>
> Darek
>
>
>
>
> ----- Original Message -----
> From: Danilo Godec <danilo.godec at agenda.si>
> To: amavis-users at amavis.org
> Cc: 
> Sent: Thursday, May 17, 2012 4:34 AM
> Subject: MYNETS not working
>
> 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


-- 
Danilo Godec, sistemska podpora / system administration

Predlog! Obiscite prenovljeno spletno stran www.agenda.si 

ODPRTA KODA IN LINUX 
STORITVE : POSLOVNE RESITVE : UPRAVLJANJE IT : INFRASTRUKTURA IT : IZOBRAZEVANJE : PROGRAMSKA OPREMA 

Visit our updated web page at www.agenda.si 

OPEN SOURCE AND LINUX 
SERVICES : BUSINESS SOLUTIONS : IT MANAGEMENT : IT INFRASTRUCTURE : TRAINING : SOFTWARE 



More information about the amavis-users mailing list