[exim] block certain file extensions, but file extensions i…

Inizio della pagina
Delete this message
Reply to this message
Autore: Brent Clark
Data:  
To: exim-users
Oggetto: [exim] block certain file extensions, but file extensions in a seperate file
Hey all

For the likes of me, im trying to get Exim to block certain file extensions.

Ive tried the first example from the url

http://wiki.exim.org/ExiscanFilenameBlocking

But alas, that does not work.

This example does work

# File extension filtering.
deny message = This message contains a prohibited file extension (${extract{-1}{.}{${lc:$mime_filename}}})
log_message = BAD_ATTACHMENT (${extract{-1}{.}{${lc:$mime_filename}}})
condition = ${if match{${extract{-1}{.}{${lc:$mime_filename}}}}{\N^(com|exe|wmv)$\N}{1}{0}}
#condition = ${if match{${extract{-1}{.}{${lc:$mime_filename}}}} nwildlsearch {/etc/exim4/mime_regexes}{1}{0}}
#condition = ${if lookup{${extract{-1}{.}{${lc:$mime_filename}}}} nwildlsearch {/etc/exim4/mime_regexes}{1}{0}}

But im trying to get the two to work together, but I keep getting this message

"temporarily rejected during MIME ACL checks: failed to expand ACL string "${if match{${extract{-1}{.}{${lc:$mime_filename}}}} nwildlsearch {/etc/exim4/mime_regexes}{1}{0}}": missing 2nd string in {} after "match""

Would anyone have a working example for nwildsearch.

Kind Regards
Brent Clark