Sponsored Content
Special Forums UNIX and Linux Applications Amavisd-new: Excluding 1 IP from a /24 listed in @mynetworks Post 302685165 by tay9000 on Saturday 11th of August 2012 02:51:17 AM
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.
};

 

5 More Discussions You Might Find Interesting

1. 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

2. 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

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. 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

5. 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
Mail::SpamAssassin::Plugin::SpamCop(3)			User Contributed Perl Documentation		    Mail::SpamAssassin::Plugin::SpamCop(3)

NAME
Mail::SpamAssassin::Plugin::SpamCop - perform SpamCop reporting of messages SYNOPSIS
loadplugin Mail::SpamAssassin::Plugin::SpamCop DESCRIPTION
SpamCop is a service for reporting spam. SpamCop determines the origin of unwanted email and reports it to the relevant Internet service providers. By reporting spam, you have a positive impact on the problem. Reporting unsolicited email also helps feed spam filtering systems, including, but not limited to, the SpamCop blacklist used in SpamAssassin as a DNSBL. Note that spam reports sent by this plugin to SpamCop each include the entire spam message. See http://www.spamcop.net/ for more information about SpamCop. USER OPTIONS
spamcop_from_address add@ress.com (default: none) This address is used during manual reports to SpamCop as the From: address. You can use your normal email address. If this is not set, a guess will be used as the From: address in SpamCop reports. spamcop_to_address add@ress.com (default: generic reporting address) Your customized SpamCop report submission address. You need to obtain this address by registering at "http://www.spamcop.net/". If this is not set, SpamCop reports will go to a generic reporting address for SpamAssassin users and your reports will probably have less weight in the SpamCop system. spamcop_max_report_size (default: 50) Messages larger than this size (in kilobytes) will be truncated in report messages sent to SpamCop. The default setting is the maximum size that SpamCop will accept at the time of release. perl v5.12.1 2010-03-16 Mail::SpamAssassin::Plugin::SpamCop(3)
All times are GMT -4. The time now is 02:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy