[solved] How to setup Exim for SendGrid?
Posted: Thu Jul 16, 2015 11:56 pm
Hi, I'm trying to get Exim to forward smtp traffic to SendGrid. I feel that I'm close, but must be missing a step. The server is hosted on GCE which adds a small layer of complication since port 25 outbound is blocked.
Here are some notes:
I'm using this document for setup: https://sendgrid.com/docs/Integrate/Mai ... /exim.html
SendGrid is working if I connect my (Thunderbird) client directly to it, but I can't forward emails through the email server to SendGrid
if I run exim -bt [email] I get back:
router = send_via_sendgrid, transport = sendgrid_smtp
host smtp.sendgrid.net [108.168.190.108] port=2525
host smtp.sendgrid.net [208.43.76.146] port=2525
host smtp.sendgrid.net [208.43.76.147] port=2525
I can also telnet 2525 from my server to SendGrid
If I run exim -ql -v [email] I get back:
[email] R=send_via_sendgrid T=sendgrid_smtp defer (-54): remote deliveries suppressed
delivering 1ZFsMP-0004aC-54 (queue run pid 20895)
I think there is my problem. My emails bound for remote delivery are in the local queue. When I followed the tutorial I only added to the exim configuration, but didn't change or remove anything from default. Is that something I have to do? any guidance is appreciated.
I'm running Ubuntu Server 14.04 on Google Cloud. I can post configs if helpful.
Here are some notes:
I'm using this document for setup: https://sendgrid.com/docs/Integrate/Mai ... /exim.html
SendGrid is working if I connect my (Thunderbird) client directly to it, but I can't forward emails through the email server to SendGrid
if I run exim -bt [email] I get back:
router = send_via_sendgrid, transport = sendgrid_smtp
host smtp.sendgrid.net [108.168.190.108] port=2525
host smtp.sendgrid.net [208.43.76.146] port=2525
host smtp.sendgrid.net [208.43.76.147] port=2525
I can also telnet 2525 from my server to SendGrid
If I run exim -ql -v [email] I get back:
[email] R=send_via_sendgrid T=sendgrid_smtp defer (-54): remote deliveries suppressed
delivering 1ZFsMP-0004aC-54 (queue run pid 20895)
I think there is my problem. My emails bound for remote delivery are in the local queue. When I followed the tutorial I only added to the exim configuration, but didn't change or remove anything from default. Is that something I have to do? any guidance is appreciated.
I'm running Ubuntu Server 14.04 on Google Cloud. I can post configs if helpful.