<span style>---------- Forwarded message ----------</span><br style><span style>From: Mark Martinec <<a href="mailto:Mark.Martinec%2Bamavis@ijs.si">Mark.Martinec+amavis@ijs.si</a>></span><br style><span style>To: <a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a></span><br style>
<span style>Cc: </span><br style><span style>Date: Tue, 21 Feb 2012 14:25:27 +0100</span><br style><span style>Subject: Re: Scan timeout value for amavis running clamav</span><br style><span style>Anirudha Patil,</span><br style>
<br style><span style>> I have Postfix 2.5.5 running with Amavis [amavisd-new-2.6.4 (20090625)]</span><br style><span style>> integrated with ClamAV 0.96.1</span><br style><span style>></span><br style><span style>> I need to know if there is any default *Scan Timeout* or *Timeout *for</span><br style>
<span style>> amavis process. I can see the below limit options in amavisd.conf but no</span><br style><span style>> options for how long will amavis process would scan a given email before</span><br style><span style>> timing out if any</span><br style>
<span style>> [...]</span><br style><span style>> Is there any child_timeout value associated with amavis, if yes, what is it</span><br style><span style>> and if it has any default value ?</span><br style><span style>></span><br style>
<span style>> Please find my sample amavid.conf file.</span><br style><br style><span style>>There is a $child_timeout setting, with a default value of 8*60 seconds,</span><br style><span style>i.e. 8 minutes. It limits the total time for one mail message processing</span><br style>
<span style>spent in amavisd. The sublimits (virus, spam, ... scans) are derived</span><br style><span style>dynamically from $child_timeout and actual times spent so far.</span><br style><br><b>So does this means, a particular email would be devoted a total time of 8 mins by amavis or would it be more?</b><div>
<br><div><br style><span style>>With your version 2.6.4 the time limits are rather coarse.</span><br style><span style>>The situation in this respect is significantly improved with 2.7.0 :</span><br style>><br style>
<span style>>Release notes:</span><br style>><br style><span style>>- improved support for pre-queue content filtering setups: reorganized time</span><br style><span style>> limiting on processing to obey more strictly a deadline time, which is the</span><br style>
<span style>></span> <span style> sum of $child_timeout and a timestamp at the moment of a reception of a</span><br style><span style>></span> <span style> complete message (SMTP data-end time). The deadline time is also passed</span><br style>
<span style>></span> <span style> to SpamAssassin, which since version 3.3.0 supports a 'master_deadline'</span><br style><span style>></span> <span style> option and can gracefully terminate its processing on a time limit, while</span><br style>
<span style>></span> <span style> still providing results collected so far.</span><br style><span style>></span> <br style><span style>></span> <span style> The setting $sa_timeout is now retired: the variable is still declared</span><br style>
<span style>></span> <span style> for backward compatibility, but has no effect. Instead, the time available</span><br style><span style>></span> <span style> for spam scanning is automatically determined from $child_timeout, taking</span><br style>
<span style>></span> <span style> into consideration the actual time left till the deadline;</span><br style><span style>></span> <br style><span style>></span> <span style>Mark</span><br style><br style>
</div><div>Anirudha</div></div>