amavis-user January 2012 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: amavisd-submit

Re: amavisd-submit

From: Mark Martinec <Mark.Martinec+amavis_at_nospam>
Date: Wed Jan 25 2012 - 19:10:03 GMT
To: amavis-users@amavis.org

> OOPS! I thought I had already updated to 2.7.0.
>
> Any way, I now have updated and still get basically the same error in the
> mail log.
>
> Jan 25 10:37:08 mustang amavis[10065]: (94LsvbC_Hm) Request: AM.PDP
> /var/amavis/amavis-94LsvbC_Hm: <didavies@sdc.com.au> -> <scldad@sdc.com.au>
> Jan 25 10:37:08 mustang amavis[10065]: (94LsvbC_Hm) Checking: NtuVROSKEmIh
> AM.PDP-SOCK [165.228.168.21] <didavies@sdc.com.au> -> <scldad@sdc.com.au>
> Jan 25 10:37:08 mustang amavis[10065]: (94LsvbC_Hm) local delivery: <> ->
> bad- header-quarantine, mbx=/var/virusmails/badh-NtuVROSKEmIh
> Jan 25 10:37:08 mustang amavis[10065]: (94LsvbC_Hm) Passed BAD-HEADER-6

> Attached is a tarball with a sample quarantined bad header and the email
> used in the test.
>
> The command used was:
> ./amavisd-submit didavies@sdc.com.au scldad@sdc.com.au < /tmp/test.mbox

There is indeed a syntax error in the first line of the message header
section:

  From john@benparts.com.au Mon Jan 23 16:14:46 2012
  Return-Path: <john@benparts.com.au>
  X-Virus-Scanned: amavisd-new at sdc.com.au

The "From " line does not belong to a message. It is a mbox-style separator
line - a component of a mbox file, not a part of a message itself.
It is considere a syntax error because it is does not follow the rules
of a header field: a field name, followed by a colon, followed by a
header field body.

Amavisd (and SMTP) expect a mail message (RFC 5322, RFC 2822),
not a message in an mbox format. You need to get rid of that first
line before submitting it.

  Mark