RE: [Exim] rewrite rules

Pàgina inicial
Delete this message
Reply to this message
Autor: Thomas Kinghorn
Data:  
A: 'Giuliano Gavazzi'
CC: Exim-Users (E-mail)
Assumpte: RE: [Exim] rewrite rules
It worked...

<snip>
mtnns.net in "+relay_to_domains"? yes (matched "+relay_to_domains")
>>> check verify = recipient
>>> mtnns.net in "*"? yes (matched "*")
>>> jacquesv@??? in "*@*"? yes (matched "*@*")
>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>> routing jacquesv@???
>>> mail-rbk.mtnns.net in "lsearch;/usr/exim/virtual/virtual_domains"? no

(end of list)
>>> mail-rbk.mtnns.net in "@"? no (end of list)
>>> mail-rbk.mtnns.net in "! +local_domains"? yes (end of list)
>>> calling dnslookup router
>>> 209.212.109.146 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
>>> routed by dnslookup router


Now if i could just get the hub_route to work...
the above domain should be forwarded to another MTA

Thank you for the help.
Now the rewrite section of the config file looks neater.



-----Original Message-----
From: Giuliano Gavazzi [mailto:eximlists@humph.com]
Sent: 14 January 2003 11:07
To: Thomas Kinghorn
Cc: Exim-Users (E-mail)
Subject: RE: [Exim] rewrite rules


At 10:53 +0200 2003/01/14, Thomas Kinghorn wrote:
>Tried that, for some reason, the lookup fails


I meant an lsearch rewrite:

*@* $1@${lookup{$2}lsearch{/usr/exim/virtual/virtual_domains}{$value}fail}
hT

where virtual_domains is:

booksite.co.za                 booksite.jev.co.za
dispatch.co.za                 mail.dispatch.co.za


mind, this is probably wrong, inelegant and certainly not tested.


g