Page 1 of 1
allowable attachments
Posted: Tue Jun 13, 2006 7:38 am
by codehaxor
is it possible to set scalix to only accept certain filenames like .doc or .zip only?
Posted: Tue Jun 13, 2006 9:29 am
by jim mullady
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
Posted: Tue Jun 13, 2006 12:31 pm
by codehaxor
there are alot of file extensions how to i just set .doc and .zip to allowable only. Is that possible?
Posted: Tue Jun 13, 2006 12:39 pm
by codehaxor
lets say I want to block all types of attachment except for ZIP and DOC only
Posted: Tue Jun 13, 2006 2:42 pm
by jim mullady
I do not believe there is a wildcard option, I would believe you have to enter each type you want blocked.
Posted: Wed Jun 14, 2006 2:41 am
by codehaxor
Ok thanks im doing some paper work for some clients, by the way im Dax the Scalix Engineer here in the Philippines, Im working for 8Layer Technologies which is Scalix's partner here in the Philippines.
Were doing R&D to integrate scalix with our own customized operating system called the INTEL 8 A.