On Tue, 10 Jul 2001, Mike Bethune wrote:
> hi, what's the easiest way to hub mail to another host, but send it with the
> local_part rewritten as per an alias file?
> eg:
> my router:
> hubbed_host:
> driver = domainlist
> transport = remote_mydomain
> route_list = "mydomain.com 192.168.1.10 byname"
>
> my transport:
> remote_mydomain:
> driver = smtp
>
> obviously this wouldn't modify the to: address, but i need it to say receive
> mail for
> joe@???
> and hub it to 192.168.1.10 but send it to
> joe.blow@???
(1) Make mydomain.com a local domain.
(2) Do the aliasing in the usual way.
(3) Following the aliasing director, put a director that is something
like this:
hubit:
driver = smartuser
transport = xxxx
domains = mydomain.com
(4) Set up a transport like this
xxxx:
driver = smtp
hosts = 192.168.1.10
To save a bit of wasted effort, you could also add
new_director = hubit
to the aliasing director, but it should work without it.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.