Results 1 to 2 of 2
Hi, First timer here and Linux admin newbie... You have been warned! Okay, I've set up an Ubuntu 11.10 server as a home project to host a small web and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-22-2012 #1
- Join Date
- Feb 2012
DNS Settings For Mail Server Confusion...
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...
$ttl 7200 mydomain.com. IN SOA ns.mydomain.com. root.mydomain.com. ( 1329667521 10800 1800 1209600 38400 ) mydomain.com. IN A 220.127.116.11 ; 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 18.104.22.168 ; web server mail.mydomain.com. IN A 22.214.171.124 ; mail server ns.mydomain.com. IN A 126.96.36.199 ; name server mydomain.com. IN MX 10 mail.mydomain.com.
connect to mail.mydomain.com[188.8.131.52]: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
Last edited by Fidster; 02-22-2012 at 01:00 AM.
- 02-23-2012 #2
- Join Date
- Feb 2012
After much installing, re-configuring, unistalling and general hacking at various packages and their config files, I now have my mail server working.
I'd like to be more precise about exactly what the problem was, and how I fixed it, but I'm really not 100% sure. I believe it was my Postfix/Courier configuration, which had been modified by numerous failed attempts to use different server management tools in my efforts to get things set up. It took a lot messing about to purge all the unwanted modifications, but I believe my config is clean now and I'm finding Webmin very useful as a server front end.
Ultimately, what I've done is simply clean up the mess I'd made of my server and follow the instructions in the HowtoForge guide Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10), and now I'm happy again