By Hamza kholti
Since February, I haven’t been able to send emails via SMTP. I checked and the port is open — what could be causing the issue?
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!
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.
Heya,
DigitalOcean blocked SMTP ports in order to deal with spam. This has been raised as a concern as legit users like yourself are suffering. I’ll keep you posted once we have any information about the lift.
Heya, @hamzakholti
The SMTP ports have been disabled in order to fight out sending SPAM from our servers. However there is an internal discussion on this matter and we will keep you posted.
Regards
Hey!
Just a quick update in case anyone comes across this in the future. The SMTP ports (25, 465, and 587) are blocked on all Droplets for new accounts to prevent spam and other abuses:
Even if SMTP were available, DigitalOcean strongly recommends against running your own mail server in favor of using a dedicated email deliverability platform. Dedicated email deliverability platforms are better at handling deliverability factors like IP reputation.
To send mail from DigitalOcean, they recommend using an SMTP service like SendGrid or https://smtpfa.st/ or any other reliable SMTP service.
Alternatively, you could reach out to the DigitalOcean support team and check if they could lift the block for you but in many cases this is not possible:
Another option is to use a non-standard SMTP port like 2525 for example if your SMTP provider allows it.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
