• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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