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.

User based routing in EXIM WHM

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

  1. Azim

    Azim Active Member

    Joined:
    Oct 16, 2015
    Messages:
    35
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page