Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 13, 2013 4:39 am 
Offline
Senior Newbie

Joined: Wed Mar 13, 2013 4:19 am
Posts: 11
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


Last edited by marcfest on Wed Mar 13, 2013 6:45 am, edited 1 time in total.

Top
   
PostPosted: Wed Mar 13, 2013 4:44 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
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

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
PostPosted: Wed Mar 13, 2013 4:53 am 
Offline
Senior Newbie

Joined: Wed Mar 13, 2013 4:19 am
Posts: 11
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


Top
   
PostPosted: Wed Mar 13, 2013 4:58 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
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.

_________________
ServerAdmin - www.our-lan.com

"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"

"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
PostPosted: Wed Mar 13, 2013 5:16 am 
Offline
Senior Newbie

Joined: Wed Mar 13, 2013 4:19 am
Posts: 11
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
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = loopback-only
mailbox_size_limit = 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 = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = ilovehamburg.com
virtual_alias_maps = 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


Top
   
PostPosted: Wed Mar 13, 2013 5:27 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
under /etc/postfix/main.cf
comment out/remove this line
Quote:
inet_interfaces = loopback-only


Thats binding to the internal interface only

_________________
ServerAdmin - www.our-lan.com

"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"

"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
PostPosted: Wed Mar 13, 2013 5:33 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
forgot to add you will need to restart postfix for it to take effect
/etc/init.d/postfix restart

_________________
ServerAdmin - www.our-lan.com

"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"

"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
PostPosted: Wed Mar 13, 2013 5:43 am 
Offline
Senior Newbie

Joined: Wed Mar 13, 2013 4:19 am
Posts: 11
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.


Top
   
PostPosted: Wed Mar 13, 2013 6:12 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
Not requried in the slightest :) ill take the karma instead :)

_________________
ServerAdmin - www.our-lan.com

"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"

"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
PostPosted: Wed Mar 13, 2013 6:22 am 
Offline
Senior Newbie

Joined: Wed Mar 13, 2013 4:19 am
Posts: 11
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.

:-)


Top
   
PostPosted: Wed Mar 13, 2013 6:23 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
As a parting note, your webmin installation is listening on the default port, 10000. Recommend you either change it and/or firewall it off.


Top
   
PostPosted: Wed Mar 13, 2013 6:31 am 
Offline
Senior Newbie

Joined: Wed Mar 13, 2013 4:19 am
Posts: 11
Derfy, you're kind. I've changed it right away. Any suggestion as to in what range it should be?


Top
   
PostPosted: Wed Mar 13, 2013 6:33 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
I usually go 50000 and above.


Top
   
PostPosted: Wed Mar 13, 2013 6:36 am 
Offline
Senior Newbie

Joined: Wed Mar 13, 2013 4:19 am
Posts: 11
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!


Top
   
PostPosted: Wed Mar 13, 2013 6:46 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
thats awesome :D

_________________
ServerAdmin - www.our-lan.com

"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"

"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group