Here is what I am trying to accomplish in a nutshell:
We have a 1/3 cab at a datacenter with 32 public IPs. I have 1 server (more on the way) setup currently with: -CentOS 4.4 X64 -Current PHP 5.2 from virtualmin repos -mysql 5.032 -Apache 2 (from vm repo) -Most Current Virtualmin Pro as of Yesterday.
My ips used are: x.x.x.67 For mydomain.com x.x.x.68 For all virtual domains
After a heck of a time with the install script I managed to get it up and going. It kept locking up on the up2date portion of the script (I ran yum update after system install), so I manually added the repo, ran yum install on all the files that up2date was trying to run, reran install script and all was well.
My company is making the move from paying a company for our clients hosting to being the hosting company in addition. So mycomany.com was hosted at a different webhost until now.
I have another domain registered that I will call virtualdomain.com for distinction between mydomain.com.
I have created NS1.mydomain.com and NS2.mydomain.com pointing to x.x.x.67 with my registrar, and I can ping them both, so they are set up ok I believe. I then changed mydomain.com to use ns1.mydomain.com and ns2.mydomain.com with the registrar. OK, I can access mydomain.com and www.mydomain.com from the public net now and a ping returns x.x.x.67.
I have also told virtualdomain.com to use ns1.mydomain.com and ns2.mydomain.com via my registrar. I can also access virtualdomain.com and www.virtualdomain.com from public net. Thats working good and when I ping those 2 addresses they return x.x.x.68. So far so good.
Now the problem. I can log via usermin using my account I created (not root) during OS installation. I can send mail from that account to my yahoo account and it is from firstname.lastname@example.org. Perfect. Now, when I send mail from my yahoo account to email@example.com it never gets delivered.
I noticed in webmin/server/bind that there is nothing set up for mydomain.com. Here is a list of all the entries:
"0" 1 Record 0.in-addr.arpa. NS Default localhost
"0000::0/124" 2 Records (IP6 stuff)
"127.0.0"-2 Records: 0.0.127.in-addr.arpa. NS Default localhost. 22.214.171.124.in-addr.arpa. PTR Default localhost.
"255"-1 Record 255.in-addr.arpa. NS Default localhost
"localdomain"-2 Records: localdomain. NS Default localhost localhost.localdomain. A Default 127.0.0.1
"localhost"-3 Records localhost. NS Default @ localhost. A Default 127.0.0.1 localhost. AAAA Default ::1
"virtualdomain.com"-8 Records virtualdomain.com. NS Default mydomain.com. virtualdomain.com. A Default x.x.x.68 www.virtualdomain.com. A Default x.x.x.68 ftp.virtualdomain.com. A Default x.x.x.68 m.virtualdomain.com. A Default x.x.x.68 mail.virtualdomain.com. A Default x.x.x.68 virtualdomain.com. MX Default 5 mail.virtualdomain.com. virtualdomain.com. SPF Default v=spf1 a mx a:virtualdomain.com ip4:x.x.x.x.68 ?all
Thats it (whew!). I dont know what I need to to to make everything else work on my mydomain.com like it does on virtualdomain.com. All that works is web going to mydomain.com and www.mydomain.com but I dont even see that listed in the bind settings.
So, Im stuck here. Advise would be appreciated. Thanks, Steve