• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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