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?
Allow wmv for attachments
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:
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:
to
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
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
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
Code: Select all
allow ASF No Windows media No Windows media files allowed
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
Re: Allow wmv for attachments
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
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
Re: Allow wmv for attachments
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
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
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
MM74