DNS Settings For Mail Server Confusion...
Hi, First timer here and Linux admin newbie... You have been warned! :p
Okay, I've set up an Ubuntu 11.10 server as a home project to host a small web and mail server. After many hours of trying to wrap my head around the bind config files I've finally managed to get the web server part sorted, and my DNS is playing nicely on the web according to pingability.com, but the mail server is still giving me problems. This is how my DNS zone file looks...
In Webmin I can see that mail for mydomain.com is being delivered to my server, but it's being held in a Mail Queue rather than being delivered to the assigned user. The error message against each of the queued messages is;
mydomain.com. IN SOA ns.mydomain.com. root.mydomain.com. (
mydomain.com. IN A 22.214.171.124 ; External IP
mydomain.com. IN NS ns.mydomain.com. ; Primary DNS
mydomain.com. IN NS secondary-dns.co.uk. ; Secondary DNS
www*mydomain.com. IN A 126.96.36.199 ; web server
mail.mydomain.com. IN A 188.8.131.52 ; mail server
ns.mydomain.com. IN A 184.108.40.206 ; name server
mydomain.com. IN MX 10 mail.mydomain.com.
As all these services are located on one machine, do I need to change something to make my SMTP connection use its internal IP address or should using the external one just loop back from my router and connect to the server on port 25?
connect to mail.mydomain.com[220.127.116.11]:25: Connection refused
I know port 25 is open on the server as I can telnet to it on the local network using the internal IP but not the external one. I also know that my router allows SMTP through because messages sent from elsewhere on the web are getting into the queue in the first place...
What am I missing here:confused: