Postby jim mullady » Tue Jun 13, 2006 9:29 am
this may do the trick.
Blocking Attachments Based on File Extension
The file /var/opt/scalix/sys/mime.types is a mapping between a MIME Content-Type and a Scalix file code. This is used by the incoming MIME gateway (and TNEF). We can use this to assign attachments with file code 2188 (Virus infected file) and then use some Service Router functionality to delete those attachments. Please note that 2188 is only being used as a marker to identify the bad attachments.
1) Edit /var/opt/scalix/sys/mime.types and add the following line to the top of the list:
2188 q */* pif exe zip
This says: "For any MIME type where the attachment file name has an extension of pif, exe or zip, assign file code 2188".
The lines are matched in order until a match can be found. There is a limitation of 5 extensions per line, but you can have multiple lines (if you want to block more than 5 attachment types)
2) Add the following tweak to /var/opt/scalix/sys/general.cfg:
SR_FILTER_TYPES_OF_ATT=2188
This will delete any attachment in a message which has file code 2188.
3) Stop and restart the router and the unix g/w
omoff -d 0 router unix
omon router unix