On Tue, Sep 28, 2010 at 01:45:49PM -0700, Murray S. Kucherawy wrote: > (If this would be better asked on postfix-devel, let me know and I'll repost > it there.) > > What does Postfix do with a message that has a malformed header? > If for example there's a header that's found to contain a line whose first > character is alphanumeric (thus not a continuation) but contains no colon, > is this treated as a header field, or does this cause the header to end > and the body to begin, or something else?
If garbage appears at the end of the primary message headers (not a nested message/rfc822 part), a blank line is output and the offending garbage line becomes part of the message body. For nested message headers the behaviour is version dependent. For Postfix between 2.0 and 2.3 blank lines are also inserted before garbage in a nested message header. After Postfix 2.4, no blank line is inserted, but the content is still processed as a body line. -- Viktor.