Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 19, 2011 10:04 pm 
Offline
Senior Newbie

Joined: Sat Mar 19, 2011 9:57 pm
Posts: 17
Hi there.

I seem to have a problem with my postfix install on my Linode http://koop.hk. I followed all the steps in the tutorial: http://library.linode.com/email/postfix ... 0.04-lucid

I can send emails to it locally from the shell using mailx info@koop.hk and it receives it OK. I also set up mac mail to connect to the IP address on port 995 and it retrieves the email OK.

The problem however is that when I try to send emails to info@koop.hk externally (e.g. from gmail) they don't arrive. I'm also unable to send emails from mac mail, trying the configuration shown here: https://skitch.com/michielwaaijer/ritif/mail

Could something be wrong in the mx records for koop.hk ? - the config is shown here: https://skitch.com/michielwaaijer/riu23/my-account

Anyone know what could be the solution here?

Thanks a lot in advance!


Top
   
 Post subject:
PostPosted: Sat Mar 19, 2011 10:49 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Your MX record looks OK. Your server is currently refusing connections on port 25.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sun Mar 20, 2011 12:33 am 
Offline
Senior Newbie

Joined: Sat Mar 19, 2011 9:57 pm
Posts: 17
Hi thanks for the reply!

I can't seem to figure out how to enable port 25 on Ubuntu. I tried to add it to IP tables like below:

root@plato:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT udp -- anywhere anywhere udp dpt:25

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

however to no avail. I have also tried to add the port to 58 in master.cf in the postfix config like below:
smtp inet n - - - - smtpd
58 inet n - - - - smtpd

But I still can't connect via telnet through either 25 nor 58. I can however connect through port 995 - is it possible to use this port instead?:

wire$ telnet mail.koop.hk 25
Trying 66.228.32.238...
telnet: connect to address 66.228.32.238: Connection refused
telnet: Unable to connect to remote host
wire$ telnet mail.koop.hk 58
Trying 66.228.32.238...
telnet: connect to address 66.228.32.238: Connection refused
telnet: Unable to connect to remote host
wire$ telnet mail.koop.hk 995
Trying 66.228.32.238...
Connected to mail.koop.hk.
Escape character is '^]'.


Top
   
 Post subject:
PostPosted: Sun Mar 20, 2011 1:18 am 
Offline
Senior Newbie

Joined: Sat Jul 17, 2010 8:32 am
Posts: 12
What does netstat -tulpen | grep 25 return?


Top
   
 Post subject:
PostPosted: Sun Mar 20, 2011 1:22 am 
Offline
Senior Newbie

Joined: Sat Mar 19, 2011 9:57 pm
Posts: 17
It returns the following:

tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 0 891354 6252/imap-login
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 0 891353 6252/imap-login
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 1101513 29618/master


Top
   
 Post subject:
PostPosted: Sun Mar 20, 2011 8:07 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Postfix is only listening on 127.0.0.1, you need to edit /etc/postfix/main.cf and set
Code:
inet_interfaces = 127.0.0.0/8
to
Code:
inet_interfaces = all 
then restart postfix
Code:
service postfix restart

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun Mar 20, 2011 10:54 am 
Offline
Senior Newbie

Joined: Sat Mar 19, 2011 9:57 pm
Posts: 17
thanks a lot, that solved it.

Actually the inet_interfaces was set to loopback-only - I changed it to all and than it worked.

Cheers!


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