Re: [exim] No $header_from: in rewriting rule

Pàgina inicial
Delete this message
Reply to this message
Autor: Magnus Holmgren
Data:  
A: exim-users
Assumpte: Re: [exim] No $header_from: in rewriting rule
On Tuesday 21 November 2006 21:12, Bertram Scharpf wrote:
> Rewriting rule:
>
> begin rewrite
>
> *@* "(--) $header_from: , $h_from: , $header_from , $h_from (--)" Fs
>
> Debug output:
>   20:23:28 21804 user@??? in "*@*"? yes (matched
> "*@*") 20:23:28 21804 expanding: (--) $header_from: , $h_from: ,
> $header_from , $h_from (--) 20:23:28 21804    result: (--)  ,  ,  ,  (--)
>   20:23:28 21804 LOG: MAIN PANIC
>   20:23:28 21804   Rewrite of user@??? yielded
> unparseable address: missing or malformed local part (expected word or "<")
> in address (--)  ,   ,  ,   (--)

>
> The header field "From:" is definitely _NOT_ empty. So why
> the variable is? What have I to say instead?


Maybe because of this:

"If, however, the sender address is verified in the ACL, it is rewritten
before verification, and remains rewritten thereafter."

So if you verify the sender address, it's rewritten before the body is read
and any $header_ variables are set. More debug context is needed to say if
that is the reason, though.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)