How to set up Mailjet with Strapi on DigitalOcean

Posted July 27, 2021 204 views

I have developed an API with Strapi, that works with Mailjet to send transactional and marketing (newsletter) emails.
On development mode (local) is working correctly, as i subscribe with an email, it goes to the correct contact list in mailjet and I recieve the correct email template.

But on production (DigitalOcean) as I try to subscribe, the Runtime Logs show the following error: “Unsuccessful: null read ECONNRESET”.

I cannot see what could be the error. What am I missing?

Thank you very much in advance.

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


It sounds like that you are using port 25. I would advise using port 465 or 587 instead.

Note that SMTP port 25 is blocked on all Droplets for some new accounts to prevent spam and other abuses of our platform. To send mail on these accounts, use a dedicated email deliverability platform (such as Sendgrid and Mailgun), which are better at handling deliverability factors like IP reputation.