I need to send email notifications to my subscribers, but I can’t do it because of the timeout error. Please i need to know if it is possible to open port 25 and send emails?
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!
Hi @redouanadmer,
Firstly, please make sure you a Mail Service which can send mails. If you are uncertain which one, I’ll recommend using Postfix. DigitalOcean have a pretty good tutorial on the installation and configuration of said Postfix. You can view it here - https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04
Now onto the port. If you are using ufw, to open port 25 you can use the following command
sudo ufw allow 25/tcp
If you are using Iptables, you can use the bellow
iptables -I INPUT -p tcp -m tcp --dport 25 -j ACCEPT
Regards, KDSys
Hello all,
It is possible that port 25 is closed for new accounts. This is something we have been doing to reduce spam on our network. Please do not think that we are accusing you of sending spam, it is more that we simply cannot accurately determine who is going to send it.
Stopping spam is a constant fight, so we have implemented some restrictions on newer accounts. To qualify for the ability to send out email, we do require accounts to wait 60 days before we can look into removing the restriction. Once your account has reached 60 days of stable use, please do reach back out to us so we can look into this for you.
Hope that helps! Regards, Alex
Hello there,
You can send an email to https://mail-tester.com
Their tool will show how you can improve your mail score (outgoing mail delivery).
You can also use a third party mail provider like SendGrid in order to avoid issues like this one. I’ll also recommend checking this article:
https://www.digitalocean.com/community/tutorials/why-you-may-not-want-to-run-your-own-mail-server
Hope that this helps!
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.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.