[Exim] rewriting rules

Top Page
Delete this message
Reply to this message
Author: Marc MERLIN
Date:  
To: exim-users
Subject: [Exim] rewriting rules
I have the following rules:

*@${primary_hostname}   ${lookup{$1}lsearch{/etc/mail/localadds}{$1@???}fail} T
*@magic.su.valinux.com    $1@${primary_hostname}            hE
*@${primary_hostname}    $1@???                hE
^(.*)@${primary_hostname} $1@???            hE
*@in.limbo        $1@${primary_hostname}            T



magic(@va):~# exim -bt merlin
LOG: 0 MAIN
"merlin@???" rewritten as "merlin@???" by rule 2
Address rewritten as: merlin@???
merlin@???
deliver to merlin in domain magic.su.valinux.com
director = procmail, transport = procmail_pipe

So ${primary_hostname} (which is magic.su.valinux.com) works as a replace
argument, but not as something to replace.

What gives?

Thanks,
Marc
--
Microsoft is to software what McDonalds is to gourmet cooking

Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc_f@??? for PGP key and other contact information