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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Tabor J. Wells
日付:  
To: Elliot Finley
CC: exim-users
題目: 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