Re: [Exim] I've read and read But still need help with routi…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: Larry
Kopio: exim-users
Aihe: Re: [Exim] I've read and read But still need help with routing
On Wed, 19 Feb 2003, Larry wrote:

> All I am trying to do is setup routing to my wifes computer.
> My machine is larry.yi.org Hers is jean.larry.yi.org
> I have her in the /etc/hosts as 192.168.0.2
> In the configuration file I have her in the host_accept_relay
> and relay_domains_include_local_mx = true
> The exim_mainlog says: remote host address is the local host
> Then it just says frozen.


The DNS entries for your hosts appear to be:

larry.yi.org.            MX 10 larry.yi.org.
larry.yi.org.            A  68.107.168.92


jean.larry.yi.org.         A  68.107.168.92


with no MX record for jean.larry.yi.org. However what these mean is that
mail for both domains will be routed from the Internet to larry.yi.org,
which is what you want.

There are three things you need to tell Exim:

(1) That larry.yi.org is the local domain; deliver mail for it into a
mailbox on your host. This you have no doubt done.

(2) To accept mail for jean as well as for larry. That you have already
done by allowing it to relay.

(3) To send mail for jean to her computer. It cannot guess this by
itself. By default, when presented for mail for another domain, it looks
up in the DNS to see which host it should send to. But the DNS says
"send it to larry" - but it's already ON larry, but it is not FOR larry
(being for jean). So Exim throws up its hands in despair.

Your mention of host_accept_relay suggests that you are using Exim 3 and
not Exim 4. That is now obsolete technology and my memory is fading.
However, what you need is a domainlist router that says "send mail for
jean to this host", and you need to put it _before_ the default router
that looks things up in the DNS. As Yann suggests, what you are trying
to do is called "mail hubbing", so read about that kind of configuration
in the manual and/or FAQ.

However, as Yann also said, it seems rather an overkill for two personal
domains. (Though if that's what you want to do, fair enough.)


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.