• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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