The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configuring Exim to make manual routing decision based on MX records of recipient domains

Discussion in 'E-mail Discussions' started by andryan, Aug 29, 2013.

  1. andryan

    andryan Member

    Joined:
    Apr 23, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Configuring Exim to make manual routing decision based on MX records of recipient domains [SOLVED]

    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
     
    #1 andryan, Aug 29, 2013
    Last edited: Aug 29, 2013
  2. andryan

    andryan Member

    Joined:
    Apr 23, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Problem solved.

    If you're curious about the answer, here it is..

    /https://lists.exim.org/lurker/message/20130829.162259.fa3a8f40.en.html
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page