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

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jakob Hirsch
Data:  
Para: doug
CC: exim-users
Assunto: 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}}