sendgrid_login:
driver = plaintext
public_name = LOGIN
client_send = : YourSendGridUsername : YourSendGridPassword
Replace: YourSendGridUsername
Replace: YourSendGridPassword
Step 3
Add the code in Section: PREROUTERS
send_via_sendgrid:
driver = manualroute
domains = ! +local_domains
transport = sendgrid_smtp
route_list = "* smtp.sendgrid.net::2525 byname"
host_find_failed = defer
no_more
Step 4
Add the code in Section: TRANSPORTSTART
sendgrid_smtp:
driver = smtp
hosts = smtp.sendgrid.net
hosts_require_auth = <; $host_address
hosts_require_tls = <; $host_address
ENABLE SMTP Restrictions in WHM
Step 6
Untick both boxes for "Exim Mail Server (on other port)" inside WHM - Service Manager
Step 7
Make sure you use SPF txt records inside your DNS. Example:
"v=spf1 +a +mx +ip<your IP> ~all"
Replace <your IP> with your servers IP.
Step 8
Restart your exim server
Good Luck!