Configure SingleDomain Sendgrid SMTP in WHM
Posted about 5 years ago 2.4kConfiguration WHM & SendGrid SMTP
SendGrid is everything you need to send emails that cut through the noise and make a connection.
Service Configuration > Exim Configuration Editor -> Advanced Editor
Once you are in the Advanced Editor Locate the section as follows:
Section: AUTH
Within this text box paste the following:
Replace: YourSendGirdUsername
, YourSendGridPassword
sendgrid_login: driver = plaintext public_name = LOGIN client_send = : YourSendGirdUsername : YourSendGridPassword
Then locate the next section called:
Section: PREROUTERS
Within this text box paste the following replace thedomainhere
:
send_via_sendgrid: driver = manualroute domains = ! +local_domains senders = *@thedomainhere transport = sendgrid_smtp route_list = "* smtp.sendgrid.net::587 byname" host_find_failed = defer
Then locate the next section
Section: TRANSPORTSTART
Within this text box paste the following :
sendgrid_smtp: driver = smtp hosts = smtp.sendgrid.net hosts_require_auth = smtp.sendgrid.net hosts_require_tls = smtp.sendgrid.net
Conclusion
Although this setup and how to was to use and explain how to configure Send Grids SMTP server, it's a starting point for use with other remote SMTP servers, you just need to change the values accordingly.
the outcome was that my clients domain was now using Send Grids SMTP server, whilst the other client hosted domains would continue to use the local SMTP server.