Reject mail with zip files
See original GitHub issueWhat do you think about restrincting mail with malicious embeded files.
Most of ransomware are spread via zip files.
It could be useful to have this default configuration :
- In /etc/postfix/main.cf :
mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp
- In /etc/postfix/mime_header_checks.regexp
/name=([^>]*\.(ade|adp|bat|chm|cmd|com|cpl|dll|exe|hta|ins|isp|jar|jse|lib|lnk|mde|msc|msp|mst|pif|scr|sct|shb|sys|vb|vbe|vbs|vxd|wsc|wsf|wsh|zip))/ REJECT Files attached to emails that contain or end in "$2" are prohibited on this server as they may contain viruses. The file named $1 was rejected
- We also need to remove
no_header_body_checks
in /etc/postfix/master.cf in line:
receive_override_options=no_header_body_checks,no_unknown_recipient_checks
In modoboa config page, we could have a checkbox to activate or not this feature ?
Otherwise one can be satisfied with a tutorial in the doc.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to block emails with zip (files) attachments in Outlook?
Here, this tutorial will introduce a solution to block all emails with .zip attachments in Outlook. Block emails with zip (files) attachments in...
Read more >4 Ways to Email Attachments When the File Extension Is ...
2. Put The Files In A Zip File ... If you want to send several files and unblock individual attachments, this is the...
Read more >Reject emails with ZIP files containing EXE files - cPanel Forums
Gmail automatically rejects emails with ZIP attachments that contain either other ZIPs or executable programs
Read more >Question - Block zip files on mail server - Plesk Forum
Hello, we're receiving a lot of spam, phising and virus-emails. Is there a way to block all emails containing zip files?
Read more >My email provider does not allow Zip files as attachments ...
Zip files normally use the .zip extension. If your email provider, or the one used by the person who will receive your file,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fpiccinali I’ve recently tried an amavis configuration which seems to provide good results:
I think I’ll include it to the default configuration deployed by the installer.
@fpiccinali Can I close this issue?