mail server question ($25 for solution) (SOLVED)

I'm a newbie, so I hope I'm asking my question in a manner respectful of this forum and in a sufficiently informative way.

I've set up my Linode using Ubuntu 10.04 LTS and the WordPress StackScript at revision 146.

My Linode is at The IP is

For some reason, I don't seem to be able to get the mail server to run. Whenever I send a test email from the outside to a virtual alias I set up, it bounces, stating "]:25: Connection refused]. Testing the mail server using the tool at also gives me "3/13/2013 3:26:13 AM Connection attempt #1 - Unable to connect after 15 seconds. [15.04 sec]"

Testing from within the box, however, indicates port 25 is working:

root@li589-228:~# telnet localhost 25


Connected to localhost.localdomain.

Escape character is '^]'.

220 ESMTP Postfix (Ubuntu)

Any pointers as to what I'm doing wrong?

Would it be OK to offer the first one to help me solve this $25 via Paypal? If this offer violates some rule, please ignore it and I apologize.

Thank you.



Marc Fest

14 Replies

Your telnet'ing to your localhost address, not your ip.

I suspect if you look at whatever your using for your mail server, that in its config file it will only be binding to localhost.

That, or you have a firewall in the way

Hi Internat (greetings to Australia) -

thanks for your reply. I'm trying to use as mail server. Where is its config file and how do I change it so that the mail server will bind correctly?

Would it help if I shared the contents of the config file here?

Thanks again.



The config file for postfix is /etc/

However if you can post the output of "postconf -n" and "iptables -nvL" that would be good

postconf -n prints non default postfix settings

and iptables -nvL prints the firewall table.

Internat, thank you (also for educating me along the way). Below is the output.

root@li589-228:~# postconf -n

alias_database = hash:/etc/aliases

alias_maps = hash:/etc/aliases

appenddotmydomain = no

biff = no

config_directory = /etc/postfix

inet_interfaces = loopback-only

mailboxsizelimit = 0

mydestination = localhost,,, localhost

myhostname =

mynetworks = [::ffff:]/104 [::1]/128

readme_directory = no

recipient_delimiter = +

smtptlssessioncachedatabase = btree:${datadirectory}/smtpscache

smtpdbanner = $myhostname ESMTP $mailname (Ubuntu)

smtpdtlscert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem

smtpdtlskey_file = /etc/ssl/private/ssl-cert-snakeoil.key

smtpdtlssessioncachedatabase = btree:${datadirectory}/smtpdscache

smtpdusetls = yes

virtualaliasdomains =

virtualaliasmaps = hash:/etc/postfix/virtual


root@li589-228:~# iptables -nvL

Chain INPUT (policy ACCEPT 10627 packets, 958K bytes)

pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)

pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 11691 packets, 1531K bytes)

pkts bytes target prot opt in out source destination

under /etc/postfix/

comment out/remove this line
> inet_interfaces = loopback-only

Thats binding to the internal interface only

forgot to add you will need to restart postfix for it to take effect

/etc/init.d/postfix restart

Internat, awesome. That did the trick.

Please send me your email address via - I'd like to paypal you $25 for your kind and prompt help.

Thank you again!



Not requried in the slightest :) ill take the karma instead :)

Well, I'd love to send you the money… I made a promise after all when I posted this. Think of my karma ;-)

If you don't accept it I'll give the $25 to the Humane Society (I'm a dog lover; my Belgian Shepherd even has his own Web site:

And thank you so much again.


As a parting note, your webmin installation is listening on the default port, 10000. Recommend you either change it and/or firewall it off.

Derfy, you're kind. I've changed it right away. Any suggestion as to in what range it should be?

I usually go 50000 and above.

Thanks, Derfy.

And Internat, $25 just went to the Humane Society, helping dogs (, as a token of my gratitude for your help today.

Thank you again!


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct