Hi,<br><br>I'm using:<br><br>mailscanner-4.65.3-1.noarch<br><br>and trying to block various movie files for a domain.<br><br>I have done this sort of setup numerous times for other domains and it all works fine, but for this one particular domain I cannot get it to work. wmv's, avi's, mpg's, etc all pass through.<br><br>My inbound MX servers (which run MailScanner) have both configured:<br><br>%etc-dir%/example.com.filename.rules:<br><br>deny \.avi$ AVI files not allowed AVI file not allowed<br>deny \.mov$ MOV files not allowed MOV files not allowed<br>deny \.mp3$ MP3 files not allowed MP3 files not allowed<br>deny \.mpg$ MPG files not allowed
MPG files not allowed<br>deny \.mpeg$ MPEG files not allowed MPEG files not allowed<br>deny \.swf$ SWF files not allowed SWF files not allowed<br>deny \.wav$ WAV files not allowed WAV files not allowed<br>deny \.wmv$ WMV files not allowed WMV files not allowed<br><br>and %etc-dir%/example.com.filetype.rules:<br><br># NOTE: Fields are separated by TAB characters --- Important!<br>#<br># Syntax is allow/deny/deny+delete, then regular expression, then log text,<br># then user report text.<br>#<br># If none of the rules match, then the filetype is allowed.<br><br>allow
text - -<br>allow \bscript - -<br>allow archive - -<br>allow postscript - -<br>deny self-extract No self-extracting archives No self-extracting archives
allowed<br>deny executable No executables No programs allowed<br>deny ELF No executables No programs allowed<br>deny Registry No Windows Registry entries No Windows Registry files allowed<br><br>deny MPEG No MPEG movies No MPEG movies allowed<br>deny AVI No AVI movies No AVI movies allowed<br>deny
MNG No MNG/PNG movies No MNG movies allowed<br>deny QuickTime No QuickTime movies No QuickTime movies allowed<br>deny ASF No Windows media No Windows media files allowed<br>#<br>deny WMV No Windows media No Windows media files allowed<br>#deny metafont No Windows Metafont drawings No WMF drawings allowed<br><br>and both of these files are referenced from:<br><br>%rules-dir%/filename.rules<br><br>which
contains:<br><br>FromOrTo: *@example.com /etc/MailScanner/example.com.filename.rules.conf<br>FromOrTo: default /etc/MailScanner/filename.rules.conf<br><br>and:<br><br>%rules-dir%/filetype.rules<br><br>which contains:<br><br>FromOrTo: *@example.com /etc/MailScanner/example.com.filetype.rules.conf<br>FromOrTo: default /etc/MailScanner/filetype.rules.conf<br><br>This setup should work, yet it doesn't. I send through WMV files and they just pass through.<br><br>After processing, those inbound MX servers deliver the emails to the remote destination Exchange server.<br><br>I have also tried the new options for "Deny Filenames =" and "Deny Filetypes =" presented with the newer MailScanner, by doing (in
MailScanner.conf):<br><br>Deny Filenames = %rules-dir%/deny.filenames.rules<br>Deny Filetypes = %rules-dir%/deny.filetypes.rules<br><br>which contain:<br><br># cat deny.filenames.rules<br>FromOrTo: *@example.com \.wmv$<br>FromOrTo: default<br><br># cat deny.filetypes.rules<br>FromOrTo: *@example.com \.wmv$<br>FromOrTo: default<br><br>(I think that's the right format for those two files?)<br><br>and that also still allows through the wmv attachments.<br><br>Is there anything else I am missing here? if not, any ideas why this doesn't work or how I can get it to work?<br><br>Thanks.<br><br>Michael.<br><br><p> 
<hr size=1>
Make the switch to the world's best email. <a href="http://au.rd.yahoo.com/mail/taglines/default_all/mail/spankey/*http://au.yahoo.com/worldsbestmail/spankey/" target=_blank>Get the new Yahoo!7 Mail now</a>.