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
RAZOR-AGENTS(5) 					User Contributed Perl Documentation					   RAZOR-AGENTS(5)

NAME
Razor-Agents - Collection of files for checking, reporting, and revoking spam DESCRIPTION
Vipul's Razor is a distributed, collaborative, spam detection, reporting, and filtering network. The primary focus of the system is to identify and remove all email spam from the internet. Visit the website at http://razor.sourceforge.net/. USAGE
First a razorhome directory should be created where log, conf, and cached server information will live. This is done via "-create" option to razor-admin(1). See man page for details. You can immediately check spam using razor-check(1). See man page for details. To report spam, an identity must be registered. This is done via "-register" option to razor-admin(1). After that, razor-report(1) and razor-revoke(1) will work flawlessly. CONFIGURATION
All Razor-Agents share a configuration file. The contents of the configuration file are detailed in the razor-agent.conf(5) manpage. Config file is computed before razorhome, in the following order: -conf=/path/file.conf used if readable, else <home>/.razor/razor-agent.conf used if readable, else /etc/razor/razor-agent.conf used if readable, else all defaults are used. To see configuration defaults, do razor-admin -create -conf=/tmp/razor2-defaults.conf RAZORHOME
All Razor-Agents also share a razorhome directory, where identity, logging, and cached information about servers is stored. Razorhome is computed after configuration file, in the following order. -home=/tmp/razor/ used if readable, else 'razorhome' from configuration file used if readable, else <home>/.razor/ used if readable, else <home>/.razor/ is created. if that fails, no razorhome. NOTE: If there is no razorhome, razor-report and razor-revoke will not work unless you specify -ident=/path/identity razor-check will still work. FILES
Besides those listed at the end with their own manpages, Razor Agents also has the following files. razorhome/identity Usually a symlink to identity file containing user+pass. Used by razor-report(1) and razor-revoke(1). razorhome/razor-agent.log Default log file. To change, edit razor-agent.conf(5). razorhome/servers.*.lst Cached list of Razor Servers. If more than one, they are ordered by closest ping time. razorhome/server.<name>.lst Cached info for <name> server. The "srl" key in this file is compared against the server greeting, and if server's is greater, new cache info is retrieved from the server. EXAMPLES
razor-check -d -debuglevel=9 mbox Checks spam in mbox. prints numbers for those found to be spam. -d logs to stdout, -debuglevel=9 is verbose logging razor-admin -create -home=/home/chad/.razor -d -s Creates razorhome in /home/chad/.razor, log to stdout, does not connect to server (-s simulate). razor-report spam -debuglevel=0 sends spam to server, with no log msgs. AUTHORS
Vipul Ved Prakash, <mail@vipul.net> and Chad Norwood <chad@samo.org> SEE ALSO
razor-agent.conf(5), razor-check(1), razor-admin(1), razor-report(1), razor-revoke(1), razor-whitelist(5) perl v5.14.2 2008-07-21 RAZOR-AGENTS(5)
All times are GMT -4. The time now is 11:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy