Quoth Dmitry Alyabyev on Mon, Apr 10, 2000:
> I'm going to do following:
> all mail for user@domain1 must going to user@domain2
I assume that it doesn't matter at all what the local part is.
Which means, if you map domain1 to domain2 than for every local
part FOO, FOO@domain1 gets aliased as FOO@domain2.
> domain1 is virtual
I also assume that domain1's MX record points on your mailserver.
> domain2 is local
This doesn't matter. Although if the domain is local, why don't
you just treat it exactly like domain1?
What you should do is to create a file which I will call
/var/exim/domain.map, which have entries like this:
dom.ain.one: dom.ain.two
dom.ain.three: dom.ain.four
Then, in your Exim config file, define local_domains to include
the virtual domains, such as:
local_domains = dom.ain.two : some.thing.ru : /var/exim/domain.map
Define this director, and make it the dirst director:
domain_mapping:
driver = smartuser
domains = lsearch;/var/exim/domain.map
new_address = $local_part@$domain_data
no_more
Untested, but should work. no_more means that the virtual
domains will not be processed by any other dorectors. Although
it's not really needed in this case.
If I misunderstood your question, you know where to find
exim-users.
Vadik.
--
The BOFH should not use the LART because it is needed, or because he is
annoyed. The BOFH should try to ensure that he will enjoy the outcome.
Glorious defeat is not part of BOFHish vocabulary. Selective sadism is.
-- Kieran