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

Store Closure for Short Break

We will be closing our Store, Email and Helpdesk from 09:00 GMT Wednesday, 30 November 2022 to 09:00 GMT Wednesday, 7 December 2022. No orders, support requests or sales emails will be processed between those dates.

If you purchase a license or Service Package before the closing date and require installation, please be sure to leave at least 24 hours before then for the work to be done. Otherwise, any work will be scheduled for after this period.

There was a problem loading the comments.

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