Can Exim autodelete attachments per domain

rs-freddo

Well-Known Member
May 13, 2003
828
1
168
Australia
cPanel Access Level
Root Administrator
I used to use Sanitizer with procmail on Ensim. Basically sanitizer uses procmail rules to delete all .exe, .scr etc attachments on emails. It also removes webbugs, a function i sorely miss.

Does anyone know how to setp Exim rules, to delete types of attachments (ie .exe and .scr, .pif etc) on a per domain basis?

cPanel.net Support Ticket Number:
 

jcsolutions

Well-Known Member
Nov 4, 2002
181
0
166
Canada
Hi freddo,

You can do this via the /etc/antivirus.exim file. This post shows code that will remove the email completely. I'm using it now and can confirm it works. If you want a message to go back to the sender letting them know their message was rejected, you can add a "fail text" entry.

http://forums.cpanel.net/showthread.php?s=&threadid=13699&postid=64732#post64732

If you need other attachments removed, maybe you can modify this code to suit your needs.

cPanel.net Support Ticket Number: