Showing results for 
Search instead for 
Did you mean: 

deny .exe files

Go to solution
Jennifer Lugar
Occasional Contributor

deny .exe files

How do I set up my openmail or sendmail 8.9.3 to not allow sending or recieving .exe files.
Robin Wakefield
Honored Contributor

Re: deny .exe files

Hi Jennifer,

According to HP, the following should work for messages coming in through the Unix Gateway:

1) edit ~openmail/sys/mime.types
After line
0 application/octet-stream
Add the following line
2188 */* exe

2) edit ~openmail/sys/general.cfg
Change the following line from:




3) Stop and restart service router and unix gateway

I didn't have time to try this out, but you may have better luck.

Rgds, Robin (apologies for late reply).
James Meadows
Occasional Advisor

Re: deny .exe files


We tried the mime.types route and it didn't work at all for us. We ended up blocking much more than we wanted and could never tweak it to only filter exactly as we desired. It seems that the mime type is too unpredictable, depending on the sending PC, email client, and mail servers. We could send an Excel document from two different PCs on our network and the attachments would have differing mime encodings.

James Meadows
Director of University Computing
University of Charleston
Charleston, WV