Bill,
> I had: $child_timeout = 25*250;
1.7 hours is plenty and a lot. Make sure your MTA's smtp service
timeout (smtp_data_done_timeout, on a smtp service feeding amavisd)
is above your child timeout setting. More common setting is few minutes,
the default is 8 minutes:
$child_timeout = 8*60; # abort child if it does not complete a task in n sec
> Anyway, here are the log entries at level 5:
Thanks!
> Feb 13 18:58:36 mail amavis[2478]: (02478-01) ask_daemon_internal: timer
> set to 10 s (was 20000 s)
...timeout reduced to 10s for a connect attempt - this is normal.
> Feb 13 18:58:36 mail amavis[2478]: (02478-01) ClamAV-clamd: Connecting
> to socket /var/amavis/clamd.sock
> Feb 13 18:58:36 mail amavis[2478]: (02478-01) creating socket by
> IO::Socket::UNIX to /var/amavis/clamd.sock
> Feb 13 18:58:36 mail amavis[2478]: (02478-01) ClamAV-clamd: Can't
> connect to UNIX socket /var/amavis/clamd.sock: No such file or
> directory, retrying (1)
[...]
> Feb 13 18:58:43 mail amavis[2478]: (02478-01) (!!)ClamAV-clamd
> av-scanner FAILED: run_av error: Too many retries to talk to
> /var/amavis/clamd.sock (Can't connect to UNIX socket
> /var/amavis/clamd.sock: No such file or directory) at (eval 87) line
> 325, <GEN51> line 36.
but the timeout was not restored in case of a failure.
A bug indeed, thanks for the report!
> Feb 13 18:58:43 mail amavis[2478]: (02478-01) prolong_timer run_av:
> timer set to 10 s
> Feb 13 18:58:43 mail amavis[2478]: (02478-01) run_av Using
> (ClamAV-clamscan): /usr/local/bin/clamscan --stdout --no-summary -r
> --tempdir=/var/amavis/tmp
> /var/amavis/tmp/amavis-20090213T185836-02478/parts Feb 13 18:58:43 mail
> amavis[2486]: (02478-01) open_on_specific_fd: target fd0 closing, to become
> < /dev/null
> Feb 13 18:58:43 mail amavis[2478]: (02478-01) run_command: [2486]
> /usr/local/bin/clamscan --stdout --no-summary -r
> --tempdir=/var/amavis/tmp
[...]
> Feb 13 18:58:53 mail amavis[2478]: (02478-01) (!!)ClamAV-clamscan
> av-scanner FAILED: run_av error: run_av: Exceeded allowed time at (eval
> 87) line 532, <GEN51> line 36.
... and clamscan was a victim, having only 10 seconds available
for the job before it was aborted.
Here is a patch for this bug (against 2.6.2):
--- amavisd.orig 2008-12-15 01:50:09.000000000 +0100
+++ amavisd 2009-02-15 01:57:40.000000000 +0100
@@ -19993,4 +19993,5 @@
1;
} or do { $eval_stat = $@ ne '' ? $@ : "errno=$!" };
+ prolong_timer('ask_daemon_internal', $deadline-time);
last if $eval_stat eq ''; # mission accomplished
# error handling (most interesting error codes are EPIPE and ENOTCONN)
Mark
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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/