RE: [Exim] Mail forwading questions - revisited

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Craig Coles
Data:  
Para: Philip Hazel
CC: exim-users
Asunto: RE: [Exim] Mail forwading questions - revisited
Through a suggestion from Philip Hazel awhile back I was receiving mail
from one domain, redirecting the mail using aliases to a newcompany
domain name, and letting a domainlist router entry take care of sending
the mail over to a company Exchange server. This is working great,
thanks Philip!

Now I need to receive the mail with our old domain name, still resolve
aliases (for redirecting mail to local lists, etc.), and then send the
mail on to the Exchange server. But this time the domain name remains
the same.

If I include the domain name in the local_domains entry, and create an
aliases file for the domain (which is what I was doing prior), then Exim
wants to deliver the mail to a local user, and not let the domainlist
router send the emails to the remote Exchange box.

If I remove the domain name from the local_domains entry, and put the
domain name in relay_domains entry then the mail will be received and
routed directly to the Exchange server and bypass the aliases.

How can I receive the mail, run it through aliases, and if not picked up
sent on through the domainlist router to the remote Exchange server?


Thanks for your time,


-Craig


-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: Tuesday, June 26, 2001 1:35 AM
To: Craig Coles
Cc: exim-users@???
Subject: Re: [Exim] Mail forwading questions


On Mon, 25 Jun 2001, Craig Coles wrote:

> 1) How do I forward all incoming mail for a specific domain that is

not
> routed via the aliases file to a mail server behind a firewall.


Use a domainlist router. That's exactly what it is for.

> Is there a way to direct all mail for newcompany.com to an IP address
> without doing a DNS lookup?


Same question. Use a domainlist router:

xxx:
driver = domainlist
route_list = newcompany.com 192.168.4.5 byname
transport = remote_smtp

Place this *before* the normal lookuphost router.

> And to complicate things further, what if I
> needed to send selected 'newcompany.com' users to the internal IP

address
> and others go through the DNS lookup process?


Just add a setting of "local_parts" to the above router, to match those
to skip.

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