| Linode Forum https://forum.linode.com/ |
|
| mail server question ($25 for solution) (SOLVED) https://forum.linode.com/viewtopic.php?f=11&t=9868 |
Page 1 of 1 |
| Author: | marcfest [ Wed Mar 13, 2013 4:39 am ] |
| Post subject: | 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 |
|
| Author: | Internat [ Wed Mar 13, 2013 4:44 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
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 |
|
| Author: | marcfest [ Wed Mar 13, 2013 4:53 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
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 |
|
| Author: | Internat [ Wed Mar 13, 2013 4:58 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
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. |
|
| Author: | marcfest [ Wed Mar 13, 2013 5:16 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
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 |
|
| Author: | Internat [ Wed Mar 13, 2013 5:27 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
under /etc/postfix/main.cf comment out/remove this line Quote: inet_interfaces = loopback-only Thats binding to the internal interface only |
|
| Author: | Internat [ Wed Mar 13, 2013 5:33 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
forgot to add you will need to restart postfix for it to take effect /etc/init.d/postfix restart |
|
| Author: | marcfest [ Wed Mar 13, 2013 5:43 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
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. |
|
| Author: | Internat [ Wed Mar 13, 2013 6:12 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
Not requried in the slightest |
|
| Author: | marcfest [ Wed Mar 13, 2013 6:22 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
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. |
|
| Author: | derfy [ Wed Mar 13, 2013 6:23 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
As a parting note, your webmin installation is listening on the default port, 10000. Recommend you either change it and/or firewall it off. |
|
| Author: | marcfest [ Wed Mar 13, 2013 6:31 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
Derfy, you're kind. I've changed it right away. Any suggestion as to in what range it should be? |
|
| Author: | derfy [ Wed Mar 13, 2013 6:33 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
I usually go 50000 and above. |
|
| Author: | marcfest [ Wed Mar 13, 2013 6:36 am ] |
| Post subject: | Re: mail server question ($25 for solution) |
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! |
|
| Author: | Internat [ Wed Mar 13, 2013 6:46 am ] |
| Post subject: | Re: mail server question ($25 for solution) (SOLVED) |
thats awesome |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|