• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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