Bad headers not bouncing
Mark Martinec
Mark.Martinec+amavis at ijs.si
Fri Jun 20 20:35:22 CEST 2014
Bruce Pennypacker wrote:
> I just set up amavisd 2.9.0 on a CentOS server running postfix 2.6.6.
> For
> the most part things appear to be working properly, however I'm having
> an
> issue where spams with a bad header are making it through.
We resolved this issue with Bruce offline,
the rest is mainly for the archive:
> All the spams in question have headers similar to this:
>
> X-Quarantine-ID: <ML1NQ4CCLqQY>
> X-Virus-Scanned: amavisd-new at <mydomain>
> X-Amavis-Alert: BAD HEADER SECTION, Missing required header field:
> "Date"
> X-Spam-Flag: NO
> X-Spam-Score: 0
> X-Spam-Level:
> X-Spam-Status: No, score=x tagged_above=-9999 required=6.2 tests=[]
>
> In my amavisd.conf file I have:
> $final_bad_header_destiny = D_BOUNCE;
> Why are these spams being delivered and not bounced? I must be
> missing something but I'm not sure what.
Turns out there is a bug in amavisd, which will be fixed in 2.9.1:
BUG FIXES
- when a $final_bad_header_destiny is set to D_BOUNCE and a mail
message was a DSN or coming from a mailing list, spam checks were
inappropriately skipped (logged as: "bypassing of spam checks,
message will be blocked anyway", which was not true);
Mark
More information about the amavis-users
mailing list