Web in one server and Email in another server

Dec 14, 2006
9
0
151
Hi,

what should I modify in a domain zone to point the web for a specific domain to another server? In my server I will be hosting only the mail for this specific domain, the web will be somewhere else.

Thanks a lot in advance
 

nvez

Active Member
PartnerNOC
Jul 17, 2006
40
0
156
You'll have to modify the MX entry to point at another server.
 
Dec 14, 2006
9
0
151
No, I will be hosting the email, so I don't think I should modify the MX record.

Which info do I need exactly from the other server?
 

fjones

Member
Jan 30, 2005
21
0
151
No, I will be hosting the email, so I don't think I should modify the MX record.

Which info do I need exactly from the other server?
Assuming someone else handles the DNS they set your server up as the MX. You could create the account like any other account on your box. I did that for a domain for which I only host email and no problems so far (over a year now). You could delete all the dns entries you don't need (www, ftp, etc).



fj
 

dafut

Well-Known Member
Dec 14, 2005
74
0
156
At the nameserver for the domain, you need to have an A record for your web server and an A record for your mail server. Your domains MX record should point to the mail server.

For example:

domain.com. IN A ipa.ddr.ess.001
www.domain.com. IN CNAME domain.com.
mail.domain.com. IN A ipa.ddr.ess.002
domain.com. IN MX 100 mail.domain.com.
ftp.domain.com. IN CNAME domain.com.


In cPanel, you'll want the /etc/localdomains file to list the domain.com on the mail server; if you're running cPanel on the web server, you'll want /etc/remotedomains to list domain.com (so if you're running cPanel on both servers, domain.com needs to be in the proper file for that server with the mail server always having the domain listed in localdomains). Someone else here may have better clarification on this point...
 
Dec 14, 2006
9
0
151
Thanks Dafut. I'll try what you suggest and let everybody know how it works. (The other server is running Ensim)