I'm trying to set up a simple mail service in my Ubuntu server, but I'm having the most difficult time setting it up correctly.
I have followed the steps in Ubuntu's Postfix guide but I'm still having trouble.
Here are my test cases.
- [email protected] -> [email protected] [Works fine]
- [email protected] -> [email protected] [Works fine]
- [email protected] -> [email protected] [Works fine]
- [email protected] -> [email protected] [Does not work at all]
Seeing this, I automatically think that my MX record setting is incorrect. But I don't think that is the case as as I have consulted various other people and examples and they seems to be correct. And yes I have waited at least 24 hours between changes for flushing DNS records.
I Have no idea what to do any more and any guidance or trouble shooting guide would be appreciated.
Thank you,
-- EDIT 5/5/2013 8:34 PM
I had a drop all other ports prior to the command to open SMTP. I did not know the order of the iptable command matters...
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http-alt
DROP all -- anywhere anywhere
*ACCEPT tcp -- anywhere anywhere tcp dpt:smtp*
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
25/tcp
open on your firewall? Is postfix listening there? What does your mail log say when you try and send a message from an external server?