site and mail on different servers

Webfoundry

Verified User
Joined
May 23, 2014
Messages
49
Location
Leuven, Belgium
Hi all,

I'm no expert when it comes to DNS settings. I'm transfering a site (website and mail accounts) to a new server.
Mail has been succesfully transfered, but the site is very large and might take some work.

So I would like to have my client to use his mail on the new server, but temporarily point the site to it's old place (wich is still running)

Do I simply need to put the old IP in the A records ?
Or are other settings neccessary ?

I'm using :

ftp A IP.of.new.server
thesite.be. A IP.of.new.server
mail A IP.of.new.server
pop A IP.of.new.server
smtp A IP.of.new.server
www A IP.of.new.server
thesite.be. NS ns1.newserver.be.
thesite.be. NS ns2.newserver.be.
thesite.be. NS ns3.newserver.be.
thesite.be. MX 10 mail
thesite.be. TXT "v=spf1 a mx ip4:IP.of.new.server ip6:IPof:new:server ~all"
ftp AAAA IPof:new:server
thesite.be. AAAA IPof:new:server
mail AAAA IPof:new:server
pop AAAA IPof:new:server
smtp AAAA IPof:new:server
www AAAA IPof:new:server
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,217
Location
Maastricht
You can simply put the old IP in the A records for the things you like to use on the old server (like www and ftp and domain name).
For mail you have to set the correct A records to the new IP like mail, pop, smtp.

Now depending on which one is the DA server, you might have to look at this:
https://help.directadmin.com/item.php?id=8

It's kind of like the same setting on Cpanel. If you have your old server being an Cpanel server, you have to set the dns to remote mail.
 

Webfoundry

Verified User
Joined
May 23, 2014
Messages
49
Location
Leuven, Belgium
Dear Richard,

Both servers happen to be DA servers (lucky me).
The only thing ... the new server runs PHP7.1 while the old one was PHP5.6

So I had to rework the whole site to get things working, and that's why I want the mail to already run on the new server, but point the site to the old.

Thanks for your kind help and information (as always) ... really appreciated !!!!
 
Top