Page 1 of 1

Allow wmv for attachments

Posted: 16 Dec 2006, 02:35
by alsmith
I've not quite understood how to allow .wmv files for a domain.

I'm looking at the /usr/mailscanner/etc/filetype.rules.conf

can you explain?

Posted: 16 Dec 2006, 13:31
by sdjl
I setup a custom rules file for any email address that wants different settings.
Here's what I do.

Edit /usr/mailscanner/etc/rules/filetype.rules.rules
and insert a line similar to the following for your email address:

Code: Select all

FromOrTo:       address@domain.co.uk /usr/mailscanner/etc/filetype.DOMAIN.rules.conf
Obviously, change the settings to reflect your email address and filename.

Then make a copy of /usr/mailscanner/etc/filetype.rules.conf and rename it to the filename you created above.
Then open up that renamed file and change:

Code: Select all

deny    ASF             No Windows media        No Windows media files allowed
to

Code: Select all

allow    ASF             No Windows media        No Windows media files allowed
Restart MailScanner and all should work :)
There may well be an easier way to do this, but it's the way I figured I out. There's probably also a way to allow a whole domain to apply to the rules too.

David

Posted: 16 Dec 2006, 15:12
by alsmith
thanks, I was missing the part that was reading the /usr/mailscanner/etc rules files.

Re: Allow wmv for attachments

Posted: 19 Oct 2011, 13:18
by MisterM74
Hello
I tried this method on a server debian (postfix / MailScanner) he(it) is say to me that there is a syntax error, you have an idea.
Thank you for your help(assistant)
MM74 :confused:

Re: Allow wmv for attachments

Posted: 19 Oct 2011, 15:38
by Sarah
A syntax error in those files usually means you used the space character instead of the tab character between fields, or you do not have enough fields. Compare the line you added to one of the lines that already was in the file, you may need to add an extra "-" at the end of the line, and be sure that the whitespace between the parts of the line are TABS and not spaces.

However, as you are using Debian and Postfix you cannot be using MailScanner as installed by our install script, which is only for Linux cPanel servers, so there could be some other problem that we are not familiar with.

Regards,
Sarah

Re: Allow wmv for attachments

Posted: 20 Oct 2011, 07:14
by MisterM74
BonsoirAvez-vous craftiness concerning this concern(marigold) because I tried multiple methods, and she(it) do not work, and my customers get impatient... Thank you for your help(assistant)
MM74 :confused: