| Linode Forum https://forum.linode.com/ |
|
| Externally sent emails do not arrive in Postfix... https://forum.linode.com/viewtopic.php?f=11&t=6844 |
Page 1 of 1 |
| Author: | mikewire [ Sat Mar 19, 2011 10:04 pm ] |
| Post subject: | Externally sent emails do not arrive in Postfix... |
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! |
|
| Author: | pclissold [ Sat Mar 19, 2011 10:49 pm ] |
| Post subject: | |
Your MX record looks OK. Your server is currently refusing connections on port 25. |
|
| Author: | mikewire [ Sun Mar 20, 2011 12:33 am ] |
| Post subject: | |
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 '^]'. |
|
| Author: | TheSpectre [ Sun Mar 20, 2011 1:18 am ] |
| Post subject: | |
What does netstat -tulpen | grep 25 return? |
|
| Author: | mikewire [ Sun Mar 20, 2011 1:22 am ] |
| Post subject: | |
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 |
|
| Author: | obs [ Sun Mar 20, 2011 8:07 am ] |
| Post subject: | |
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/8to Code: inet_interfaces = allthen restart postfix Code: service postfix restart |
|
| Author: | mikewire [ Sun Mar 20, 2011 10:54 am ] |
| Post subject: | |
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! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|