
Originally Posted by
pguy
I'll tell you what you need to do in a Step by Step way -
1) Use WHM to edit DNS and change the MX entries.
2) pico /etc/localdomains & remove the domain name
3) pico /etc/remotedomains & check if the domain you edited is there. If not, add it.
Hi 
I've been kind of stumbling my way through this and ran into a little confusion. I have something set-up that seems to be working, but I'm not sure it is good...
I first just tried to edit my DNS and change the MX entry from the standard put in by WHM - mydomain.com. IN MX 0 mydomain.com. - to one that pointed to the IP of the remote mail server. dnsreport.com didn't like this. Apparently I'm not supposed to use an IP there and am supposed to use a name. On the advice of a friend more knowledgeable than I, I pointed my MX to 'mail.mydomain.com.' instead of 'mydomain.com.' and then changed the CNAME for 'mail' in my zone file to an A pointing to the remote IP, and this seemed to work. I then removed the domain from localdomains and added it to remotedomains.
Does anyone see a problem with this approach? It does seem to be working.
mydomain.com.db BEFORE
Code:
; Modified by Web Host Manager
; Zone File for mydomain.com
$TTL 14400
@ 14440 IN SOA ns1.nameserver.com. user.mydomain.com. (
2005041506
7200
7200
2419200
86400
)
mydomain.com. IN NS ns1.nameserver.com.
mydomain.com. IN NS ns2.nameserver.com.
mydomain.com. IN A xx.xx.xxx.xx
localhost.mydomain.com. IN A 127.0.0.1
mydomain.com. IN MX 0 mydomain.com.
mydomain.com. IN MX 50 backupmx.nameserver.com.
mail IN CNAME mydomain.com.
www IN CNAME mydomain.com.
ftp IN CNAME mydomain.com.
mydomain.com.db AFTER
Code:
; Modified by Web Host Manager
; Zone File for mydomain.com
$TTL 14400
@ 14440 IN SOA ns1.nameserver.com. user.mydomain.com. (
2005041506
7200
7200
2419200
86400
)
mydomain.com. IN NS ns1.nameserver.com.
mydomain.com. IN NS ns2.nameserver.com.
mydomain.com. IN A xx.xx.xxx.xx
localhost.mydomain.com. IN A 127.0.0.1
mydomain.com. IN MX 0 mail.mydomain.com.
mydomain.com. IN MX 50 backupmx.nameserver.com.
mail IN A xxx.xx.xxx.xx
www IN CNAME mydomain.com.
ftp IN CNAME mydomain.com.
TIA for any insight 
best regards,
verdon