• 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.

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