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

Posted May 20, 2021 254 views

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?

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

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:

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

Hope that helps!