Re: [exim] Exim file filters

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Mar Matthias Darin
日付:  
To: Ian
CC: exim-users
題目: Re: [exim] Exim file filters
Hello,

Ian writes:

> I opted for the first option on the page, as it was mentioned that the
> demime option is deprecated.
>
> Unfortunately I could not get it to filter yet.
>
> I added the line acl_smtp_mime = acl_check_mime to the
>
> acl_smtp_rcpt = acl_check_rcpt
> acl_smtp_data = acl_check_data
> acl_smtp_mime = acl_check_mime
>
> grouping.
>
> The other 2 ACL's were working before the addition of the 3rd and are
> still functional.
>
> I added the following after the acl_check_data section
>
> acl_check_mime:
>
>  deny     message = Bad attachment filename ($mime_filename): $acl_m0
>           set acl_m0 = ${lookup {$mime_filename} nwildlsearch 
> {/usr/exim/mime_regexes} }
>           condition = ${if def:acl_m0 } 

>
> accept
>
>
> The mime_regexes file contains:
>
> ^.*\.exe
> ^.*\.scr
> ^.*\s{10}
> ^.{50}
>
>
> Exim accepts all messages and passes all attachments - it does not seem
> to scan the mail.
>
> It has to be a minor thing I'm doing wrong.
>
> Your assistance would be appreciated.


I think you might be making you job harder then need be. Take a look at
this:

http://qref.sourceforge.net/Debian/reference/examples/exim.filter

It does what you are seeking at the system filter level.

---

DynaStop: Stopping spam one dynamic IP address at a time.
http://tanaya.net/DynaStop/

Latest version is 07032.1438