mynetworks not triggering spam check bypass via policy bank

Scott Techlist techlist06 at msws.org
Tue Aug 8 01:04:21 CEST 2017


Centos7
Amavisd-new 2.11.0
Spamassassin 3.4.0
Site-wide configuration

For this post my server's primary IP is 1.1.1.1 = mail2.myserver.com

My amavisd configuration file is: 

	/etc/amavisd/amavisd.conf

I have mynetworks defined as:

	@mynetworks = qw( 127.0.0.0/8 1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4/32 5.5.5.5/32 );

I have this policy bank setup:

$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 internal mail
  bypass_banned_checks_maps => [1],  # don't banned-check internal mail
  bypass_header_checks_maps => [1],  # don't header-check internal mail
};


But when a message is sent by my server itself, it gets checked anyway, tagged as spam and redirected to my spam mailbox (Header follows).   In this case it's my logwatch daily email.  

Shouldn't spamassassin be skipped based on the  bypass_spam_checks_maps   => [1],  setting or am I missing something else, syntax wrong, etc?

>From MAILER-DAEMON  Mon Aug  7 04:02:31 2017
Return-Path: <>
X-Original-To: spam at myserver.com
Delivered-To: spam at myserver.com
X-Envelope-From: <root at mail2.myserver.com>
X-Envelope-To: <root at mail2.myserver.com>
X-Envelope-To-Blocked: <root at mail2.myserver.com>
X-Quarantine-ID: <ypXs3IHcC_xa>
X-Spam-Flag: YES
X-Spam-Score: 7.332
X-Spam-Level: *******
X-Spam-Status: Yes, score=7.332 tag=-9999 tag2=5 kill=6.4
        tests=[NORMAL_HTTP_TO_IP=0.001, NO_RELAYS=-0.001,
        URIBL_ABUSE_SURBL=1.948, URIBL_BLACK=1.7, URIBL_DBL_SPAM=2.5,
        URIBL_GREY=1.084, URIBL_SBL_A=0.1] autolearn=no autolearn_force=no
To: root at mail2.myserver.com
From: logwatch at mail2.myserver.com
Subject: Logwatch for mail2.myserver.com (Linux)
Auto-Submitted: auto-generated
Precedence: bulk
Content-Type: text/plain; charset="iso-8859-1"
Date: Mon,  7 Aug 2017 04:02:03 -0500 (CDT)





More information about the amavis-users mailing list