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 just installed Postfix. i have not yet done any configuration on it. Each time I try to use it to sendmail from another application, it keeps telling me that COnnection was refused from the ip I want to connect to. This is the error I get

[root@localhost /]# telnet Trying telnet: connect to address Connection refused telnet: Unable to connect to remote host: Connection refused

COuld someone please help me the problem

share|improve this question
telnet your_ip 25 or telnet your_domain 25 – Prix Aug 30 '10 at 16:08
I did that and it's refusing connection. What I what to know is why I cannot connect to any other network apart from localhost – yankitwizzy Aug 31 '10 at 7:51
Can you please run 'postconf -n' and post the results? This will show us any non-default settings in your configuration. – slillibri Dec 23 '10 at 19:30

Your ISP may be blocking outbound connections to port 25, it's surprisingly common. If you find you can connect to the rest of the world on just about any other port than 25, suspect this.

share|improve this answer

By default, IP tables might be blocking your connection. Try:

/etc/init.d/iptables stop

And the retry to telnet to your ip on port 25 like this:

telnet localhost 25
share|improve this answer

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.