Configure Postfix to use SendGrid as outgoing emails

Posted March 23, 2014 5.3k views
I'm trying to configure Postfix on my droplet to use SendGrid for my outgoing emails, but it keeps giving me a timeout error to connect with SendGrid server. The error message is: localhost postfix/smtp[8705]: 0A2F71E2979: relay=none, delay=1478, delays=1418/0.02/60/0, dsn=4.4.1, status=deferred (connect to[]:587: Connection timed out) Can anyone please help me?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Hi Gabriel,

In order to get to the bottom of this, we could use some more information. Could you post you Postfix config: /etc/postfix/

Also any additional error messages in the log file (/var/log/mail.log) could be helpful.