Jon Nathan <[EMAIL PROTECTED]> writes:

> Another trick is to drop messages based on header content.  I don't
> speak Korean and have no way to verify that any message sent to me
> in Korean would be legitimate.
>
> # Reject mail with non-ASCII text (byte values > 127) in the Subject:
> # or From: headers.
> headers '^(subject|from)\s*:.*[^\x00-\x7f]{5,}' drop

I use this same regex myself. Even if I did speak Korean, it's not
legal for messages to contain non-ASCII text in the headers, so it
would be safe to bounce them. Legitimate Korean messages are properly
RFC-2047 encoded and so wouldn't be affected by this.

If you use Postfix, you can save TMDA some work and use the same regex
to reject these messages at the SMTP level. I use qmail which doesn't
have this capability AFAIK, so I just use it in TMDA. It bounces about
15-20 messages a day for me.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to