amavis-user October 2010 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: [AMaViS-user] Skipping SPAM checks for local ma

Re: [AMaViS-user] Skipping SPAM checks for local mail

From: Gary V <mr88talent_at_nospam>
Date: Sat Oct 16 2010 - 00:40:29 GMT

On 10/14/10, Danilo Godec <> wrote:
> On 14.10.2010 13:04, Patrick Ben Koetter wrote:
>> * Danilo Godec <>:
>>> is it possible (or what's the simple way) to skip SPAM checks for all
>>> mail, that originates from and is destined for local delivery?
>>> Is this something that can be done within Amavisd-new (2.6.4)? Or will I
>>> need to do something on Postfix?
>> If you know all local client IP addresses
>> - define all networks in amavis' @mynetworks
>> - Create the policy bank MYNETS in amavis and configure it to skip SPAM
>> checks.
>> - use XFORWARD in Postfix to tell amavis the clients real IP
> Yes, I know all local IP's, but this prevents spam checks even for
> outgoing mail (which is not quite what we want)...
> I still want (at least try) to prevent our computers sending spam OUT,
> but I don't care if local users send spam or whatever to each other...
> Danilo

I think basically you could add your internal domains to spam lovers:

$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
  spam_lovers_maps => [[qw( )]],

Optionally bypass scanning. The internal spam messages would not get
marked as spam if this is chosen. This qualifies as "skip spam checks
for local mail":

$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
  bypass_spam_checks_maps => [[qw( )]],
  spam_lovers_maps => [[qw( )]],

or generate additional notification traffic:

$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
  spam_admin_maps => ["postmaster\@$mydomain"], # alert of internal spam
  spam_kill_level_maps => [7.0],
  final_spam_destiny => D_BOUNCE, # notify sender of internal spam
  spam_lovers_maps => [[qw( )]],
  spam_dsn_cutoff_level_maps => [9999],
  spam_dsn_cutoff_level_bysender_maps => [9999],

-- Gary V ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! _______________________________________________ AMaViS-user mailing list Please visit regularly For administrativa requests please send email to rainer at openantivirus dot org