• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Question Block zip files on mail server

asgeir abramsen

New Pleskian
Hello, we're receiving a lot of spam, phising and virus-emails. Is there a way to block all emails containing zip files? We have spamassassin, but it's not helping enough. Thank you!
 
Hi asgeir abramsen,

if you really would like to block/reject "*.zip" - files ( or/and *.exe, *.bat - files ), you can reach that goal for example with postfix:
  1. Edit /etc/postfix/main.cf
    1. Add for example: mime_header_checks = regexp:/etc/postfix/block_unwanted_attachments
  2. save "main.cf"
  3. Create the file "/etc/postfix/block_unwanted_attachments" with the content:
    Code:
    /name=[^>]*\.(bat|exe|zip)/ REJECT
  4. reload postfix with the command: service postfix reload
 
Back
Top