Amavisd-new: Excluding 1 IP from a /24 listed in @mynetworks

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Amavisd-new: Excluding 1 IP from a /24 listed in @mynetworks
# 1  
Old 08-11-2012
Amavisd-new: Excluding 1 IP from a /24 listed in @mynetworks

Hello. Let's say as an example I have the below mynetworks list and the MYNETS policy bank set up to allow these networks to bypass spam filtering. But let's say I have a single IP within mynetworks that I don't want to bypass spam filtering. Let's call it 192.168.10.10. I've tried just inputting !192.168.10.10 but that didn't seem to work. So how do I do it? My next idea would be to create another network list with that one IP and a new policy bank that doesn't bypass spam filtering but I am not even sure how to create the policy banks. This server is in production so I need to know before I start messing about with the configuration.

Also, I have another problem. When the mail server sends its reports each night, they are getting filtered. They shouldn't be getting filtered because 127.0.0.1 is in the mynetworks list. The server's external IP is also in the mynetworks list so what the heck? Thanks!

Code:
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
                  10.0.0.0/8 172.16.0.0/12 192.168.10.0/24 );

Code:
$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, # Allow $mynetworks to bypass spam checking.
  bypass_banned_checks_maps => 1, # Allow $mynetworks to send any file type.
  bypass_header_checks_maps => 1, # Allow $mynetworks to bypass header checks.
};

Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Red Hat

Why not centos is not listed as sub-forum?

why not centos is not listed as sub-forum?i like centos very much. i do not know the reason for this,but i am sure that there reasons for that.could you give me any clues.i mean, the disadvantages centos have compared with other linux os. Thanks a lot. (2 Replies)
Discussion started by: heccblack
2 Replies

2. UNIX and Linux Applications

mynetworks - postfix

Hi guys. I want to allow all IPs to use my smtp server running postfix. what should i write in mynetworks parameter? (1 Reply)
Discussion started by: majid.merkava
1 Replies

3. Shell Programming and Scripting

Host Machine not listed.

Hello everyone, I have a perl script to list all the host machines in my development environment. The script does various other tasks apart from listing the host names in an excel output. The problem is with the listing of host machines. The script lists all the host names except the host on which... (1 Reply)
Discussion started by: nmattam
1 Replies

4. News, Links, Events and Announcements

New RPM package(clamav, postfix, spamassassin, mailscanner/amavisd-new) - PSCM

Hi all, After metawire.org went down, I have revived pscm at http://m-net.arbornet.org/~pscm/index.html The latest release comes with: * Clamav: 0.88.2 * MailScanner: 4.53.6-1 * SpamAssassin: 3.1.1 * Postfix: 2.2.10 * Amavisd-new-2.4.0 ... (0 Replies)
Discussion started by: janetbindner
0 Replies

5. HP-UX

CVSWeb - Directories listed but files not listed

I am using CVSWeb on HPUnix. When i access it, all directories are listed but files are not listed. I am getting the error "NOTE: There are 51 files, but none matches the current tag. " in tomcat sevrer log i am getting the message "rlog warning: Missing revision or branch number after -r"... (0 Replies)
Discussion started by: ganesh
0 Replies
Login or Register to Ask a Question