You are currently viewing How to Integrate Sendgrid in WHM?

How to Integrate Sendgrid in WHM?

In this blog, we will list down the detailed steps to Integrate Sendgrid in WHM. We will be covering what sendgrid is and its benefits. Read till the end to know everything about sendgrid.

What is Sendgrid?

SendGrid is a web-based platform for sending and managing commercial and promotional emails in bulk from any location. It helps you manage your email lists, monitor your email’s open and click rates, and assess your campaign’s efficacy.

The SendGrid email delivery platform is equipped with cutting-edge tools like email customization, A/B testing, email validation, and email authentication to guarantee that sent emails reach their intended inboxes.

SendGrid’s APIs and interfaces make it simple for organisations to integrate with their current apps and systems, streamlining the process of automating email workflows and monitoring email performance indicators.

When it comes to email marketing and customer communication, businesses of all sizes may benefit from SendGrid’s all-encompassing email delivery and management platform.

Benefits of Sendgrid in WHM

  • Analytics and Reporting: SendGrid provides detailed analytics and reporting on your email campaigns. You can track open rates, click-through rates, bounce rates, and more, to help you better understand your email audience and improve your campaigns
  • Marketing Campaigns: SendGrid’s marketing campaigns feature allows you to create and send email campaigns with ease. You can create customized templates, A/B test different versions of your campaigns, and schedule your emails for delivery at the best time for your audience.
  • Email Deliverability: SendGrid’s platform is designed to help ensure your emails are delivered to your recipients’ inboxes, not their spam folders. They use a variety of techniques, such as email authentication, reputation monitoring, and real-time analytics to help improve deliverability rates.
  • Scalability: SendGrid is a scalable platform, meaning it can grow with your business as you send more and more emails. Whether you need to send a few hundred emails or millions, SendGrid can handle it.
  • API Integration: SendGrid’s API allows you to integrate their email delivery services into your existing applications, websites, and services. This makes it easy to send emails from your own platform without having to log in to SendGrid’s website.
  • Security: SendGrid takes security seriously, and offers features such as two-factor authentication, IP whitelisting, and encryption to help protect your email data and prevent unauthorized access.

Steps to integrate Sendgrid in WHM

You can configure your cPanel & WHM managed domain to use SendGrid’s SMTP mail server using the following steps:

1. Log in to WHM as the root user.

2. Navigate to the ‘Service Configuration’ tab and select the ‘Exim Configuration Manager’ option.

Integrate Sendgrid in WHM

3. Click the ‘Advanced Editor’ tab.

4. Section: AUTH
You can also search by (ctrl+f) to find it since this configuration file is rather large. The section will be empty. Paste the following into the text box, replacing “YourSendGridUsername: YourSendGridPassword” with your real SendGrid username & password.
driver = plaintext
public_name = LOGIN
client_send = : YourSendGridUsername : YourSendGridPassword

 Sendgrid in WHM

5. Section: PREROUTERS paste the following in the textbox, replacing “@Yourdomainhere” with your domain. If you want to cover the entire server, then put in an asterisk in place of “Your Domain Here”, for example “@*” :
driver = manualroute
domains = ! +local_domains
senders = *@
transport = sendgrid_smtp
route_list = “* byname”
host_find_failed = defer

6. Section: TRANSPORTSTART & paste the following in the textbox:
driver = smtp
hosts =
hosts_require_auth =
hosts_require_tls =


Overall, SendGrid is a robust and adaptable email marketing and delivery platform that can assist organizations of all sizes in improving their email campaigns and increasing audience engagement. Follow these steps to integrate Sendgrid in WHM. You can find more such informative blogs on the Lease Packet blog section