Whitelist for localhost

Alex mysqlstudent at gmail.com
Mon Dec 19 04:34:45 CET 2011


Hi all,

I have an amavisd-new-2.6.6 install on a fedora15 box with
spamassassin-3.3.2, and having trouble figuring out how to whitelist
mail sent by root, such as cron scripts.

I've found several references how to bypass amavisd scanning for such
mail, but it's much more involved. I thought it was possible to just
whitelist the mail, adding a significant enough negative score so it
won't be tagged as spam?

I've included the headers from a message that was quarantined because
the body contained a pattern matching a viurs. I've also added the
following to spamassassin local.cf:

whitelist_from_rcvd *@mail01.example.com example.com
whitelist_from_rcvd *@mail01.example.com 127.0.0.1
whitelist_from_rcvd *@mail01.example.com localhost

Return-Path: <>
Delivered-To: virus-quarantine
X-Envelope-From: <root at mail01.example.com>
X-Envelope-To: <mailuser at mail01.example.com>,
        <admin at example.com>
X-Envelope-To-Blocked: <mailuser at mail01.example.com>,
        <admin at example.com>
X-Quarantine-ID: <J85C+T3aHuzy>
X-Amavis-Alert: INFECTED, message contains virus:
        INetMsg.SpamDomain-2w.almonpowny_com.UNOFFICIAL
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=x tag=-200 tag2=5 kill=5 tests=[]
        autolearn=unavailable
Received: from mail01.example.com ([127.0.0.1])
        by localhost (mail01.example.com [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id J85C+T3aHuzy; Sun, 18 Dec 2011 22:13:20 -0500 (EST)
Received: by mail01.example.com (Postfix, from userid 0)
        id 3A57E156008C; Sun, 18 Dec 2011 22:13:19 -0500 (EST)
Date: Sun, 18 Dec 2011 22:13:19 -0500
To: admin at example.com
Subject: Mail Report (18-Dec-2011) <mail01.example.com>
User-Agent: Heirloom mailx 12.5 7/5/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20111219031320.3A57E156008C at mail01.example.com>
From: root at mail01.example.com (root)

I'd really appreciate any ideas you may have on the easiest way to
whitelist by sender to localhost.

Thanks,
Alex


More information about the amavis-users mailing list