[Exim] Exim 4.1: rewriting question (changing "From:" header…

Pàgina inicial
Delete this message
Reply to this message
Autor: Ralf G. R. Bergs
Data:  
A: exim-users@exim.org
Assumpte: [Exim] Exim 4.1: rewriting question (changing "From:" header depending on recipient)
Hi there,

why doesn't the following work?

rabe@???     \
        "${if eq {${lc:$h_To:}}{someone@???} {rabe-lkt}fail}" fQ


I would like to rewrite the "From:" header with "rabe-lkt@<qualify>" if it's
"rabe@???" AND the recipient of the message is
"someone@???."

I've tried several other variables instead of $h_To: but nothing helped:
$received_for, $recipients.

Any idea what I'm going wrong? The rewriting AS SUCH *does* work if I leave out
the condition, but I don't like my address being rewritten EVERY time, only if
I'm sending mail to certain recipients.

Thanks for your help,

Ralf


--
Sign the EU petition against SPAM:          L I N U X       .~.
http://www.politik-digital.de/spam/        The  Choice      /V\
                                            of a  GNU      /( )\
                                           Generation      ^^-^^