Re: demime question..
Brian <[email protected]>
| Newsgroups | gmane.mail.exim.exiscan.user |
|---|---|
| Organization | Adriance Memorial Library |
| Message-ID | <[email protected]> |
Thank you all for answering me back :)
I guess I didn't make my problem clear ( my fault )
I have a working setup, but it's a -confusing- working setup.
I would like to make it more clear.
I have seen other examples of how to reject pif/bat/scr files presented
like this:
# global
acl_smtp_mime = acl_check_mime
acl_check_mime:
deny message = This message contains an attachment of a type which we
do not accept. (.$found_extension)
demime = bat:cmd:com:exe:hta:pif:prf:lnk:scr:shm:vbs:wcs:wsh
# end of example
I've *seen* this used in many examples but this does not work for me.
what I have that works for me is this:
# global
acl_smtp_mime = acl_check_mime
acl_check_mime:
# File extension filtering.
deny message = blocked file extension: [$mime_filename]
condition = ${if match {${lc:$mime_filename}} \
{\N(\.bat|\.cmd|\.com|\.exe|\.hta|\.pif|\.prf|\.lnk|\.scr|\.shm|\.vbs|\.wcs|\.wsh)$\N}
\
{1}{0}}
# end of working config
what I would like to end up with is with the first example as what I
have to work with.
And I cannot figure out why I am unable to end up with what I want.
I can post my whole config somewhere if it would make it easier...
- Brian