Re: [Exim] reject based on regex at SMTP time?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Elliot Finley
Date:  
À: Tabor J. Wells
CC: exim-users
Sujet: Re: [Exim] reject based on regex at SMTP time?
I put this:

deny  condition = ${if match {$header_subject}{\Nwindows-1251\N} {yes}{no}}
         log_message = SPAMFILTER: Junk in subject
         message = Go away spammer


in my acl_smtp_data. When I try to send a message I get:

Server Response: '451 Temporary local problem - please try later'

Can you see anything wrong with the above deny condition?

Elliot

----- Original Message -----
From: "Tabor J. Wells" <twells@???>
To: "Elliot Finley" <efinleywork@???>
Cc: <exim-users@???>
Sent: Monday, March 22, 2004 3:35 PM
Subject: Re: [Exim] reject based on regex at SMTP time?


> On Mon, Mar 22, 2004 at 03:12:23PM -0700,
> Elliot Finley <efinleywork@???> is thought to have said:
>
> > is it possible to reject an email at SMTP time based on a regex matching

the
> > subject?
>
> Yes. In your acl_smtp_data ACL you can do something like:
>
> deny    condition = ${if match{$header_subject:}{\Nyour regex

here\N}{yes}{no}}
>         log_message = SPAMFILTER: Blah in Subject
>         message = Your message was refused because we don't like your

Subject:
>
> --
> --------------------------------------------------------------------
> Tabor J. Wells                                     twells@???
> Fsck It!                 Just another victim of the ambient morality