Verify your custom domain and set MX record

In this article we look at how to add your own domain to ProtonMail so that you can send and receive emails using an @yourdomain address. We also look at how to verify your domain for use with ProtonMail and how to set its MX records so that emails sent to your domain are properly directed to your ProtonMail Inbox. 

To use custom domains within ProtonMail, you must have control of the domain’s Domain Name System (DNS) records. DNS records are public information about your domain that other web servers look up to see how to communicate with your domain. Typically, you can change your DNS records (or DNS Zone File) on your domain registrar’s website, or wherever you host your name servers. 

For example, let’s say we bought through the registrar We can then go to‘s Domain List → → Advanced DNS and edit DNS records there (see below). The process is similar for other registrars. Below you can see where to update the DNS for

Image of NameCheap DNS

Once a DNS change has been made, then DNS lookups by other web servers will now find the new records. However, this change may take some time to propagate, since the old DNS records can still be cached across the Internet. 

The Time to Live (TTL) setting controls how long DNS records are cached, and we suggest setting it to a low number (1 hour or less) if possible during setup. Some domain registrars do not allow setting such a low number, you can search your domain registrar and “TTL” to learn more about their restrictions.

Add your domain

1. In your browser, log in to your ProtonMail account and go to Settings → ProtonMail → Custom domains -> Add domain.

Image of Add domain

2. Enter your domain name, click Next (bottom right of page). You might be asked to re-enter your ProtonMail password for security reasons.

Verify your domain

The first thing you have to do after adding a custom domain name is to show ProtonMail that you control this domain. This is done by adding a TXT record with a unique code that ProtonMail has generated to your domain’s DNS records in your registrars domain management portal.  

ProtonMail servers will then look up all the TXT records for your domain and see if any matches the verify code. If we find a match, then verification succeeds and you are allowed to move on to the other steps.

If you clicked Next in the last step you will be taken to the Verify tab. You can also reach it from Settings ProtonMailDomain Names Custom domains by clicking on the Actions  Review button and selecting the Verify tab.

How to review a domain's status

In the Verify tab, your Host Name (@) and TXT verification record are shown to the right of your newly added domain. 

Verify your new domain

Click on the small Copy icon to the left of the TXT verification record to copy it to your clipboard. You can then paste it into your registrar’s domain management portal.  

Image of Add record

Wait a few minutes then click Next to trigger a DNS check by our servers. If it succeeds, you can now move on to the next steps. If it did not succeed, do not worry; it is possible that our servers are still reading old cached DNS records. 

Note: If your DNS entry page does not allow you to add @ as the hostname, please try leaving this field blank when you enter the ProtonMail verification information. Some hosting providers do not provide a field for the “Host/Name.” If this is the case, please provide all other information and ignore the “Host/Name” in the Verify step.

Wait an hour and come back to the same page to see if it has succeeded; this can take up to a day depending on your TTL setting. If it still doesn’t succeed, and you have double checked your DNS matches the code in the setup wizard, please contact our customer support for assistance.

After the first verification, our servers will periodically check your domain’s DNS records and update the status of your domain. It is important you keep the right verification code in your domain’s DNS settings and to quickly fix any DNS issues that come up. After your domain is all set up, if we detect missing DNS records, such as the verify record, we will warn you for a week before disabling your domain and its addresses.

Create new users

You can now create new users and add your team members to your account. Log in to your ProtonMail account on your browser and select Settings → Go to Settings → Users & addresses. Select Add user

Fill in the details and select Save. Repeat this step for every user you’d like to add to your ProtonMail account.

Share login information with your team members

Before you change your MX records, we recommend informing your team members of the upcoming change. After you change the MX records, emails will be delivered to their ProtonMail inboxes instead of their old inboxes.

Activate your domain

Once your domain is verified, click Next to go to the MX tab (or come back to this page later and simply go directly to the MX tab). The mail exchanger (MX) record is vital for email operation: it tells the Internet which server(s) should receive your domain’s email. 

Set your domain's MX records

If you are setting up a new domain then go ahead and add the specified MX records in the control panel of your domain name registrar. 

To ensure a smooth transition, if your domain currently has existing mailboxes we recommend that you add all used email addresses before switching  your MX records to ProtonMail. We describe how to do this below. This is to avoid disruption to your email delivery, because ProtonMail will only accept mail for addresses that you have added. points to ProtonMail’s mail servers, so once you have made this change, you are telling the Internet to send email for your domain to your ProtonMail mailbox/es. 

If you have MX records for multiple services, the email will be delivered to the service with the highest priority (lowest value). If you have other MX records, you should either delete them or make sure‘s priority is a smaller number (higher priority) than the other MX records

Again, it may take up to a day for MX changes to propagate, and email may still go to your old MX during this transition. Once we detect your domain’s top MX record is pointing to ProtonMail, the MX tab will show a green tick icon.

Setting up your addresses

If you are changing an existing domain to deliver emails to your ProtonMail Inbox, then you should setup all existing email addresses before filling in the MX records (as described above).

Select the Address tab → Add address

Add addresses to your domain

This will take you to the Organization section of your ProtonMail accounts page. Click on Add Address to create a ProtonMail email address using your custom domain. This can be found in the dropdown domains selection menu.

Create an email address with your custom domain

You may need to sign in again with your password. After this, you will be asked what encryption strength you want to use for the keys that will be generated for your account. The default is State of the Art (X25519), but you can also choose  you can choose Compatibility RSA 4096-bit . Click Submit, and then Done when you have made your choice.

Generate missing encryption keys for your new domain

Now that you have finished all the required steps for custom domain setup, we can explore Anti-spoofing for Custom Domains (SPF, DKIM & DMARC). These are widely adopted methods that protect your email delivery and prevent email spoofing. Learn more here.

Setup guides for specific domain registers are available for Amazon Web ServicesBluehostCloudflareOVHGandi, and GoDaddy, Hostpoint, and Google Domains.

About The Author

Post Comment


  1. Frederic De Mees

    You say: make sure‘s priority is a smaller number (higher priority) than the other MX records
    This is not correct. Other MX *must* be removed, otherwise some deliveries will still occur to the backup MX. The backup MX will deliver mail to the old mailboxes or reject mail. Both options are bad.
    Some massmailings do not respect the priorities.
    In case of a network outage (ddos ?) targeting Protonmail all e-mail would also be misdirected instead of queued at the senders server.

  2. ProtonMail Support

    This may happen with some of the registrars. We recommend to have only ProtonMail MX record, but in case you leave the other record, ProtonMail must have the highest priority.

  3. David M

    Shouldn’t it be (with a final dot) ?
    My registrar ( requires it.

  4. Anonymous

    Very big thanks for your comment. Helped me solve my MX issue. regards

  5. JohnnyG

    is it possible to have a custom domain mirror another domain?
    for example: I want to be a mirror of
    or do I have to setup 2 domains separately?

  6. John Smith

    fantastic, wasn’t very easy to understand since I had to edit what looked like a simple txt file on a webpage. For those in the same situation, format should be :

    yourdomainname MX 10
    protonmail._domainkey.yourdomainname 28800(not sure about the number but it showed this way) TXT “v=DKIM1; k=rsa; p=yourgeneratedkey”

    _dmarc.yourdomainname 28800 TXT “v=DMARC1; p=none; rua=mailto:yourmail

    Do not forget the ” “, normally it should warn you because of a wrong syntax.

  7. Francisco Abreu

    My registar only accepts MX records pointing to (with a period in the end). I have included that but ProtonMail is not recognizing it. Please advise.

  8. ProtonMail Support

    Please contact us on or via the Report bug button.

  9. Michel

    Im unable to create a custom record for “@”. My ISP forces me to use my domain name followed by a dot. What should I do?

  10. ProtonMail Support

    You can use the domain name instead of @. For more information please contact us on or via the Report bug button.

  11. alex

    I get the following. My DNS allows TXT | Host | Content | blank text field |

    I enter in TXT | @ | copy paste | 10 (assuming TTL) |

    I get error

    Domain record name needs to end with the domain name string.

  12. ProtonMail Support

    Please contact us on or via the Report bug button.

  13. Anonymous

    Great, but how do I add the code to my DNS? This is prolly a very noob question, since clearly you assume that anyone doing this is well aware of how to do it… how about consider us who actually don’t.

  14. ProtonMail Support

    Can you please contact us at if you are still experiencing this issue?

  15. Anonymous

    Some registrars use the BIND format for zone files in DNS thus requiring a “dot” at the end.

  16. ProtonMail Support

    Do you have trouble setting up your domain? If so, please contact us at

  17. Atheoz

    Sending to/from my email on my own domain works just fine, it’s just ProtonMail that says MX and SPF isn’t set up properly. Which is weird…

  18. ProtonMail Support

    Sorry to hear that. Can you please send all the details to

  19. stie

    Hi. The recommendation to set the TTL to 1 hour or less could lead to a potential security issue, in the event that one’s registrar account gets compromised, as it happened to someone using godaddy + paypal without him being at fault (see should it happen, he would have only one hour or less to react, which is not enough in some circumstances, as was the case with this example of things turning bad. Therefore, I would recommend to eventually set it TEMPORARILY to one hour or less during setup in order to speed it up and reset it afterwards to a safer – meaning larger – TTL value.

  20. Greg Raven

    After the new MX information propagates, you can set the TTL back to whatever you want. Also, some registrars automatically reset TTL to their preferred value(s) after you make your temporary change for the transition.

  21. Valerie Patterson

    I don’t know where or how to enter the txt record? I have gone through the settings on the account page and the settings on my computer. I am really beginning to wonder if this is worth the extra money- as I am growing increasingly frustrated with the lack of actual step by step instructions.

  22. ProtonMail Support

    You can change your DNS records (or DNS Zone File) on your domain registrar’s website.

  23. bt

    I have problem with MX setup – my registrar requires minimum two server names (ex. and other (?)). Otherwise it’s not possible to save MX form…

  24. Bob

    I am not seeing where to paste in the verification code…

  25. ProtonMail Support

    You will need to add the verification code in your domain registrar’s DNS settings. If you need any assistance please contact our support team at or using the support form at

  26. Serge

    I don’t know how to fix it. Help me, please :-(

    It more than 1 day has gone since the time I’ve tried to add a custom domain –
    I’ve followed to every step of instruction according to the new domain add option and still have no success :-(
    Could you please help me to resolve an issue I caught?

    When I’m pressing verify button I get an error alert. Please see it in the screenshot attached.
    It’s extremely important for me to get an access to this domain because my work has stopped without it.
    I would be extremely thankful if you could help me to solve this question ASAP

  27. Proton Editor

    For assistance with your custom domain, please contact us at, via the report bug button or using the support form at

  28. Anton

    why is there no backup server for mx record? I mean something like “20”

  29. ProtonMail Support

    If you want to set up a backup MX record, you can use for the server.

  30. Jayadvaita Dasa

    Is valid to make domain

  31. ProtonMail Support

    You can add any custom domain to a ProtonMail account as long as you have access to the domain’s DNS settings.

  32. Richard

    For me the article above is unclear as it does not clearly identify what edits / changes are to be made on the domain registrars website, viz
    “We can then go to‘s Domain List -> -> Advanced DNS and edit DNS records there (see below).” The image ‘below’ this sentence is unreadable to me. Am I supposed to discern the text changes / edits from this figure?
    It is not clear in the text after this if the focus then changes to the settings in Protonmail? For example:
    “To get started, please navigate to the ‘Add Custom Domain’ button under the Domains tab within the (Protonmail???) Settings.”

  33. ProtonMail Support

    The first image shows where you can find the DNS settings if using Namecheap and is just used as an example. It (or any values contained within) should not be used to set up your own domain.
    Once you purchase a domain, you need to add it to your ProtonMail account and then add the newly generated ProtonMail verification code and the MX record to the domain DNS settings. If you are having trouble setting up a custom domain, please contact our support team at

  34. Joe Bartlett

    When can I remove the verification TXT record?

  35. ProtonMail Support

    The verification TXT record should remain active for the entire time you want your custom domain to be active on your ProtonMail account. Removing the verification TXT record will cause your domain to no longer be verified in ProtonMail.

  36. Douglas Becker

    In adding custom domains, I have an error on MX and SPF and need help.

    In the MX record, the host is my URL instead of the @ and there’s no way to force it? Is this a problem? The MX record itself has:

    Priority: 10

    just like in the instructions.

    The SPF TXT record also does not allow @ and there was an existing v=spf1, so I made it like this:

    v=spf1 +a +mx +ip4: +ip4: ~all

    How can this be fixed?

  37. ProtonMail Support

    If your registrar does not allow @ or leaving the field blank, then your domain name will also work, for example For further assistance, please contact our support team using the support form at, via the report bug button or at and

  38. bynarie

    Trying to add domain to proton mail via TXT verification… It fails everyrtime… Been trying since last night. Anyway to get my BTC back and full refund? This is way too complicated.

  39. ProtonMail Support

    Please contact our support team using the support form at, via the report bug button or at and

  40. Tim

    Hi my Domain Name provider is insisting that the TXT value to be added for domain ownership verification is enclosed in quotes. I have waited 24 hours and its not working. Are the quotes an issue, and should it work with an domain?

  41. ProtonMail Support

    Please contact our support team:

  42. Patricio Avendanoi


    Add a Domain (hidden) and in the verification process I did not know where to add the code that you generated:

    protonmail-verification = hidden

    the company that controls the domion registry (hidden) and in its configuration web page it only has to register “DNS servers”, well paste the code to validate and give me an error that in DNS delivered was invalid !!!!!

    Please tell me if the procedure was correct …. thank you

  43. ProtonMail Support

    Please contact our support team using the support form at

  44. Christine

    I am now stuck at MX settings step and my server provider says : your zone has been assigned. However the following anomalies have been found :
    1. zone : ‘’ has no address records (A or AAA).
    and same with
    In the control panel of the DNS zone, there is only one A type entry that has an IP address as a target.
    I have this nagging feeling that I missed a step while setting my custom domain (but it passed the verification test).
    I have to admit… I’m somewhat lost. Please help !

  45. ProtonMail Support

    Please contact our support team using the support form at

  46. Alex

    I am currently using Microsoft Exchange as my email hosting. I wish to know am I able to embed the emails to Protomail platform, such as sending and receiving emails.

  47. ProtonMail Support

    Please contact our support team:

  48. Dam

    i dont make configuration my account Protonmail with may domain register in [hidden], i need help please.

  49. ProtonMail Support

    Please contact our support team:

  50. Mark Naumowicz

    Today I have received an email from you:
    We detected the following issues for your custom domain [hidden].

    [WARNING] MX record no longer includes ProtonMail. This is impacting your email delivery.
    This may be a temporary network or DNS error or an intentional DNS change by you.
    We will email you updates during this warning period. Visit Settings->Domains for details.

    No changes were made to the account or DNS zone file it still shows as it always did:
    [hidden] has address [hidden]
    [hidden] mail is handled by 0
    [hidden] mail is handled by 1

    Should I just ignore it or take some action, please advise.

  51. ProtonMail Support

    Please contact our support team:

  52. f

    I created a new domain address, updating to a Protonmail Plus. I sent a couple of messages with new domain, but I cannot receive nor visualize their reply.

  53. ProtonMail Support

    Please contact our support team:

  54. Anon

    for the TXT record, I’m using my but it’s not accepting it. It’s been 2 days.

  55. ProtonMail Support

    Please contact our support team:

  56. George Martinez

    I am setting up my domain at clickfunnels and I am having a bit of an issue having the MX records verified. With CF I am not able to add a priority number. I understand the challenges but getting things lined up so they can work properly with your domain is a bit of a pain; especially if you don’t fully understand the whole networking lingo.

  57. ProtonMail Support

    Please contact our Support Team:
    You can also check with your DNS provider if there’s a special formatting you need to use to add the priority or if they can help add it for you.

Comments are closed.