Re: Loosing emails when a failure occurs in spamd / clamav
Jason Haar <[email protected]> Mon, 02 Jun 2008 11:35:49 +1200
| Newsgroups | gmane.mail.qmail.scanner |
|---|---|
| Organization | Trimble Navigation Ltd. |
| Message-ID | <[email protected]> |
[email protected] wrote: > Hello, > > I have a qmail-scanner 2.04 configured with clamav and spamassassin. > > >From time to time I perform upgrades of both programs or some mishap occurs, > What happens is that qmail-scanner receives the messages, tries to process them > and gets an error. > for an example : > > Jun 1 21:30:28 sivan qmail-scanner-queue.pl: > X-Qmail-Scanner-2.04:[sivan12123738275614772] clamdscan: corrupt or unknown > clamd scanner error or memory/resource/perms problem - exit status 512/2 > > > Thing is, when this happens, the mail that was transfered to qmail-scanner is > dropped and lost, > That's just not true. Whenever qmail-scanner generates an error like that, it forces an exit code that causes qmail-smtpd to notice it as a temporary failure. So the sender SMTP server requeues and tries again later. You could have a problem with clamd for hours - and the mail would still get through eventually once the problem was fixed. > Question is: Is there anyway to configure qmail-scanner to reject mail that > can't be scanned properly, or even approve it as if it was scanned rather than > just dropping it and causing mail lost? > That is exactly how it works -- Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +64 3 9635 377 Fax: +64 3 9635 417 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/