Murray S. Kucherawy: > (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?
The first line that is "not a header" is considered to be part of the message body. Postfix may or may not prepend a blank line to this non-header line (it always, did but then it was found that it is better not to insert a blank line in malformed attachments. As of 20070112 Postfix inserts the missing blank line only after the primary message header). Wietse > I'm pretty sure sendmail, for example, ends the header there and > begins the body such that the malformed line is the first line of > the body, but I'm wondering what postfix does. If there's consensus > among popular MTAs about what to do, maybe this should be documented > someplace more formally. > > Thanks, > -MSK