Re: [exim] Adding a header line to indicate ACL statement

Top Page
Delete this message
Reply to this message
Author: Jakob Hirsch
Date:  
To: doug
CC: exim-users
Subject: Re: [exim] Adding a header line to indicate ACL statement
Doug Jolley wrote:

> However, short of setting up a separate warn
> statement which mirrors the conditions for each
> of the accept statements, I'm not sure how I can
> use the warn verb to accomplish this objective.


It thought that there's a way to add a header in an accept, but it seems
not. Anyway, you can use this:

warn
message = X-Accepted: something
set acl_m0 = ok
accept
condition = ${if def:acl_mo}

or:

accept
cond1
...
set acl_m0 = the reason why

...

your_router:
...
headers_add = X-Accepted: ${if def:acl_m0 {$acl_m0}{unknown}}