Question

Can I set-up an email server or is port 25 blocked by default?

I am working on several projects, one of which is automating the setup of an email server. Testing this script out on Amazon Web Services is difficult since port 25 is blocked by default - the only workaround is using a 3rd party such as Google or Mailgun to send the emails on my behalf. I am wondering if there is a way to do this on Digital Ocean or if port 25 is also blocked by default?


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.

Hello all,

It is possible that port 25 is closed for new accounts. This is something DigitalOcean has been doing to reduce spam on the network.

To qualify for the ability to send out emails, new accounts are required to wait 60 days before a request for removing the restriction could be raised. Once your account has reached 60 days of stable use, you could reach out to the DigitalOcean support team so they could look into this for you:

https://www.digitalocean.com/support/

In the meantime, you could instead use ports 465 or 587.

Hope that helps! Regards, Bobby