Hi all, my amavis installation detects a bad header in S/MIME signed emails if the text part has no Content-Type header.
I'm getting this message in my dsn: > The message WAS NOT relayed to: > <[EMAIL PROTECTED]>: > 554 5.6.0 Reject, id=06568-01 - BAD_HEADER: MIME error: error: couldn't > parse head; error near:; Just a simple test e-mail. > > (...) > > INVALID HEADER: BAD MIME HEADERS OR BAD MIME STRUCTURE > > MIME error: error: couldn't parse head; error near:; Just a simple test > e-mail. this message (excerpt) is okay: > This is an S/MIME signed message > > ------951292EBBC2F84AA1BE7CF21B5B37562 > Content-type: text/plain; charset=us-ascii > > Just a simple test e-mail. > > ------951292EBBC2F84AA1BE7CF21B5B37562 Full message: http://www.felix-schwarz.name/files/misc/2007/smime_okay.msg While this one triggers the bad header: > This is an S/MIME signed message > > ------8BFB1D6001F9748054F2C3412980690B > Just a simple test e-mail. > > ------8BFB1D6001F9748054F2C3412980690B Full message: http://www.felix-schwarz.name/files/misc/2007/smime_bad_header.msg From what I know of multipart-Mails, no header is required in the subparts (Content-Type should default to US-ASCII implicitely). And amavis has not problem with this message: > Content-type: multipart/mixed; boundary="simple boundary" > > This is the preamble. It is to be ignored, though it > is a handy place for mail composers to include an > explanatory note to non-MIME compliant readers. > --simple boundary > > This is implicitly typed plain ASCII text. > It does NOT end with a linebreak. > --simple boundary Full message: http://www.felix-schwarz.name/files/misc/2007/mime_okay.msg Did I messed up my amavis or do you see the same results? I saw this on different systems with 2.3.3 and 2.4.4. Is the Content-Type actually required in the S/MIME specification? At least I did not find such a requirement in RFC 2311 [1]. fs [1] http://www.rfc-editor.org/rfc/rfc2311.txt ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@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/