Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

User based routing in EXIM WHM

Discussion in 'E-mail Discussion' started by Azim, Aug 16, 2016.

  1. Azim

    Azim Well-Known Member

    Joined:
    Oct 16, 2015
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Website Owner
    Hello Everyone,

    I have done a routing in my WHM exim configuration where it says, If a destination address is Gmail.com then it will deliver the email from a different transport.However is it possible to do this on a user based. Like if a destination address is tom@gmail.com then it will go from the particular transport. Please find below configuration done by me and suggest me how can I do that. Thank you.

    Routerstart :

    smarthost_gmail:
    driver = manualroute
    domains = !+local_domains
    senders = !*@server.domain.com
    # Exclude null sender messages from relaying via the smarthost
    condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}}
    transport = remote_smtp_smart_gmail
    route_list = gmail.com mail.mailgun.com

    Transportstart :

    remote_smtp_smart_gmail:
    driver = smtp
    port = 25
    interface = <; 10.10.10.10

    Please suggest.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice