critsend (/gridsend?)... what's the(ir) trick?

Gary V mr88talent at gmail.com
Sun Sep 18 01:56:56 CEST 2011


On 9/17/11, Yanek wrote:
> Thanks to both of you :)
> Comment below...
>
> Le 17/09/2011 06:32, Gary V a écrit :
>> On 9/16/11, Gary V wrote:
>>> On 9/16/11, Noel Jones wrote:
>>>> On 9/16/2011 5:12 PM, Yanek wrote:
>>>>> Does someone has any idea on how these SMTP providers manage to have
>>>>> their outgoing mails escape SA scoring?
>>>>
>>>> Check your logs.
>>>>
>>>>
>>>> Possibilities include (but are probably not limited to):
>>>> - it *is* scanned but not adding headers for some reason on your end
>
> Indeed, I checked my logs and it was actually scanned...
>
>>>> - you've whitelisted them
>>>> - mail exceeds your max scan size
>>>> - the mail doesn't pass through amavisd due to some configuration on
>>>> your end
>>>>
>>>> If you don't see anything interesting, increase the log level.
>>>> There is no secret bypass flag.
>>>>
>>>>
>>>>   -- Noel Jones
>>>>
>>> If these seem to come from the same sender, you can turn up debugging
>>> for the first message they send after restarting amavisd-new:
>>>
>>> @debug_sender_maps = ( ['sender at example.com'] );
>>>
>>> this will turn debugging level up to 5 for the one message.
>>>
>> Oh yeah, and the most common reason you do not get headers is because
>> the recipient domain is not considered 'local' (it's not included in
>> @local_domains_maps).
>
> Correct; this domain was not in @local_domain_acl
> I fixed this and the tags are now displayed.
> Special thanks to Gary, you got the answers to my 2 questions (so far)
> in no time :)
>
> One additional one, which of @local_domains_maps or @local_domain_acl is
> the newest directive?
> (ie: Will I have to switch from acl to maps when I'll upgrade amavis?)
>
> Regards
>

@local_domains_maps is newer. The default value is:

@local_domains_maps=(\%local_domains,\@local_domains_acl,\$local_domains_re);

This is shown in amavisd.conf-default (included with the source code)
which illustrates all the default values.

This is from amavisd.conf-sample (no longer provided with 2.7.x or newer):

# Lookup list of local domains (see README.lookups for syntax details)
#
# @local_domains_maps is a list of lookup tables which are used in deciding
# whether a recipient is local or not, or in other words, if the message is
# outgoing or not. This affects inserting spam-related and OS fingerprinting
# header fields for local recipients, editing Subject header field and allowing
# mail body defanging, limiting recipient notifications to local recipients,
# in deciding if address extension may be appended, in matching mail addresses
# to non-fqdn SQL record keys, for proper operation of pen pals feature,
# for selecting statistics counters (distinguishing outgoing from internal-
# to internal mail), and possibly more in future versions.
# Set it up correctly if you need features that rely on this setting.
#
# With Postfix (2.0) a quick hint on what local domains normally are:
# a union of domains specified in: mydestination, virtual_alias_domains,
# virtual_mailbox_domains, and relay_domains.

@local_domains_maps = ( [".$mydomain"] );  # $mydomain and its subdomains
# @local_domains_maps = (); # default is empty list, no recip. considered local
# @local_domains_maps =  # using ACL lookup table
#   ( [ ".$mydomain", 'sub.example.net', '.example.com' ] );
# @local_domains_maps =  # similar, split list elements on whitespace
#   ( [qw( .example.com !host.sub.example.net .sub.example.net )] );
# @local_domains_maps = ( new_RE( qr'[@.]example\.com$'i ) );   # using regexp
# @local_domains_maps = ( read_hash("$MYHOME/local_domains") ); # using hash
#   perhaps combined with Postfix: mydestination = /var/amavis/local_domains
# for debugging purposes: dump_hash($local_domains_maps[0]);

-- 
Gary V


More information about the amavis-users mailing list