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!

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

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

  1. smallbiz

    smallbiz Registered

    Joined:
    Nov 18, 2014
    Messages:
    4
    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:
    16,585
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. smallbiz

    smallbiz Registered

    Joined:
    Nov 18, 2014
    Messages:
    4
    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:
    4
    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:
    999
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,

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

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    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