Marc,

> Is there a way to configure the following in amavisd-new 2.5.1 (openSUSE
> 10.3):
>
> First scan an eMail if it is spam. And if it is and the spam-level is
> high enough so that the mail is discarded ($final_spam_destiny =
> D_DISCARD;), then don't do virus checking any more (because the mail
> would never get into a mailbox).
>
> My problem is, that sometimes when 5.000 to 10.000 backscatter mails
> reach my mailserver in a short time, all that mails are classified as
> spam with a score that ensure it reaches the level to be discarded. But
> they are scanned anyway for viruses. This is producing very high CPU load
> and slows down the mailserver in this situations.

Sahil Tandon wrote:
> I will let Mark respond definitively, but I do not believe what you are
> trying to do is possible.  From the documentation[1]:
>   The logic is currently hard-wired into the program and can not be
> influenced by configuration variables. The following order is used,
> the first condition met decides the outcome:

Thanks Sahil, this is still correct, the logic is still fixed.


It is important (in my view) that a virus check is done even if mail
is spam - this allows to virus-related settings to apply (not spam
settings) when a mail triggers both virus and spam tests.

It practice daemonized scanners are tenfold faster that SpamAssasin,
so for most sites saving on a virus test when mail is spam would
hardly save anything. On the other hand, saving an infected mail from
SpamAssassin check does bring savings (although recently the ratio
of viruses to spam is very low, so there are not much savings there
either).

So it seems to me that the underlying problem is in using a
command-line virus scanner.

  Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to