[pfx] Re: What does postfix do with malformed messages?
On Wed, Nov 29, 2023 at 10:17:01AM -0500, Wietse Venema via Postfix-users wrote: > > 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. > > In addition to what Viktor mentioned, Postfix will add or rewrite > headers for "local" submissions (by default, any message that does not > come from the machine itself). See > https://www.postfix.org/postconf.5.html#local_header_rewrite_clients Pedantic correction, I hope this was clear, despite the verbatim text: "remote" submissions are by default those that don't come from the machine itself, while "local" submissions are the ones that are subject to rewrites. -- Viktor. ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: What does postfix do with malformed messages?
John Levine via Postfix-users: > 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? > > 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. In addition to what Viktor mentioned, Postfix will add or rewrite headers for "local" submissions (by default, any message that does not come from the machine itself). See https://www.postfix.org/postconf.5.html#local_header_rewrite_clients Wietse ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: What does postfix do with malformed messages?
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