On Tue, Nov 28, 2023 at 10:04:53PM -0500, John Levine via Postfix-users wrote:
> If a malformed mail message shows up by SMTP (not local sendmail or > submission), will postfix generally try to clean it up or just > pass it along? You have to be a bit more specific. What does "malformed" mean? Generally speaking, Postfix leaves messages alone, other than folding very long lines when forwarding to a remote SMTP server. Postfix will however insert a blank line after the last header and before the first body line if there isn't one. This can happen when there's a malformed header (missing a ":" or the header name is too far out of spec). > I see the cleanup program and all the options about when to run it and > what to tell it to do, but in practice, will a typical system clean > everything up, just locally submitted stuff, or soemthing else? TNx. The cleanup service is not about fixing the message syntax, its job is primarily to perform address rewriting (primarily 1-to-1 canonical on the envelope and headers followed by 1-to-n virtual on just the envelope recipients). The cleanup(8) service is also responsible for orchestrating the optional header/body checks (user-provided regexp filters) and passing the message content (headers and body) through any milters. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org