Skip to content
Host4u Limited

Moving your website elsewhere but keeping email with us

Support Portal  »  Knowledgebase  »  Viewing Article
There was a problem loading the comments.
  Print
  • 26/11/2026 1:12 pm

You can host your website with another company and keep your email with us. You need to change the right DNS records, otherwise your email can stop arriving when the website moves.

These steps are for cPanel web hosting. Your hosting plan with us must stay active: if you cancel it, your mailboxes and email stop.

Why email can stop

Two DNS records matter here:

  • the A record says which server your website is on;
  • the MX record says which server receives your email.

By default on our cPanel hosting, the MX record points to your domain name itself, and mail.yourdomain is just an alias of it. With that setup, when you point your domain at a new website host, your email follows it there. Some accounts are set up differently, so check your own records using the steps below.

Where is your DNS kept?

Your DNS is with us if your domain's nameservers are the ones we gave you. Then follow Option 1 (recommended). If you are going to move your nameservers to another company, follow Option 2.

Before you start

  1. In cPanel, note your server's IP address, shown as Shared IP Address (or Dedicated IP Address) under General Information. See Logging in to cPanel.
  2. Open Zone Editor, click Manage next to your domain, and note or screenshot all the current records.

Option 1: keep your DNS with us (recommended)

Make the email changes first, then move the website.

  1. Give mail its own A record. In Zone Editor, look for mail.yourdomain. If it is a CNAME record, delete it and add an A record for mail.yourdomain with your server's IP address from above. If it is already an A record with that address, leave it.
  2. Point the MX record at it. Edit the MX record so the destination is mail.yourdomain (for example mail.example.co.uk), with priority 0.
  3. Check Email Routing. In cPanel, open Email Routing (in the Email section) and choose your domain. Select Local Mail Exchanger and click Change.
  4. Update your mail apps. If any app or device uses your domain on its own (without "mail.") as the server name, change it to mail.yourdomain.
  5. Wait a few hours, then send yourself a test email from another provider.
  6. Move the website. Change the A record for your domain to the IP address your new website host gives you. If www has its own A record, change that too. Leave the mail and webmail records as they are.

Option 2: move your nameservers to another company

Once the nameservers change, the new company's DNS is used and changes in our Zone Editor no longer do anything. Before you change the nameservers, create these records at the new DNS provider, copying the values from our Zone Editor:

RecordNameValue
Amail.yourdomainyour server's IP address with us
MXyourdomainmail.yourdomain, priority 0
Awebmail.yourdomainyour server's IP address with us
TXTyourdomainthe record starting v=spf1
TXTdefault._domainkey.yourdomainthe DKIM record starting v=DKIM1 (copy all of it)
TXT_dmarc.yourdomainthe record starting v=DMARC1

Also copy any other records you still use, such as autodiscover and autoconfig (used by some mail apps to set themselves up) and any records for subdomains or other services.

If you use Cloudflare, set the mail and webmail records to DNS only (grey cloud), not proxied.

Then change the nameservers: see Pointing your domain at your hosting (nameservers).

Tell your new website host that email stays with us

This matters if your website sends email, for example from a contact form, and your new host also provides email. If their server thinks it handles email for your domain, a message from your website to you@yourdomain can be delivered to their server instead of to your mailbox with us.

Ask your new host to turn off email for your domain on their server. If they use cPanel, Email Routing for the domain should be set to Remote Mail Exchanger.

After the move

Not sure?

Open a support ticket before making changes, and tell us your domain and the new website host.


Share via
Did you find this article useful?  

Related Articles


Self-Hosted Help Desk Software by SupportPal