sendgrid in whm for only one domain

oah

Well-Known Member
Jan 23, 2018
65
10
58
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.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
573
266
138
IN
cPanel Access Level
Root Administrator
The steps mentioned in the shared URL are correct for sending email for one particular domain through sendgrid.
 
  • Like
Reactions: oah and cPRex

oah

Well-Known Member
Jan 23, 2018
65
10
58
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 :)
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
573
266
138
IN
cPanel Access Level
Root Administrator
Yes, except one domain you mention in configuration other hosted domains continue to send through WHM's SMTP
 

ImperialTrader

Well-Known Member
Aug 31, 2014
196
21
68
Egypt
cPanel Access Level
Root Administrator
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.
Hi @oah
As per your words in this thread (I know how to make the WHM forward all the emails to send grid)

Could you please tell me how to make the WHM forward all the emails to SendGrid?
In other words, how to make all the hosted websites in my server send their emails using SendGrid without authorizing them one by one in SendGrid?