CPANEL/WHM: How to configure multiple 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:
    sendgrid_login:
    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:
    send_via_sendgrid:
    driver = manualroute
    domains = ! +local_domains
    senders = ^.*@dg-9.net : ^.*@adsdev-tech.com
    transport = sendgrid_smtp
    route_list = "* smtp.sendgrid.net::587 byname"
    host_find_failed = defer

     

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

Voila! That’s all there is to it!

  • 44 Users Found This Useful
Was this answer helpful?

Related Articles

If my website got hacked, what to do?

Here are some tips to keep your site secure. This was primarily written in response to a hacked...

How can I prevent hacking?

Prevent HackingHacked AccountGoogle Attack PageThe most important thing to do is keep your...

Protect Your site with mod_security rules

As a company, we utilize mod_security rules which are global to all sites. We do this to help...

How to Configure outlook with domain email ?

Start Outlook Express Click on Start->Program->Outlook Express and see screen Picture Step...