On Wed, 2004-09-15 at 12:23 +0200, Frank Simon wrote:
> Hi,
>
> 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.
--
dwmw2