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">http://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.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!

6 Replies

Your MX record looks OK. Your server is currently refusing connections on port 25.

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 '^]'.

What does netstat -tulpen | grep 25 return?

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

Postfix is only listening on 127.0.0.1, you need to edit /etc/postfix/main.cf and set inet_interfaces = 127.0.0.0/8 to inet_interfaces = all then restart postfix service postfix restart

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!

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