No KYC: one verified email, no ID · Paid in crypto: BTC, USDT, USDC, ETH, SOL, LTC · .com $12.49/year, same price every year
Language: English
Find your address

Guide · checked 12 November 2026

What is an MX record?

The MX record is the line in DNS that decides where your email goes. Change it and your address follows you to a new provider.

Last updated: · 7 min read

Quick answer

What is an MX record?

An MX record is a DNS record that names the mail server accepting email for a domain, with a priority number: the lowest number is tried first. With Postelva, you edit the MX records of your domain in a free DNS editor, for example mail.protonmail.ch at priority 10 and mailsec.protonmail.ch at priority 20.

MX records of three providers, read on their help pages

Values checked on 12 November 2026. Tuta, iCloud+, Migadu and Zoho Mail show their MX values in their own setup screen: copy them from there.
ProviderMX hostPriority
Proton Mailmail.protonmail.ch10
Proton Mailmailsec.protonmail.ch20
Fastmailin1-smtp.messagingengine.com10
Fastmailin2-smtp.messagingengine.com20
Mailbox.orgmxext1.mailbox.org, mxext2.mailbox.org, mxext3.mailbox.org, mxext4.mailbox.org10 each (use 10, 20, 30, 40 if your DNS host refuses equal priorities)

Last checked on ; older figures carry their own date

How does an MX record work?

A sending mail server asks DNS for the MX records of the part after the @, sorts them by priority and tries them in that order. When someone writes to [email protected], their server looks up the MX records of yourname.com. Each record holds two values: a priority number and the name of a mail host.

RFC 5321, the SMTP standard, says the preference value must be used in sorting, that lower numbers are tried first, and that hosts with an equal preference are picked in random order. A sender tries at least two addresses in turn until one accepts the message.

The MX record does not hold the mailbox. It only points to the machine of your email provider, which stores the message. This is why your address is portable: you buy the domain once, and you change the MX records when you move from one provider to another. The mailbox changes, the address does not. The page on the custom email domain explains the idea in full.

What does the priority number mean?

The priority number sets the order of delivery: the server with the lowest number receives the mail first, and the next one is a fallback. The number has no unit and no meaning outside the comparison between your own records. 10 and 20 work exactly like 1 and 2.

Proton Mail uses two records: mail.protonmail.ch at 10 and mailsec.protonmail.ch at 20. Fastmail also uses 10 and 20 on in1-smtp.messagingengine.com and in2-smtp.messagingengine.com. Mailbox.org lists four hosts, mxext1 to mxext4, at the same priority 10, so a sender picks one at random; if your DNS host refuses identical priorities, Mailbox.org says to use 10, 20, 30 and 40.

One rule saves many lost messages: keep only the MX records of your current provider. Fastmail and Proton both warn that an old provider's MX left in place makes delivery unpredictable, because a sender may choose it. The only safe overlap is to give the new host the lowest priority number.

What happens if a domain has no MX record?

Without any MX record, a sender falls back to the address record of the domain itself, as if the domain had an MX of priority 0 pointing to its own A or AAAA record. RFC 5321 calls this the implicit MX. The fallback applies only when no MX record exists at all: as soon as one MX record is published, senders must not use the A or AAAA records of the domain.

For a domain that you do not use for email, the fallback is a nuisance. Senders keep trying to deliver to your web server, typically for days, and the sender only learns of the failure late. A null MX closes the door at once.

What is a null MX record?

A null MX is a single MX record with priority 0 and a dot as the target, and it declares that the domain accepts no email at all. It is defined in RFC 7505. With a null MX, a sending server fails the delivery on the first attempt and does not queue the message for days.

RFC 7505 sets two rules. A domain that publishes a null MX must not publish any other MX record, so the null MX is alone. And a domain that sends mail from its own addresses must not use a null MX, because receivers may reject its messages. Use it only for a name that neither sends nor receives, such as a domain you keep for a redirect or a defensive registration. The record looks like this in zone-file notation:

Null MX (RFC 7505) and a normal pair of MX records
; domain that receives no email
example.com.  IN  MX  0  .

; domain hosted at Proton Mail
example.com.  IN  MX  10  mail.protonmail.ch.
example.com.  IN  MX  20  mailsec.protonmail.ch.

Can an MX record point to an IP address or a CNAME?

No: the target of an MX record is a host name that resolves to an A or AAAA record, never a bare IP address. RFC 5321 also leaves a target that resolves through a CNAME outside its scope, so the safe choice is to point the MX straight at a host that owns its address records. Providers publish the right host names, as in the table above.

The host name in an MX is not a web address. mail.protonmail.ch is a receiving server; opening it in a browser tells you nothing. The same goes for the end of the name: in a zone file the trailing dot marks a complete name, while many DNS editors add the dot for you, so copy the value exactly as your provider shows it.

How do I add or change MX records on my domain?

Open the DNS editor of the domain, delete the MX records of the previous provider and add the new ones with their priorities. Postelva gives every domain free DNS hosting with MX, TXT, CNAME and the other record types, and one-click DNS templates for Proton Mail, Fastmail, Zoho Mail, Google Workspace and Microsoft 365, plus an SPF + DMARC template and a "no email" template for a domain that sends nothing. For Tuta, Mailbox.org, iCloud+ and Migadu there is no one-click template: you type the MX, TXT and CNAME records in the DNS editor from the values your provider displays.

Before a move, lower the TTL of the old MX records. The time a change takes to spread is about the old TTL on the record at the moment you change it, and vendor guidance puts the usual delay for an MX change at one to four hours, sometimes up to 48. The step-by-step order is in the guide to moving email to a new provider without losing mail. After the change, check your MX, SPF, DKIM and DMARC records with a lookup. For a provider walk-through, start with the Proton Mail custom domain setup.

Is MX enough to receive email reliably?

No: MX decides where mail arrives, but SPF, DKIM and DMARC decide whether other servers trust the mail you send. A domain with correct MX records receives email, and a message you send from it may still land in spam without the three authentication records. They are explained side by side in SPF vs DKIM vs DMARC.

According to Postelva's count of 12 November 2026 on the providers whose help pages it read, Proton Mail and Fastmail each use 2 MX hosts and Mailbox.org uses 4. A complete Proton Mail setup is then 8 records in all: 1 verification TXT, 2 MX, 1 SPF, 3 DKIM and 1 DMARC.

A citable summary: an MX record tells the world which server receives the email of a domain, and changing it is the one step that moves an address between providers. Postelva sells the domain and its DNS; the mailbox stays with your email provider.

MX record questions

How many MX records should a domain have?

One null MX if the domain receives nothing, otherwise the number your provider lists: two for Proton Mail and Fastmail, four for Mailbox.org. Two or more gives senders a fallback.

Does the order of MX records in the DNS editor matter?

No. Senders sort by the priority number, not by the order of display. Only the number decides which host is tried first.

How long does an MX change take?

Vendor guidance puts a typical MX change at one to four hours and the upper bound at 24 to 48 hours. It depends on the TTL the old record had when you changed it.

Can two providers receive mail for one domain?

Only with a deliberate setup, because senders choose among the MX hosts by priority. Mixing the MX hosts of two providers by accident makes delivery unpredictable, so keep one provider's records.

Do I need an MX record to send email?

No for the sending itself, since sending uses SPF and DKIM. You need an MX to receive replies and bounce messages.

In summary
  • An MX record names the mail server of a domain and carries a priority number.
  • The lowest priority number is tried first (RFC 5321); equal numbers are picked at random.
  • With no MX at all, senders fall back to the A or AAAA record of the domain.
  • A null MX (RFC 7505) is one record, priority 0 and a dot, for a domain that accepts no email.
  • Proton Mail uses mail.protonmail.ch (10) and mailsec.protonmail.ch (20); Fastmail uses in1-smtp (10) and in2-smtp (20).
  • Keep only your current provider's MX records.
  • Postelva gives free DNS with MX, TXT and CNAME records; a .com costs $12.49/year, the same every year.
Sources (5)
  1. RFC 5321, Simple Mail Transfer Protocol, section 5.1 — RFC Editor (read 2026-11-12)
  2. RFC 7505, A "Null MX" No Service Resource Record — RFC Editor (read 2026-11-12)
  3. Remove old MX records when switching (Fastmail help) — Fastmail (read 2026-11-12)
  4. Custom domain and anti-spoofing (Proton support) — Proton (read 2026-11-12)
  5. SPF, DKIM and DMARC for a custom domain (Mailbox.org knowledge base) — Mailbox.org (read 2026-11-12)

.com $12.49/year · no KYC · crypto

Find your address