Re: [Exim] condition in acl_smtp_data

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Odhiambo G. Washington
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] condition in acl_smtp_data
--
* Gabor Z. Papp <gzp@???> [20040105 12:17]: wrote:
> Hello,
>
> check_message:
> require verify = header_syntax
> warn message = X-Authenticated: $authenticated_id
> condition = ${if !def:h_X-Authenticated: {yes}{no}}
> authenticated = *
> accept
>
> The condition only apply to warn message, or to the whole require verify?


There are _three_ distinct rules in that acl.

1. require verify = header_syntax

2. warn message = X-Authenticated: $authenticated_id
condition = ${if !def:h_X-Authenticated: {yes}{no}}
authenticated = *

3. accept

> I would like avoid adding duplicated X- headers, and also would not
> like adding host specific headers like X-Auth-hostname:


Read about headers_remove.


> Seems like this condition works, but I'm not sure it does what I want.


What did you want, actually? ;)
What the 2nd rules is to "add the X-Authenticated header" if there is
none that is already defined.



        cheers
       - wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington                     . WANANCHI ONLINE LTD (Nairobi, KE)  |
<wash at wananchi dot com>              . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223                 . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121                 . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
                         --from a /. post
--
[ Content of type application/pgp-signature deleted ]
--