allowable attachments

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

codehaxor
Posts: 34
Joined: Tue May 30, 2006 9:12 am

allowable attachments

Postby codehaxor » Tue Jun 13, 2006 7:38 am

is it possible to set scalix to only accept certain filenames like .doc or .zip only?

jim mullady
Scalix
Scalix
Posts: 38
Joined: Mon Feb 28, 2005 5:50 pm

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

codehaxor
Posts: 34
Joined: Tue May 30, 2006 9:12 am

Postby codehaxor » Tue Jun 13, 2006 12:31 pm

there are alot of file extensions how to i just set .doc and .zip to allowable only. Is that possible?

codehaxor
Posts: 34
Joined: Tue May 30, 2006 9:12 am

Postby codehaxor » Tue Jun 13, 2006 12:39 pm

lets say I want to block all types of attachment except for ZIP and DOC only

jim mullady
Scalix
Scalix
Posts: 38
Joined: Mon Feb 28, 2005 5:50 pm

Postby jim mullady » Tue Jun 13, 2006 2:42 pm

I do not believe there is a wildcard option, I would believe you have to enter each type you want blocked.

codehaxor
Posts: 34
Joined: Tue May 30, 2006 9:12 am

Postby codehaxor » Wed Jun 14, 2006 2:41 am

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.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests