[Exim] Routers and re-write rules

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Christopher Chaduka
Data:  
Para: exim-users
Asunto: [Exim] Routers and re-write rules
Hi there,

I have this box running Exim 4.23 and AmavisD-new 20030616-p2 and MySQL
4.0.14. I have users who have some old domain addresses like
username@???. They all have username@??? now. I have
set re-write rules in Exim like so:

$local_part@???       $local_part@???


In the routers section, I have, as the first router, a router that sends
mail to amavisd for Spam and Virus checking. The router is as below:

amavis:
  driver = manualroute
  domains = ! +local_domains
  condition = "${if or {{eq {$interface_port}{10025}} \
                        {eq {$received_protocol}{spam-scanned}} \
                        {eq {$sender_address}{}} \
                          }{0}{1}}"
  transport = amavis
  route_list = "* localhost byname"
  self = send


My question is, when the mail arrives as username@??? and Exim
actually logs the re-writing to username@???, when it sends it to
amavisd via the above router, it sends the address as
$local_part@???. Shouldn't it send it as
$local_part@??? since it has re-written the address to that effect?

--

Christopher Chaduka
Technical Department
M-Web Zimbabwe
Tel: +263 4 253333 Fax: +263 4 708055
http://www.mweb.co.zw