Question
Can't Open Port 25
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.
×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.
×Hello all,
You can use UFW in order to allow connections on ports 25, 465 and 587
UFW, or Uncomplicated Firewall, is a simplified firewall management interface that hides the complexity of lower-level packet filtering technologies such as iptables
and nftables
To allow connections on ports 25, 465, 587 execute the following commands:
sudo ufw allow 25/tcp
sudo ufw allow 465/tcp
sudo ufw allow 587/tcp
You can check our existing tutorial on how to setup a Firewall with UFW here:
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-20-04
If you’re still unable to send emails I will recommend you to try using alternative ports as 587 and 465, because a lot of providers will block connections/emails sent without authentication on port 25 as well.
Hope that this helps!
Regards,
Alex