Re: [exim] Regex help

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Paul Dekkers
Dátum:  
Címzett: Chris Edwards
CC: Exim-users
Tárgy: Re: [exim] Regex help
Hi,

Chris Edwards wrote:

>On Fri, 11 Mar 2005, Marc Perkel wrote:
>
>| Trying to write a regex string to detect 8-bit characters in various
>| headers. What I want to do is drop message with lots of 8-bit characters
>| in the subject line.
>
>Try:
>
>  deny    condition = ${if match{$h_subject:}{\N[\x80-\xFF]{3,}\N}{yes}{no}}

>
>NOTE - in reality, a fair number of otherwise-legit mails from eastern
>europe and the far east have 8bit characters in the subject and other
>headers. Whether this matters to you depends on the size and diversity of
>your user base...
>
>

I'm wondering: would these characters ever be in the return-path for
legitime mails?
I found that both exim and postfix accepts the characters but cyrus
rejects the mail so a bounce is generated eventually with:
501 5.5.4 Syntax error in parameters (in reply to MAIL FROM command)

(Would be nice to have a set of rules that check the same things as
cyrus does, to prevent bounces and reject as soon as possible...)

Regards,
Paul