Mike Husmann
2006-10-19 20:30:39 UTC
Hello list,
I'm testing the latest version of the html_mail plugin with squirrelmail, and
my amavisd-new scanner is tagging html messages sent with attachments as having bad
headers. I'm trying to determine if this really is a SM bug, or if it's an amavis
problem. Examining the headers shows me what looks like to be malformed headers,
but I wanted to run it past all of you guys to see what you think.
Thanks in advance for all your help!
Mike
The specific error is:
X-Amavis-Alert: BAD HEADER MIME error: error: SeveredPreamble: unexpected end of
preamble [in multipart message]; EOSToken: EOF; EOSType: EOF
I've tested this with SM 1.4.6, 1.4.8, and 1.5.1 with the same results. I've made
sure that the amavis and supporting perl modules were up-to-date also, same results.
Here's an example of an email that causes the problem:
----------------------------------------------------------------------------
Return-Path: <>
Delivered-To: bad-header-quarantine
X-Envelope-From: <***@morningside.edu>
X-Envelope-To: <***@morningside.edu>
X-Quarantine-Id: <badh-20061019-091943-02015-01>
Received: from squirrel.morningside.edu (testbed.morningside.edu [192.168.0.104])
by mta.morningside.edu (Postfix) with ESMTP id 937651AF282 for
<***@morningside.edu>; Thu, 19 Oct 2006 09:19:43 -0500 (CDT)
Received: from 192.168.0.103
(SquirrelMail authenticated user bebo)
by squirrel.morningside.edu with HTTP;
Thu, 19 Oct 2006 09:22:39 -0500 (CDT)
Message-ID: <***@squirrel.morningside.edu> Date:
Thu, 19 Oct 2006 09:22:39 -0500 (CDT)
Subject: testing with html
From: "Be Bo" <***@morningside.edu>
To: ***@morningside.edu
User-Agent: SquirrelMail/1.5.1
MIME-Version: 1.0
Content-Type: multipart/mixed;boundary="----=_20061019092239_46584" X-Amavis-Alert:
BAD HEADER MIME error: error: SeveredPreamble: unexpected end of preamble [in
multipart message]; EOSToken: EOF; EOSType: EOF
------=_20061019092239_46584
Content-Type: multipart/alternative;
boundary="3504fsu_trap_48564_93229091016002_=----"
Content-Transfer-Encoding: base64
--3504fsu_trap_48564_93229091016002_=----
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
testing!
TEsting
--3504fsu_trap_48564_93229091016002_=----
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
testing!<br />
<br />
<div align="center">TEsting</div>
--3504fsu_trap_48564_93229091016002_=------
------=_20061019092239_46584
Content-Type: image/gif; name="php.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="php.gif"
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
I'm testing the latest version of the html_mail plugin with squirrelmail, and
my amavisd-new scanner is tagging html messages sent with attachments as having bad
headers. I'm trying to determine if this really is a SM bug, or if it's an amavis
problem. Examining the headers shows me what looks like to be malformed headers,
but I wanted to run it past all of you guys to see what you think.
Thanks in advance for all your help!
Mike
The specific error is:
X-Amavis-Alert: BAD HEADER MIME error: error: SeveredPreamble: unexpected end of
preamble [in multipart message]; EOSToken: EOF; EOSType: EOF
I've tested this with SM 1.4.6, 1.4.8, and 1.5.1 with the same results. I've made
sure that the amavis and supporting perl modules were up-to-date also, same results.
Here's an example of an email that causes the problem:
----------------------------------------------------------------------------
Return-Path: <>
Delivered-To: bad-header-quarantine
X-Envelope-From: <***@morningside.edu>
X-Envelope-To: <***@morningside.edu>
X-Quarantine-Id: <badh-20061019-091943-02015-01>
Received: from squirrel.morningside.edu (testbed.morningside.edu [192.168.0.104])
by mta.morningside.edu (Postfix) with ESMTP id 937651AF282 for
<***@morningside.edu>; Thu, 19 Oct 2006 09:19:43 -0500 (CDT)
Received: from 192.168.0.103
(SquirrelMail authenticated user bebo)
by squirrel.morningside.edu with HTTP;
Thu, 19 Oct 2006 09:22:39 -0500 (CDT)
Message-ID: <***@squirrel.morningside.edu> Date:
Thu, 19 Oct 2006 09:22:39 -0500 (CDT)
Subject: testing with html
From: "Be Bo" <***@morningside.edu>
To: ***@morningside.edu
User-Agent: SquirrelMail/1.5.1
MIME-Version: 1.0
Content-Type: multipart/mixed;boundary="----=_20061019092239_46584" X-Amavis-Alert:
BAD HEADER MIME error: error: SeveredPreamble: unexpected end of preamble [in
multipart message]; EOSToken: EOF; EOSType: EOF
------=_20061019092239_46584
Content-Type: multipart/alternative;
boundary="3504fsu_trap_48564_93229091016002_=----"
Content-Transfer-Encoding: base64
--3504fsu_trap_48564_93229091016002_=----
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
testing!
TEsting
--3504fsu_trap_48564_93229091016002_=----
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
testing!<br />
<br />
<div align="center">TEsting</div>
--3504fsu_trap_48564_93229091016002_=------
------=_20061019092239_46584
Content-Type: image/gif; name="php.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="php.gif"
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/