> Date: Fri, 6 May 2011 21:16:43 +0300 > From: Mark Martinec <[email protected]> > To: "[email protected]" <[email protected]> > Subject: Re: amavisd-release(2.6.5) and banned files ? > > > I may have found a possible bug with amavisd-release (v.2.6.5) > > and banned files: > [...]
[...] > The problem is in the amavisd-release, not sending a 'mail_file' > attribute when a quarantine type is not known and the determination > of a quarantine type is left over to amavisd. > > The problem occurs if a quarantine id does not end in ".gz" > _and_ the quarantine is file based (not SQL), > _and_ the quarantine is kept at one level of a directory (no subdirectories, > i.e. $quarantine_subdir_levels = 0). > > I believe the following patch to amavisd-release (as distributed by 2.6.5) > fixes the issue: > > --- amavisd-release.orig 2011-03-31 19:56:42.970618929 +0200 > +++ amavisd-release 2011-05-06 20:04:44.026358669 +0200 > @@ -166,3 +166,3 @@ > push(@query, "secret_id=$secret_id") if $secret_id ne ''; > - push(@query, "mail_file=$mail_file") if $quar_type =~ /^[FZB]\z/; > + push(@query, "mail_file=$mail_file"); # ignored with an SQL quarantine > push(@query, "partition_tag=$part_tag") if $part_tag ne ''; Thanks, this patch works for me. -Jarno -- Jarno Huuskonen
