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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Dennis Davis
Fecha:  
A: Elliot Finley
Cc: exim-users
Asunto: Re: [Exim] reject based on regex at SMTP time?
>From: Elliot Finley <efinleywork@???>
>To: "Tabor J. Wells" <twells@???>
>Cc: exim-users@???
>Subject: Re: [Exim] reject based on regex at SMTP time?
>Date: Thu, 25 Mar 2004 08:48:56 -0700
>
>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?


Make it:

deny  condition = ${if match {$header_subject:}{\Nwindows-1251\N} ...
                                             ^
                                             | You need this colon.


Note that Tabor included the colon in the example he gave.

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