I need to use Sendgrid to relay email for a specific destination domain - (ie if destination domain is example.com use Sendgrid, else use local relay).
I have EXIM configured to send all mail through Sendgrid, but do not want to use this scenario.
Can anyone provide a specific configuration / setup using "example.com"?
My current set up in exim:
SendGrid Relay
: AUTH
sendgrid_login:
driver = plaintext
public_name = LOGIN
client_send = : username : password
: PREROUTER
send_via_sendgrid:
driver = manualroute
domains = ! +local_domains
transport = sendgrid_smtp
route_list = "* smtp.sendgrid.net::587 byname"
host_find_failed = defer
no_more
: TRANSPORTSTART
sendgrid_smtp:
driver = smtp
hosts = smtp.sendgrid.net
hosts_require_auth = smtp.sendgrid.net
hosts_require_tls = smtp.sendgrid.net
I have EXIM configured to send all mail through Sendgrid, but do not want to use this scenario.
Can anyone provide a specific configuration / setup using "example.com"?
My current set up in exim:
SendGrid Relay
: AUTH
sendgrid_login:
driver = plaintext
public_name = LOGIN
client_send = : username : password
: PREROUTER
send_via_sendgrid:
driver = manualroute
domains = ! +local_domains
transport = sendgrid_smtp
route_list = "* smtp.sendgrid.net::587 byname"
host_find_failed = defer
no_more
: TRANSPORTSTART
sendgrid_smtp:
driver = smtp
hosts = smtp.sendgrid.net
hosts_require_auth = smtp.sendgrid.net
hosts_require_tls = smtp.sendgrid.net