Report this

What is the reason for this report?

Can't Open Port 25

Posted on April 1, 2014

I’ve been trying to open port 25 for postfix, and I can’t figure out what I’m doing wrong. I can’t telnet to the server with port 25, while I can telnet to other, like TeamSpeak3s port (30033). This is what my iptables looks like.

Generated by iptables-save v1.4.7 on Tue Apr 1 15:24:14 2014

*filter :INPUT ACCEPT [1326:1570360] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [841:176823] -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT COMMIT

Completed on Tue Apr 1 15:24:14 2014



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.

sudo netstat -plutn | grep 25 <br>tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 28291/master <br>tcp 0 0 ::1:25 :::* LISTEN 28291/master <br>

I am trying to open the port for posfix, but the server can’t receive any emails. After a while I get this response on gmail, trying to send an email: <br> <br>Technical details of temporary failure: <br>The recipient server did not accept our requests to connect. Learn more at http://support.google.com/mail/bin/answer.py?answer=7720 <br>[(0) mydomain.com. [xxx.xxx.xxx.xxx]:25: Connection refused]

Postfix is listening on the loopback interface. You have to configure it to listen on 0.0.0.0. See <a href=“http://www.cyberciti.biz/faq/postfix-receive-mail-on-specific-network-interfaces/”>http://www.cyberciti.biz/faq/postfix-receive-mail-on-specific-network-interfaces/</a>.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.