Re: [exim] Anti Asia Spam in system-filter

Góra strony
Delete this message
Reply to this message
Autor: Frank Simon
Data:  
Dla: David Woodhouse
CC: Exim-users
Temat: Re: [exim] Anti Asia Spam in system-filter
Hi,

Am 15.09.2004 um 15:48 schrieb David Woodhouse:
> On Wed, 2004-09-15 at 12:23 +0200, Frank Simon wrote:
>> I define in my system-filter:
>>
>> # Asia Spam
>>
>> if $header_content_type: contains "GB2312"
>> then
>>    mail to $return_path
>>         subject "Mail rejected, japanese or chinese content"
>>         file /usr/exim/tmpl/asiaspam-reject.txt
>>    seen finish
>> endif

>
> Please don't do it like this. By accepting the mail and only _later_
> deciding to bounce it, you are causing yourself to send bounces to
> innocent third parties. Consider doing it in a DATA ACL instead. Either
> something like
>
>     deny condition = ${if match{$h_content-type:}{GB2312}{1}}
>          message = "Mail rejected; Japanese or Chinese content"

>
> ... or if you _really_ want to keep a copy then use exiscan so that you
> can use 'fakereject' instead of 'deny', and still squirrel it away to
> wherever you want it in your system filter.


Thanks for the hint.

My problem in the system-filter was, i`cannot see (content-type instead
of content_type).

But you are right, the deny condition is the better way.

Frank
--
Frank Simon                          ECCE TERRAM Internet Services GmbH
Tel. 0441 / 500 120                  Edewechter Landstr. 42
Fax. 0441 / 500 1229                 D-26131 Oldenburg
Ex Astris Scientia