• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Postfix and corrupted attachments in e-mails

awitt

New Pleskian
Plesk 9.5.4 MU16 (Debian 5.0 / Fedora 8), Postfix v2.4.5/2.5.5/2.7.1

I noticed that the postfix does not remove the invalid characters (including the NULL character) from the e-mail.
Enabling "message_strip_characters = \0" in postfix not give the expected result.


When you disable a filter in master.cf

smtp inet n - - - - smtpd -o smtpd_proxy_filter=127.0.0.1:10025
on
smtp inet n - - - - smtpd

everything is working properly. Attachment from an e-mail is not corrupt, illegal characters are removed by the system.


---- To reproduce the problem ----
Use the swaks (apt-get install swaks) and a file attachment file_a1.txt (https://rapidshare.com/files/2733667230/file_a1.txt)

swaks --to [email protected] --add-header "Mime-Version: 1.0" --add-header "Content-Type: multipart/mixed; boundary=\"------------020306020107050807090401\"" --body file_a1.txt -S

file containing a NULL character: https://rapidshare.com/files/2733667230/file_a1.txt
file containing the command swaks: https://rapidshare.com/files/1372573367/file_a2.txt
 

Attachments

  • files_a1a2.zip
    4.7 KB · Views: 0
Back
Top