CPANEL/WHM: How to configure a domain to use Sendgrid SMTP

You are obviously here because you want learn how to configure your Cpanel/WHM managed domain to use SendGrid’s SMTP mail servers. Just follow these easy steps and you will be on your way in no time.

  1. Login to your WHM account
  2. Click on Service Configuration -> Exim Configuration Manger
  3. Click on the Advanced Editor tab

  4. Find the section called Section: AUTH and paste the following into the text box, substituting in your SendGrid username and password:
    driver = plaintext
    public_name = LOGIN
    client_send = : <YourSendGridUsername> : <YourSendGridPassword>

  5. Find the section called Section: PREROUTERS paste the following in the textbox, substituting in your Domain name in the senders line:
    driver = manualroute
    domains = ! +local_domains
    senders = *@<YourDomainHere>
    transport = sendgrid_smtp
    route_list = "* byname"
    host_find_failed = defer

  6. Find the section called Section: TRANSPORTSTART and paste the following in the textbox:
    driver = smtp
    hosts =
    hosts_require_auth =
    hosts_require_tls =

Voila! That’s all there is to it!

See also  How to Install `saml2aws` on Windows: 3 Easy Steps

Support us & keep this site free of annoying ads.
Shop or Donate with Paypal

2 thoughts on “CPANEL/WHM: How to configure a domain to use Sendgrid SMTP”

  1. Hey, about your tutorial, if i have about 10domains on my WHM and i want the just 3 or 4 this domains is allow to send email using the sendgrid SMTP, how i implement

    the ( senders = *@ ) to use this 4domains only?

    How i do this, put the 4domains there and works fine?

    Another question, i put inside the or remove the and put : *@YourDomainHere


Leave a Comment