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.

How do I configure exim to use smart relay for specific destination domains?

Discussion in 'E-mail Discussions' started by smallbiz, Nov 30, 2014.

  1. smallbiz

    smallbiz Registered

    Joined:
    Nov 18, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I need to use Sendgrid to relay email for a specific destination domain - (ie if destination domain is example.com use Sendgrid, else use local relay).

    I have EXIM configured to send all mail through Sendgrid, but do not want to use this scenario.

    Can anyone provide a specific configuration / setup using "example.com"?

    My current set up in exim:

    SendGrid Relay
    : AUTH
    sendgrid_login:
    driver = plaintext
    public_name = LOGIN
    client_send = : username : password

    : PREROUTER
    send_via_sendgrid:
    driver = manualroute
    domains = ! +local_domains
    transport = sendgrid_smtp
    route_list = "* smtp.sendgrid.net::587 byname"
    host_find_failed = defer
    no_more


    : TRANSPORTSTART
    sendgrid_smtp:
    driver = smtp
    hosts = smtp.sendgrid.net
    hosts_require_auth = smtp.sendgrid.net
    hosts_require_tls = smtp.sendgrid.net
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. smallbiz

    smallbiz Registered

    Joined:
    Nov 18, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks! Because Sendgrid requires authentic, and that example suggests it doesn't work with auth, wondering if anyone can assist specifically with my scenario?
     
  4. smallbiz

    smallbiz Registered

    Joined:
    Nov 18, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I reviewed the referred posting from 2011 -- but it isn't what I'm looking for (it address how to direct a cpanel domain to send out via alternative MTA).

    What I want to do is for any of my cPanel clients who are using send email through their cPanel account, if they send an email to AOL.com (as an example) -- I want to use SendGrid to handle that outbound, instead of using the local EXIM MTA.
     
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,

    Did you ever get a workable solution to this?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on any specific solutions you have tried thus far? Or, have you yet to implement any custom EXIM rules?

    Thank you.
     
Loading...

Share This Page