On Monday 05 of January 2004 11:23, David Woodhouse wrote:
> One possibility is to have a router which will route mail away for
> domains which aren't really supposed to be on the local machine, before
> the router which handles the virtual domains:
>
> outgoing:
> domains = !+local_domains
> driver = dnslookup
> transport = remote_smtp
>
> # Get rid of those domains in /etc/mail/virtuals for which we're
> # not really the primary MX.
> fake_virtual:
> domains = lsearch;/etc/mail/virtuals
> driver = dnslookup
> transport = remote_smtp
> self = pass
But this will cause that emails for my local domains which are really hosted
here will be routed to mygw.pl first, so that's not a working solution
unfortunately.
> real_virtual:
> # .... whatever you had before...
>
> begin transports
>
> remote_smtp:
> driver = smtp
> hosts = mygw.pl
> hosts_override
--
Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux