Wietse Venema: > Luca Fornasari: >> I have an old Postfix 2.3.3 installation where the built-in MIME >> parser is modifying (adjust) wrongly formatted MIME messages while >> relaying them. >> >> This is not happening on a newer Postfix 2.6.6 installation and I >> can't find any configuration parameter to restore the old behavior (as >> I did for the missing headers). > > If the problem is with email addresses in message headers, you could > try setting local_header_rewrite_clients=static:all. Otherwise, you > could use header_checks to "fix" malformed headers.
The problem is with missing blank line between MIME boundary and content in the body of the email i.e. --=boundary1= Content-type: multipart/related; boundary="=boundary2=" --=boundary2= Content-type: text/html;charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Segue tabella HTML <TABLE> <TR><TD>1A</TD><TD>1B</TD><TD>1C</TD></TR> <TR><TD>2A</TD><TD>2B</TD><TD>2C</TD></TR> [...] In Postfix 2.3.3 the missing blank line was inserted while in Postfix 2.6.6 it is not. While looking at the source code diffs of src/global/mime_state.c I see * XXX We don't insert a blank line separator into attachments, to * avoid breaking digital signatures. Postfix shall not do a * worse mail delivery job than MTAs that can't even parse MIME. [...] * Sites concerned about MIME evasion can use a MIME normalizer. * Postfix has a different mission. Can you confirm this is the reason of the different behavior? I agree the problem is not Postfix and the best solution is to correctly format the email, anyway as I said it is not that easy. I need a strong reason to convince the audience. Thanks in advance Luca