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 li589-228.members.linode.com. The IP is 192.155.92.228

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 "192.155.92.228]:25: Connection refused]. Testing the mail server using the tool at http://mxtoolbox.com 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

Trying 127.0.0.1…

Connected to localhost.localdomain.

Escape character is '^]'.

220 li589-228.members.linode.com 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.

--

Marc Fest

http://www.marcfest.com

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 mail.ilovehamburg.com 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.

Marc

Howdy,

The config file for postfix is /etc/postfix.main.cf.

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, li589-228.members.linode.com, localhost.members.linode.com, localhost

myhostname = li589-228.members.linode.com

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/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 = ilovehamburg.com

virtualaliasmaps = hash:/etc/postfix/virtual

root@li589-228:~#

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/main.cf

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 http://www.marcfest.com/contact - I'd like to paypal you $25 for your kind and prompt help.

Thank you again!

Best,

Marc.

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: www.seemydog.com)

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 (http://cpix.org/2013-03-13_06-34-35.png), as a token of my gratitude for your help today.

Thank you again!

Reply

Please enter an answer
Tips:

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] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct