Im using Sendgrid to send out email through my exim server, it uses a
remote SMTP host, port, username and password for sending email. The
problem is that now I would like to segment my delivery through multiple
SMTP users, aka SendGrid Sub-users.
It appears I can do this by either using their API or through the MTA which
I believe would be easier to implement, my question is does anyone know how
to specify a certain SMTP user and password depending on the domain used to
send the email from?
Below is the exim config involved for sending through SendGrid, let me know
if you want me to paste the entire config and I will do it right away.
Thanks in advance for all the help!
driver = plaintext
public_name = LOGIN
client_send = : username : password
driver = manualroute
domains = ! +local_domains
transport = sendgrid_smtp
route_list = "* smtp.sendgrid.net::587 byname"
host_find_failed = defer
driver = smtp
hosts = smtp.sendgrid.net
hosts_require_auth = smtp.sendgrid.net
hosts_require_tls = smtp.sendgrid.net
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/