I've tried running the following. However, port 465 is still closed when I used an online port checker to test. Is there another way on Ubuntu to open this SMTP port?
sudo iptables -A INPUT -p tcp --dport 465 -j ACCEPT
sudo iptables -A OUTPUT -p tcp --dport 465 -j ACCEPT
sudo iptables -A OUTPUT -p tcp --sport 465 -j ACCEPT
ufw
is the tool to use when making changes you youriptables
. Can you edit your question to include the output ofsudo ufw status
? This will list which ports are available from where.sudo ufw status
returns:sudo: ufw: command not found
sudo lsb_release -a
output?Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal