• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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