Re: [Exim] Inspecting headers in DATA ACL

Top Page
Delete this message
Reply to this message
Author: Patrice Fournier
Date:  
To: Greg Ward
CC: exim-users
Subject: Re: [Exim] Inspecting headers in DATA ACL
Quoting Greg Ward <gward@???>:

> Already tried this:
>
>   acl_smtp_data = check_message
>   [...]
>   check_message:
>     deny    condition = ${if eq {$h_subject:}{REJECTME} {yes}{no}}
>             message = well, you ASKED to be rejected!
>     accept

>
> ...to no avail.


Just cut and pasted your acl and it works as you intended here during my
exim -bs tests:

======
MAIL FROM:<>
250 OK
RCPT TO:<postmaster>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
Subject: REJECTME