Re: [Exim] Canonicalizing Addresses

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Harald Meland
Datum:  
To: Exim List
Betreff: Re: [Exim] Canonicalizing Addresses
[John Lawless]

>      How can I get exim routers to reliably distinguish between mail
> destined for the local network and mail for the internet?


I don't think there are any ready-made options that allow you to
distinguish on the IP address of the routed-to host, as the IP address
isn't obtained until routing based on the domain name has succeeded.

However, you could 1) use a perl expansion item in a "condition"
option of the internal-net-only router, 2) use a queryprogram router,
or 3) do something more ad hoc:

Suppose all hosts on your internal net have FQDNs ending with
".mynet.internal". This (untested) lookuphost router should get you
started:

  lanroute:
    driver = lookuphost
    domains = ^[^.]+(\\.mynet(\\.internal)?)?\$
    transport = remote_smtp
    gethostbyname
-- 
Harald