built on Mon Apr 13 20:10:22 CDT 2015
First of all, postfix forwarder + mailscanner - great plugins. Thanks.
I'm having a problem though - I want to BLOCK zip attachments among other attachments like .bat, .vbs, .exe, etc. I first tried to configure postfix forwarder with mime_header_checks and that blew up, it didn't work - it was a regex which does NOT need to be post mapped unlike one commenter said. I looked it up on the postfix man pages and from what I gather you don't need to postmap command regex files to make a db so postfix can look things up. This is what I tried: https://forums.freebsd.org/threads/postfix-header-check-to-block-executable-files.11393/
I couldn't get it working.
So, I then read about mailscanner and saw PFSense had a plugin for that. Well, same same - out of the box it does NOT block zip attachments and for the life of me I can't figure out how the heck to get it to block them.
So now I've got both postfix forwarder + mailscanner enabled neither of which is doing what I want.
Lastly, mailscanner is just letting viruses on in the door. I assumed it would block then and scan them with clamav however; it did not and AVG which is on the Exchange server caught it. That's AFTER it went through PFSense + postfix forwader + mailscanner.
I feel like for the most part, besides blocking spam with RBL's in postfix forwarder that those two modules are almost pointless.
Is there anyone in the world who has configured postfix forwarder or mailscanner to block attachments on a PFSense?