Q: Block Attachments (ZIP, RAR Etc.)
Hello All
I am sure there would be someone to help me out there.
I want to block all incoming emails in which there are attachments like *.zip or *.rar etc.
This will make server more secure.
Thanks in advance.
OS X Server 5.1 with OS X 10.11.4
Mac mini, OS X El Capitan (10.11.1)
Posted on Mar 31, 2016 11:56 PM
This would also prevent legit ZIP attachments from coming through and is not necessary. ClamAV is quite good at catching viruses inside ZIP files. Also, it will not make your server more secure. If anything, it might prevent a few users from opening an infected file.
If you must, however, edit:
/Library/Server/Mail/Config/amavisd/amavisd.conf
Look for a section starting with:
qr'.\.(exe|vbs|pif|scr|cpl)$'i, # banned extension
and change to:
qr'.\.(exe|vbs|pif|scr|cpl|zip|rar)$'i, # banned extension
Posted on Apr 5, 2016 3:53 AM