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

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Elliot Finley
CC: Tabor J. Wells, exim-users
Subject: Re: [Exim] reject based on regex at SMTP time?
On Thu, 25 Mar 2004, Elliot Finley wrote:

> 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?


Yes.

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

                                                  ^
                                                  ^
                                                  ^
                                                  ^
                                                  ^


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book