Allow wmv for attachments

Discuss our MailScanner install script and MailScanner itself
Post Reply
alsmith
Junior Member
Posts: 24
Joined: 10 Dec 2006, 13:13

Allow wmv for attachments

Post 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?
sdjl
Junior Member
Posts: 81
Joined: 10 Dec 2006, 16:56
Location: London, UK.

Post 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
alsmith
Junior Member
Posts: 24
Joined: 10 Dec 2006, 13:13

Post by alsmith »

thanks, I was missing the part that was reading the /usr/mailscanner/etc rules files.
MisterM74
Junior Member
Posts: 4
Joined: 22 Apr 2011, 19:06

Re: Allow wmv for attachments

Post 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:
Sarah
Moderator
Posts: 934
Joined: 09 Dec 2006, 22:49

Re: Allow wmv for attachments

Post 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
MisterM74
Junior Member
Posts: 4
Joined: 22 Apr 2011, 19:06

Re: Allow wmv for attachments

Post 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:
Post Reply