• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • 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.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

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