How to set up Mailjet with Strapi on DigitalOcean

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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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.

Regards, Bobby