Re: [exim] Block a domain by name

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-users
Betreff: Re: [exim] Block a domain by name
Nigel Metheringham <nigel@???> (Mi 08 Mai 2013 22:32:46 CEST):
>
>
> Heiko Schlittermann wrote:
> >>> Another question, there are a way to block messages using some words that
> >>> are on the Subject?
> >
> >     acl_check_data:

> >
> >
> >         deny    message         = Message rejected for policy reasons.
> >                 condition       = ${if match{$h_subject:}{(?i:money|gold|girls)}

> >
> >         accept

> >
>
> Obviously you need to be careful about the Scunthorpe Problem -
> https://en.wikipedia.org/wiki/Scunthorpe_problem


Of course, thank you. (Didn't know about the name of the problem, but
knew the problem (got it with "CSSexamples")).

For that exact example "\b" should do the trick:

    deny message = bad subject
         condition = ${if match{$h_subject:}{\N\b(?i:money|gold|girls?)\b\N}}


    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-