ConfigServer Services HelpDesk
Server Management Services from Way to The Web Ltd
ConfigServer Home Page

Temporary Closure

We are taking a short break and will close the store, helpdesk and email from 17:00 GMT on Tuesday, 16h April to 09:00 Thursday, 25th April 2024.

If you purchase a license or Service Package before the closing date and require installation, please be sure to leave at least 24-48 hours before then for the work to be done. Otherwise, any work will be scheduled for after this period. We will reopen on Thursday, 25th April 2024.


I've made changes to the filetype.rules.conf file but MailScanner is still blocking the filetypes I want to allow (or allowing the filetypes I wanted to block).

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
The filetype.rules.conf settings use the /usr/bin/file command, which looks inside the file attachment itself and uses definitions from the /usr/share/magic and /usr/share/magic.mime files to determine what type of file it is. Unless you know exactly what you are doing it is difficult to make modifications to this configuration file and get it right.

Simply adding a line with a file extension will _NOT_ work, such as:
allow       jpg        -         -
The file command probably does not know what jpg is and it will not match on those terms.

The easiest changes you can make are to comment out lines (with a # at the beginning of the line), change the "allow" to "deny" or change "deny" to "allow"; these modifications should always work.

You can get more information on the file command and the magic file by running "man file" and "man magic" on your server, or looking here:

http://linux.about.com/library/cmd/blcmdl1_file.htm
http://www.simtec.co.uk/products/SWABLE/files/able-set/command_file.html
http://linux.about.com/library/cmd/blcmdl5_magic.htm

Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© ConfigServer Services