....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Mark Martinec (Mark.Martinec+amavis@ijs.si)
Date: Tue Dec 21 2004 - 11:42:02 EST


Andreas,

> I want to have virus checking only for specific domains.
> How can I control this?

Use @bypass_virus_checks_maps .

> for spam checking I have the line
> "read_hash(\%local_domains, '/var/spool/amavis/local_domains');"
> so every recipient domain that's listed in that file get's spam checked

The %local_domains does not affect which mail is spam scanned
and which is not (use @bypass_spam_checks_maps and
@spam_lovers_maps for that).

The %local_domains only controls if inserting
spam-related headers is allowed.

> and also get's modified if needed. How can I accomplish that with virus
> checking? Didn't find it in the docs.

A related example is in amavisd.conf-sample:

# a practical application: don't check outgoing mail for spam:
# @bypass_spam_checks_maps = ( [ "!.$mydomain", "." ] );

Since you have more than one local domain and the list is
already in the %local_domains, you can create a 'negated' hash
from your existing hash, e.g.

@bypass_spam_checks_maps =
  ( {map {$_ => !$local_domains{$_}} keys %local_domains}, 1);

It will not bypass (will scan) mail destined to local domain,
and it will bypass (not scan) all the rest (the final catchall 1).

A cleaner solution to turn off scanning for locally-originating mail
is to use policy bank 'MYNETS'.

  Mark

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/



[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.