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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Tabor J. Wells
Data:  
Para: Elliot Finley
CC: exim-users
Asunto: 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