Your domain's MX records define which server receives its email. When your website stays at Konet and your email moves to another provider, such as Google Workspace or Microsoft 365, you change the MX records in Zone Editor, merge the provider's SPF with the hosting's, add DKIM and autodiscover, and switch Email Routing to Remote Mail Exchanger. The website records (the A record of the domain and of www) do not change.
The reverse case, website elsewhere and email at Konet, only involves the website records. Here we deal with email.
Where do I make the changes
You change the records wherever the domain's DNS zone is hosted, that is, wherever the nameservers point.
- If the nameservers point to Konet and you have hosting, you change them yourself from cPanel > Domains > Zone Editor > Manage. How the tool works is explained in the guide to cPanel Zone Editor.
- If you only have the domain at Konet, without hosting, open a ticket from the Client Area with the values your provider gave you and we add them. The request comes from the account owner. If a partner or your IT company sends it, the owner needs to confirm it in writing inside the ticket.
- If the nameservers point elsewhere, the changes are made there and not in cPanel.
Which DNS records concern email
| Record | What it does | What you do |
|---|---|---|
| Domain MX | Where incoming mail is delivered | Enter the new provider's values and delete the old ones |
TXT with v=spf1 |
Which servers send for the domain | One record, with the provider and the hosting |
| DKIM | Digital signature of messages | Add whatever the provider gives you |
_dmarc |
What the recipient does when SPF and DKIM fail | Stays a single record, as it is |
autodiscover |
Automatic setup in Outlook | Points to the provider, not to the hosting |
mail |
The name you enter in email programs | Changes only if the provider asks for it |
Domain A and www |
Where the website opens | Do not change |
Step 1, lower the TTL before the change
TTL is the time in seconds other servers keep a record in their cache. In cPanel the default is 14400, which is 4 hours. Change the TTL of the MX records to 300 at least as long before the change as the current TTL, that is 4 hours earlier if it is 14400. This way, when you enter the new values, everyone sees them quickly, and if you make a mistake you fix it without waiting for hours. Once the setup is stable, you can set it back.
Before you change the MX records, make sure the new provider already has all mailboxes ready. From the moment of the change, new messages go there. Old ones stay at Konet until you move them.
Step 2, change the MX records and delete the old ones
- Open cPanel > Domains > Zone Editor and click Manage next to the domain.
- Filter the records by MX to see only those.
- With Add Record, add the provider's MX record with the priority it gives you.
- With Delete, remove every old MX record that points to the hosting or to a previous provider.
- Click Save Record on each change.
The values for the two largest providers, as they give them today:
- Google Workspace: one MX record
smtp.google.comwith priority 1. If the domain already has the older fiveaspmxrecords and email works, Google says not to change them. - Microsoft 365: one MX record with the value shown in the Microsoft 365 admin center on the domain's Add DNS records page, with priority 0. Copy it from there, because it differs per domain.
For other providers, enter exactly what their documentation says.
Duplicate MX records and MX priority
In MX records the lower number has priority. If an old MX record to the hosting remains next to the new one, sending servers may deliver some messages to the old place. In that case the sender gets no error, but you never see the message. This is the "the technicians see two records" you often hear. Keep only the provider's MX records.
If your plan has Professional Spam Filter (SpamExperts), the domain's MX records point to the filter. Before you change them, open a ticket so we remove the domain from the filter.
Step 3, one SPF record for the provider and the hosting
SPF tells recipients which servers are allowed to send email with your domain. The provider gives you an include, e.g. include:_spf.google.com for Google Workspace or include:spf.protection.outlook.com for Microsoft 365.
The domain always has one v=spf1 record. Do not add a second one. Edit the existing one and put the provider's include before ~all or -all. Do not delete the hosting part. The website's forms, orders and notifications leave from the hosting's mail server, because a website at Konet does not connect to external SMTP servers. If the hosting is missing from SPF, the website's emails are rejected or go to spam.
Example for Google Workspace, where +a covers the website's server:
v=spf1 +a include:_spf.google.com ~all
You see the exact value the hosting needs in cPanel > Email > Email Deliverability > Manage. Do not click Repair if the suggested record does not keep your provider's include. What SPF, DKIM and DMARC do is explained in SPF, DKIM and DMARC in cPanel.
Step 4, DKIM and DMARC
- Google Workspace: in the Admin console open Apps > Google Workspace > Gmail > Authenticate email, generate the key and add in Zone Editor a TXT record named
google._domainkey. Then click Start authentication. - Microsoft 365: add two CNAME records,
selector1._domainkeyandselector2._domainkey, with the values from the admin center. - The cPanel DKIM record (
default._domainkey) stays, because it signs the website's emails. _dmarcstays a single record. If you have none, start withp=noneand make it stricter once you see that all your emails pass.
Step 5, autodiscover for Outlook
By default cPanel creates autodiscover and autoconfig records and an SRV record _autodiscover._tcp in the zone, which send Outlook to the hosting. With email on Microsoft 365, delete these three and add the CNAME record autodiscover with the value from the admin center. If you do not delete them, Outlook may suggest the hosting's settings instead of Microsoft 365. For other providers, follow their documentation for autodiscover.
Step 6, Email Routing to Remote Mail Exchanger
While Email Routing is Local, the hosting treats the domain's email as its own. Then anything the website sends to your domain's info@ stays in a hosting mailbox and never reaches the new provider.
- Open cPanel > Email > Email Routing.
- Select the domain.
- Select Remote Mail Exchanger and click Change.
Do not rely on Automatically Detect Configuration. cPanel only looks at the zone on the server and does not check again later. For details on the options see the guide to cPanel Email Routing.
My email provider changed IP or hostname, what do I change
Usually nothing, if the MX records point to a name of the provider (e.g. mx.provider.example). The change happens in their own zone. Some smaller providers ask for an A record in your zone, e.g. mail.example.gr, pointing to their server, with the MX records pointing to it. Then, when their IP changes, you change the A record of mail to the new IP and check that their SPF still contains the new server. If mail is a CNAME, you delete it and add an A record, because a name cannot have both.
How do I check that everything works
- With cPanel Track DNS look up the domain and check that the MX results show only the provider's values.
- Send an email from an external Gmail account to your address and check that it reaches the new provider.
- Send from the new address to Gmail and open Show original. SPF, DKIM and DMARC must be PASS.
- Send a message from the website's form and check that it arrives.
DNS changes usually show within a few hours. On some networks up to 48 hours.
Frequently Asked Questions
My provider's smtp and pop server changed, do I only need to change the MX record?
The smtp and pop server go into email programs, not into DNS. In DNS you change MX and SPF, and the A record of mail only if the provider asks for it to point to their server.
The provider says it sees no MX record, while I see it in Zone Editor. Why?
Either the domain's nameservers do not point to Konet, so Zone Editor is not the zone the internet sees, or the change has not propagated yet because of TTL. Check the MX records with Track DNS and check the nameservers.
After the change my emails to Yahoo bounce. What is wrong?
Almost always SPF. The new provider's include is missing or there are two v=spf1 records. Merge them into one with the provider and the hosting.
Emails from the website form do not reach info@ after the switch. Why?
Email Routing stayed Local and the hosting delivers them to a local mailbox. Switch it to Remote Mail Exchanger. To send through the provider see WP Mail SMTP when your email is with another provider.
Will I lose my old emails when I change the MX records?
No, they stay in the hosting mailboxes. Move them to the new provider with IMAP before you delete the accounts from cPanel.
Do I need to change nameservers for email to go to Google Workspace?
No. The nameservers stay at Konet and you only change the email records in the zone.