This one time, at band camp, Stephen Gran said:
> This one time, at band camp, François TOURDE said:
> > Package: clamav
> > Followup-For: Bug #292483
> > 
> > The message generated by Clamav is reported on stderr, event with the 
> > --stdout option. In this case, exim see a stdout error message, then 
> > bounce with an error message to sender.
> > 
> > I'm using Exim3, Amavis-ng and Clamav.
> 
> Fair enough, I will look at the code and see where this is going wrong.
> In the meantime, why are you using clamscan instead of clamdscan?
> That's a huge performance hit.

Ah, I see now - messages from the library don't use the standard output
functions, and so they ignore switches given to programs.  This is
likely a bug in implementation.  I will pass this upstream.

In the meantime, in the amavis config, when you call clamscan on a
message, redirect stderr to stdout (2>&1 or so - I don't use amavis, but
that would be the shell construct to do so).  Or just clamdscan -
messages from the library are suppressed then, and you won't have this
problem.  You should be relying on regex matching (FOUND) rather than
exit status to check what clam is doing - otherwise you end up ouncing
mail if clam is in a wierd state.

HTH,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: pgpCcd4LNRzhw.pgp
Description: PGP signature

Reply via email to