10Domains, DNS & SSL
Connect an email plan to a domain at another provider
Connect an email plan to a domain at another provider: copy the MX, A, SPF, DKIM and DMARC records from the Server Center and check them.
In short
If your domain is with another provider, you set five records there: MX to mail.your-domain.com, an A record for mail to 46.225.84.92, SPF with include:_spf.nexthosting.net, the DKIM key and a DMARC record. All values, including the DKIM key, are in the server center in the Set up domain card, ready to copy. The records for your website (@ and www) stay unchanged.
Before you start
Section titled “Before you start”- The email plan is ordered and set up (you entered the domain as “own domain” when ordering).
- You can log in at your domain provider and edit the DNS records there.
- Create the mailboxes before the switch (Set up an email plan). As soon as the MX is switched, mail arrives with us.
Get the records from the server center
Section titled “Get the records from the server center”- Open Mein Nexthosting, set the switch in the header to Server, and choose Email on the left and your plan.
- The Set up domain card shows all records with the real DKIM key. Copy each value with the copy button.
- Create the records at your domain provider.
- Click Check. Each record shows its status: OK, Missing, Different or Old record.
Old record means a previous record is still there, for example an MX from your former mail provider. Delete it at your provider.
The records
Section titled “The records”your-domain.com stands for your domain.
| Type | Name | Value | Priority |
|---|---|---|---|
| MX | @ (the domain itself) |
mail.your-domain.com |
10 |
| A | mail |
46.225.84.92 |
– |
| TXT | @ |
v=spf1 include:_spf.nexthosting.net ~all |
– |
| TXT | hostingcp._domainkey |
DKIM key from the Set up domain card | – |
| TXT | _dmarc |
v=DMARC1; p=none; rua=mailto:postmaster@your-domain.com |
– |
In zone file notation:
@ 3600 IN MX 10 mail.your-domain.com.mail 3600 IN A 46.225.84.92@ 3600 IN TXT "v=spf1 include:_spf.nexthosting.net ~all"hostingcp._domainkey 3600 IN TXT "v=DKIM1; k=rsa; p=…"_dmarc 3600 IN TXT "v=DMARC1; p=none; rua=mailto:postmaster@your-domain.com"Delete the old MX records of your previous mail provider. If they stay, part of your mail keeps arriving there. The MX target is a name (mail.your-domain.com), not an IP address.
The A record mail points to our mail server. If your DNS provider offers a proxy switch (often shown as a cloud), it must be off for mail – email does not go through a web proxy. You do not need an AAAA record (IPv6) for mail.
As soon as mail.your-domain.com points to our server, the certificate for it is created automatically. After that, the Webmail button next to your mailbox logs you in directly.
A domain may have only one SPF record. If one already exists, add include:_spf.nexthosting.net to it instead of creating a second one:
@ 3600 IN TXT "v=spf1 include:_spf.nexthosting.net include:spf.example-service.example ~all"spf.example-service.example stands for another service that sends mail with your domain (newsletter, shop). If nobody except us sends mail with your domain, use exactly the value from the table.
Copy the key in the Set up domain card with the copy button. Create it at your provider as a TXT record named hostingcp._domainkey.
The value is long. Copy it without line breaks. If your provider splits it into several parts in quotation marks, that is fine.
Alternatively, you can also find the key in the Webpanel: in the server center, click To the web space manager, open Domains, your domain and Email authentication. See Access to the Webpanel.
p=none only observes and blocks nothing – the right start. The address after rua= receives summary reports from the large mail providers; use a mailbox that exists. After two to four weeks without issues, switch to p=quarantine:
_dmarc 3600 IN TXT "v=DMARC1; p=quarantine; rua=mailto:postmaster@your-domain.com"More about the options: Email DNS: SPF, DKIM and DMARC.
After saving, it takes a few minutes to a few hours, depending on the provider, until the records apply everywhere. Then click Check in the Set up domain card. If all records show OK, your domain is ready.
You can also check yourself:
nslookup -type=MX your-domain.comnslookup mail.your-domain.comnslookup -type=TXT your-domain.comnslookup -type=TXT hostingcp._domainkey.your-domain.comnslookup -type=TXT _dmarc.your-domain.comIf everything is right, the MX points to mail.your-domain.com and mail.your-domain.com points to 46.225.84.92.
Frequently asked questions
Section titled “Frequently asked questions”Mail still arrives at the old provider.
Section titled “Mail still arrives at the old provider.”Check whether the old MX record is deleted. Until all servers know the new records, individual emails may still land with the old provider for a few hours. Check there during the transition.
My website is gone after the switch.
Section titled “My website is gone after the switch.”Then a record for @ or www was changed. Set it back to its old value at your provider – the email plan does not need it. You can get help via ticket.
My provider does not allow a custom MX record.
Section titled “My provider does not allow a custom MX record.”Some website builders manage email themselves. Then you can usually switch the domain there to “external nameservers” or move it to us (Move a domain). Write to us if you are unsure.