floss, > the $*_ttl values tells how long the result of a virus/spam test > remains valid: > > # expiration time of cached results: time to live in seconds > # (how long the result of a virus/spam test remains valid) > $virus_check_negative_ttl= 3*60; # time to remember that mail was not > infected > $virus_check_positive_ttl= 30*60; # time to remember that mail was infected > $spam_check_negative_ttl = 10*60; # time to remember that mail was not spam > $spam_check_positive_ttl = 30*60; # time to remember that mail was spam > # > # NOTE: > # Cache size will be determined by the largest of the $*_ttl values. > # Depending on the mail rate, the cache database may grow quite large. > # Reasonable compromise for the max value is 15 minutes to 2 hours. > > How does amavis do this? > Use amavis for example hash algorithms for the wohle mail or just body > parts?
It uses a hash of a mail body only. The cache is either stored in a Berkeley DB and this way available to all child processes (global cache), or if $enable_global_cache is false (or $enable_db is false) the cache is local to a child process and kept in its memory. > When is it used, and what amavis behavior is affected? Unless disabled, it is always consulted and updates. It doesn't take much resources. It is less useful nowadays and barely pays for itself, it used to be far more useful in days where spam messages were not individualized, and when virus storms made a significant proportion of mail traffic. For better or worse, these times are now mostly over. It can still help with mailing list traffic. > Isn't it useful to forward every mail to spamassassin because it is > needed for the auto whitelisting filter or autolearn process or > something else? It's a compromise - save some, lose some. For autolearning it is not a great loss, as at least one copy of exactly the same mail body was already given to SpamAssassin the first time such message arrived. Mark ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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/