TurnKey Linux Virtual Appliance Library

SMTP Connection Refused

kapp4309's picture


My very first post and I am asking for help. Sorry, wish it was to offer some help!

Have TK WP installed and working and was setting up postfix to function as a mail server on the same box. 

Got most things working in this regard as I can send mail just fine. 

Can't for the life of me figure out why I can't auth SMTP to the box though. If I am on the box itself as root I can do telnet localhost 25 and I am in and can send mail. 

From the local subnet I cannot telnet to the box on port 25. Get connection refused.

I do have it opened up from the outside as well but figured if I can't get to it locally it doesn't do me much good to try from the outside yet. 

Opened up port 25 on the firewall of the TKL box via webmin.

added my domain  : postconf -e "mydestination = mail.mydomain.com, localhost.localdomain, localhost, mydomain.com

also set postconf -e "mynetworks =,"

Finally I also set sudo postconf -e "inet_interfaces = all"

Got the old "ripping my hair out" blues now and can't figure this one out.

Any advice would be much appreciated.



Joel Kappes's picture

It's fixed

re added postconf -e "inet_interfaces = all"


Boom. Working... 

Guest's picture

Same issue !


I have the same issue with connection refused from local computer but not locally

if i telnet with ip adress, connexion is ok but with name it's not ok



root@vmlamp ~# telnet localhost 25                                   
Connected to localhost.
Escape character is '^]'.
220 mailprive.home ESMTP Postfix (Debian/GNU)
221 2.0.0 Bye
Connection closed by foreign host.
root@vmlamp ~#


root@vmlamp ~# telnet vmlamp 25                   
telnet: Unable to connect to remote host: Connection refused
root@vmlamp ~#


root@vmlamp ~# telnet 25         
telnet: Unable to connect to remote host: Connection refused
root@vmlamp ~#



thanks for help ;)




Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)