amavis whitelist rescipient address match

Gary V mr88talent at
Mon May 30 23:44:22 CEST 2011

On 5/30/11, Mark Martinec wrote:
>> What address does amavis use for whitelisting? To field or envelope?
> Both since 2.6.0.  Before that only the envelope sender address was used.
> amavisd-new-2.6.0 release notes:
> - white and blacklisting now takes into account both the SMTP envelope
>   sender address, as well as the author address from a header section
>   (address(es) in a 'From:' header field). Note that whitelisting
>   based only on a sender-specified address is mostly useless nowadays.
>   For a reliable whitelisting see @author_to_policy_bank_maps below,
>   as well as a set of whitelisting possibilities in SpamAssassin (based
>   on DKIM, SPF, or on Received header fields);
>> For Instance, given this email, what address would match a whitelist when
>> MTA receives this message?
>> Return-Path: <root at>
>> X-Original-To: lrosa at
>> Delivered-To: lrosa at
>> {various Received headers omitted}
>> To: logwatch at
>> Subject: Postfix log summary
>> Message-Id: <20110529020209.06CFA1D08507 at>
>> From: root at (root)
> root at and root at
> (actually just one in this case, as they are the same and duplicates
> are eliminated).
>   Mark

Note: If using Postfix you might consider bypassing amavisd-new for
local system generated messages by overriding the content_filter for
the pickup service in

pickup    fifo  n       -       -       60      1       pickup
    -o content_filter=
    -o receive_override_options=no_header_body_checks

as an alternative to whitelisting mail from root (for example).

Gary V

More information about the amavis-users mailing list