Mail Firewall
The mail admin defines what types of attachments are acceptable, and only those attachments will be allowed through. Other attachments will be removed, and the message recipient will get the acceptable parts of the E-mail, prefixed by a message describing what was removed, and why.
mailfw goes between the Internet and your primary internal mail server. You know more about your mail setup than I do, so you should be able to figure out how to make sure that all mail goes to a mail firewall first. My postfix configuration looks like this:
|
Given that configuration, all mail defined to be delivered locally should be firewalled.
Next, make sure that your mailfw.conf is in that place, and is configured the way you want it. In particular, make sure that the mime_ok and ext_bad paths are absolute paths to the locations of the respective files. mime.ok contains patterns to be tested against the mime-types of incoming files (Warning: MS products tend to come in with a lot of different mime-types, so if you need them, you'll spend a bit trying to get them all in there), and ext.bad contains the extensions (a test against the end of the suggested filenames), for files that make it through the mime test.
Also note that the mailstore directive defines the location where all incoming messages will be archived before having attachments removed. You might want to make sure you have room for that, and that you clean it up periodically.