Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running sendmail + dovecot in my debian server. I have enabled the firewall rules to allow everything

  iptables -P INPUT ACCEPT
  iptables -P OUTPUT ACCEPT
  iptables -P FORWARD ACCEPT
  iptables -F
  iptables -X

However quick check at, my port 25 is still being blocked. But 143, 80 are okay.

share|improve this question
Short answer: Your ISP blocks the port. But this is a question for SuperUser, not ServerFault. – pehrs Dec 1 '10 at 9:19
up vote 3 down vote accepted

Firstly, with thanks to symcbean, check it's running. On the system itself, type

telnet localhost 25

and if you don't see something like

220 ESMTP Sendmail 8.14.4/8.14.2; Wed, 1 Dec 2010 10:20:38 GMT

your sendmail isn't running in daemon mode, and you won't be able to get to it from anywhere. Fix that.

If you do see a banner, then it's likely sendmail's not binding to your external IP address. Do a

netstat -an|grep -w 25|grep LISTEN

If you see the line

tcp        0      0        *                   LISTEN    

I'm wrong, and we must dig further. If you see

tcp        0      0        *                   LISTEN    

then sendmail has been configured only to listen on the loopback interface, which is why you can't get to it from off the box. Look for a line that says

DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

in your, delete it (if you ignore me, and comment it out instead, use a dnl at the beginning of the line, not a #), regenerate your and restart sendmail.

share|improve this answer
...or maybe just not running? – symcbean Dec 1 '10 at 10:05
Thanks! True enough, it's only configured to listen to localhost. I have disabled all the lines. It works! – henry Dec 2 '10 at 1:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.