[exim] Configuring Exim to make manual routing decision base…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Andryan
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Configuring Exim to make manual routing decision based on MX records of recipient domains
Hi guys,

I am new at customizing Exim and I am using an ESP to get my customers'
emails to be received in the Inbox of Gmail/Hotmail/Yahoo. At the moment I
do this by manually routing the domains (manualroute router of Exim for
domains gmail.com, yahoo.com, hotmail.com, ymail.com, etc.)

There is a problem with this configuration. If one day one of these free
email providers offer new domains or in Google's case people use Google
Apps for their domain or Windows Live Domains, there is no way I can list
down all the domains for the Exim manualroute router. These emails would
then be delivered through the normal remote_delivery and I cannot take
advantage of my ESP services. I did my research on this and found out that
I need a dnslookup router with mx_domains directive (rather than
manualroute) to be able to make decision based on the MX of the recipients'
domain.

Now I came to a problem where I cannot use mx_domains inside manualroute,
nor use route_list inside dnslookup. How do I get around this problem? Is
there a clever trick to be able to achieve what I need? I was thinking the
solution shall remain to be a manualroute router with additional condition
to do a lookup on the recipients' domains MX records. Can a perl script be
implemented to achieve this?

I tried using ignore_target_hosts in manualroute, but unfortunately that
didn't work because the target_hosts would then be my ESP's server rather
than the recipient domain's MX.

Thanks in advance!

References:
http://www.volker-wegert.de/en/node/35
https://lists.exim.org/lurker/message/20050813.081640.a0005637.de.html#exim-users