Justin wrote:
> Hi,
> We run amavisd-new-2.4.3_1,1 on FreeBSD 6.1 and I've
got a question
> about how to exclude a single domain from spam-checks.
> I've read a few documents and before I adjust a live
environment I want
> to check if I'm right:
> In amavisd.conf I want to add the following entry:
> bypass_spam_checks_maps =
(read_hash("$MYHOME/spam_domains"), 0);
> (What about the last zero, is that good of must that be
a "1"?
> In the file spam_domains I add the following line:
> domain.nl 0
> .domain.nl 0
> Is this correct? Or do I mis something?
> Further more, do I need to use " spam_lovers_maps" or not? That is not
> clear to me. Some how-to's mention this entry as
needed, other don't.
> Can someone give me a hint of what to do?
> Thanks in advance!
What you want to do is set a 'true' condition for
bypass_spam_checks
for one of your domains (and include subdomains). 0 is false
and 1 is
true. When the read_hash function reads the file in question
it looks
for a left hand side and a right hand side. If the right
hand side is
missing is assumes a 1 (true). The entry .domain.nl includes
domain.nl
so it would be sufficient to simply place this in the file:
.domain.nl
which is equivalent to:
.domain.nl 1
The explicit zero you place here:
bypass_spam_checks_maps =
(read_hash("$MYHOME/spam_domains"), 0);
is fine but it is not required, so this could be:
bypass_spam_checks_maps =
(read_hash("$MYHOME/spam_domains"), );
and in this case it would work the same. It works because
only the
domain(s) listed in the file will be bypassed. Any other
domain will
simply not be found, and therefore will not be bypassed.
In situations where you are bypassing scanning for some
recipients and
not others it is a good idea to also place those recipients
that are
bypassing in the corresponding lovers maps. This is a good
idea because
when a message is addressed to multiple recipients, those
recipients may
disagree on whether scanning should occur or not. Bypassing
saves time
and energy but does not guarantee delivery in the same
manner being in
a lovers map would.
Gary V
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|