bypass spam check for local system mail

Indunil Jayasooriya indunil75 at gmail.com
Thu Sep 22 09:48:24 CEST 2016


>
> i would prefer a working policy_bank MYNETS which bypasses spam checks
>
> $policy_bank{'MYNETS'} = {   # mail originating from @mynetworks
>   originating => 1,  # is true in MYNETS by default, but let's make it
> explicit
>   os_fingerprint_method => undef,  # don't query p0f for internal clients
>   bypass_spam_checks_maps   => [1],  # don't spam-check
> };
>
> funny thing is, if i add another IP address, e.g. 213.133.108.221, of
> another server of mine into the mynetworks
>
> @mynetworks = qw( 213.133.108.221 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 );


in my case, 10.0.2.x is the mail server that sends mails.

it is listed @mynetworks ( under 10.0.0.0/8 )


policy_bank does need the IP @mynetworks due to below line. ( # mail
originating from @mynetworks ) . pls see below


$policy_bank{'MYNETS'} = {   # mail originating from @mynetworks


 127.0.0.0/8 is ALSO listed. But I can NOT say why it does NOT work.

why do you need localhost? is it a Mail Server or MailFilter?

in my case,  it is a Mail Filter. That's why I do NOT expect localhost
to bypass  stuffs.


do you have below line in postfix's main.cf file. pls check...

mynetworks = 127.0.0.0/8


> another IP like 213.133.108.221 DOES
> work!

GLAD TO HEAR. my setup is the same.

another good source to look at

http://www.stenoweb.it/en/node/229#toc5


> greetings from germany

greetings from Sri Lanka

indunil



-- 
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala Fonts


More information about the amavis-users mailing list