ssmtp

Adding SendGrid as an SMTP relay for ssmtp is easy. Edit /etc/ssmtp/ssmtp.conf and add the following:

mailhub=smtp.sendgrid.net:587
AuthUser=apikey
AuthPass=sendgridapikey
UseSTARTTLS=YES

Your changes will come into effect as soon as the next message is sent via ssmtp

Rate this page:

Need some help?

We all do sometimes. Get help now from the Twilio SendGrid Support Team.

Running into a coding hurdle? Lean on the wisdom of the crowd by browsing the SendGrid tag on Stack Overflow or visiting Twilio's Stack Overflow Collective.

Thank you for your feedback!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

thanks-feedback-gif