two send grid accounts on same exim

oah

Well-Known Member
Jan 23, 2018
59
9
58
Iraq
cPanel Access Level
Website Owner
Hi
Following the steps below, I was able to have send-grid as my smart-host for one of my domains (on my shared-server). However, now I need to have another website to use send-grid (using different credentials). How shall I separate the config for them?

At the moment I have:

Code:
Section: AUTH
sendgrid_login:
driver = plaintext
public_name = LOGIN
client_send = : <YourSendGridUsername> : <YourSendGridPassword>

Section: PREROUTERS
send_via_sendgrid:
driver = manualroute
domains = ! +local_domains
senders = *@<YourDomainHere>
transport = sendgrid_smtp
route_list = "* smtp.sendgrid.net::587 byname"
host_find_failed = defer


Section: TRANSPORTSTART
sendgrid_smtp:
driver = smtp
hosts = smtp.sendgrid.net
hosts_require_auth = smtp.sendgrid.net
hosts_require_tls = smtp.sendgrid.net
for the 2nd account and domain shall append some character/number to differentiate it from the first or what (say sendgrid1)?
Code:
sendgrid1_login:
send_via_sendgrid1:
sendgrid1_smtp: