On Sat, 30 Aug 1997, Steven A. Reisman wrote:
> I use exim 1.62 to host a virtual domain for a customer who wants all
> email forwarded to his AOL account. That is, any email addressed to:
>
> xxxxxx@???
>
> should be delivered to:
>
> yyyyyy@???
>
>
> I've tried this with a rewrite rule:
> This substitutes nicely, but after the rewrite, exim rejects the message
> because it looks like relaying:
This isn't a rewriting problem, it is a mail routing problem. The best
way to handle is is to use the facilities for routing mail, namely, the
directors and routers. All you need is a director like this:
direct_domains:
domains = customerdomain.com,
driver = smartuser;
new_address = yyyy@???
assuming that you have "customerdomain.com" as an entry in your
local_domains setting. If you have several domains to be handled in this
way, you can use some form of lookup to get the particular new_address
for each one, e.g.
new_address = ${lookup{$domain}lsearch{/domain/file}{$value}}
--
Philip Hazel University Computing Service,
ph10@??? New Museums Site, Cambridge CB2 3QG,
P.Hazel@??? England. Phone: +44 1223 334714