sendgrid in whm for only one domain

oah

Well-Known Member
Jan 23, 2018
51
9
8
Iraq
cPanel Access Level
Website Owner
Hi
I have many domains on my WHM, I want to configure only one of them to send its emails via sendgrid. I know how to make the WHM forward all the emails to send grid but I want it to do that for one domain only while the rest of the domains should keep on using the SMTP of my WHM to send their email.

I found the following configuration and I am not sure if it will do the required task:

" 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 = *@<YourDomainHere>
transport = sendgrid_smtp
route_list = "* smtp.sendgrid.net::587 byname"
host_find_failed = defer




The whole steps are mentioned here:
https://www.heatware.net/cpanelwhm/whm-configure-domain-use-sendgrid-smtp/


Will these configuration do the trick or something is missing?

Thx.
 

oah

Well-Known Member
Jan 23, 2018
51
9
8
Iraq
cPanel Access Level
Website Owner
The steps mentioned in the shared URL are correct for sending email for one particular domain through sendgrid.
Fantastic, so to confirm:
The configuration above, will leave all the other cpanel accounts sending their emails via the WHM's SMTP except for one-cpanel, it will be sending its emails via send-grid :)