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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Tabor J. Wells
Päiväys:  
Vastaanottaja: Elliot Finley
Kopio: exim-users
Aihe: 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