I’m trying to set up an email server. I can’t seem to get port 25 to open for me. I literally just did:
ufw default deny incoming
ufw default allow outgoing
sudo ufw allow 22/tcp
sudo ufw allow 25
sudo ufw status verbose…
Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip To Action From -- ------ ---- 22/tcp ALLOW IN Anywhere 25 ALLOW IN Anywhere 22/tcp (v6) ALLOW IN Anywhere (v6) 25 (v6) ALLOW IN Anywhere (v6)
However, one cursory glance of
sudo netstat -tulpn | grep LISTEN and…
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 512/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 664/sshd: /usr/sbin tcp6 0 0 :::22 :::* LISTEN 664/sshd: /usr/sbin
telnet [my server IP] 25:
telnet: Unable to connect to remote host: Connection refused
What gives? How can I open up my ports?
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!