What is an MX record?

更新时间:
复制 MD 格式

An MX (Mail Exchanger) record is a DNS record that directs email to the correct mail server for a domain. Use the MX record values in this topic to configure Alibaba Mail.

Prerequisites

Understand the following concept before you begin: What is DNS?

MX

MX (Mail Exchanger) is a DNS record type that points to a mail server. When sending email, the sender's mail system uses MX records to locate the recipient's mail server.

Priority

Priority only matters when multiple MX records exist. The sender's mail server delivers email to the server with the lowest priority number first (lower number = higher priority). If that server is unavailable, the next server in priority order is tried until delivery succeeds or all servers fail.

Verify your MX record

Use the nslookup command-line tool to query MX records and other DNS record types.

In the Windows command prompt, run nslookup to enter interactive mode, then use set type to specify the record type.

Run the following command to verify the MX record for your domain: nslookup -qt=MX domain_name

Important

If MX records for multiple email providers exist, you may experience delivery issues. Keep only the MX records for the provider you use.

Alibaba Mail MX record values

Domain name

Record Type

Priority

Record Value

@

MX

5

mx1.qiye.aliyun.com

@

MX

10

mx2.qiye.aliyun.com

@

MX

15

mx3.qiye.aliyun.com

OR

Domain name

Record Type

Priority

Record Value

@

MX

5

mxn.mxhichina.com

@

MX

10

mxw.mxhichina.com

Add an MX record in Alibaba Cloud DNS