Configure DNS for Alibaba Cloud Mail
This topic describes how to configure DNS records for an Alibaba Cloud domain name to use with Alibaba Cloud Mail.
If your domain name and DNS service are not provided by Alibaba Cloud, see How to configure DNS for a non-Alibaba Cloud domain name or contact your domain name service provider for assistance.
Before you begin, make sure your domain name has completed real-name registration.
Process overview:
Register domain name→Complete real-name registration→Log in to the console→Mailbox Migration (optional)→Add/Switch DNS recordsLock risk:
As of July 18, 2016,
.comand.netdomain names must complete real-name registration after purchase. Otherwise, the registry will place the domain name onServerhold, which prevents you from adding or activating DNS records.After a successful registration, a naming review is automatically submitted, taking 1 to 2 days to complete. The
Serverholdstatus is temporarily removed after the review is passed.If you do not submit the required information and pass the real-name registration review within 5 days of registration, the domain name will be locked again.
Solution: If your domain name is locked, you must complete the real-name registration process to unlock it.
Domain name resolution
Domain name resolution maps the domain name in an email address to the IP address of the corresponding mail server.
It primarily involves the following three types of records:
MX record
Definition: Specifies the mail servers that receive email for your domain name.
Priority rules (Important):
You can configure multiple MX records for a single domain name.
The lower the priority value, the higher the priority.
Sending servers first attempt to connect to the server with the highest priority (lowest number). They connect to lower-priority servers only if the higher-priority ones are unavailable.
Example: If you configure two records with a priority of
5and10, mail is always sent to the server with priority5first.
CNAME record
Use CNAME records to point subdomains to Alibaba Cloud Mail service addresses for branded access:
mail: Lets users access the webmail login page with the URL
mail.your-domain.com. For more information, see How to customize your email login address?.smtp: Lets email clients use
smtp.your-domain.comas the outgoing mail server address.imap: Lets email clients use
imap.your-domain.comas the incoming mail server address.pop3: Lets email clients use
pop3.your-domain.comas the incoming mail server address.
TXT record (SPF/DKIM/DMARC)
SPF: Declares which IP addresses are authorized to send email for your domain name. This helps prevent your messages from being marked as spam or spoofed.
DKIM/DMARC: Some recipient mail services require these records. Configure them to ensure high email deliverability.
Alibaba Cloud Mail DNS records
Standard DNS records | |||
Host record | Type | Priority | Value |
@ | MX | 5 | mx1.qiye.aliyun.com |
@ | MX | 10 | mx2.qiye.aliyun.com |
@ | MX | 15 | mx3.qiye.aliyun.com |
imap | CNAME | imap.qiye.aliyun.com | |
pop3 | CNAME | pop.qiye.aliyun.com | |
smtp | CNAME | smtp.qiye.aliyun.com | |
CNAME | qiye.aliyun.com | ||
@ | TXT | v=spf1 include:spf.qiye.aliyun.com -all | |
default._domainkey | TXT | How to get this value: Log in to the Alibaba Cloud Mail console as an administrator, go to **Domains** > **Domain Settings**, and click **View Details**. Note: If you change the encryption strength later, you must obtain the new record value and reconfigure your DNS settings. | |
_dmarc | TXT | v=DMARC1;p=none;rua=mailto:user@example.com;ruf=mailto:user@example.com Note: Replace both email addresses with an address in your organization for receiving reports from recipient mail servers. | |
Enterprise Group Mail and legacy DNS records | |||
Host record | Type | Priority | Value |
@ | MX | 5 | mxn.mxhichina.com |
@ | MX | 10 | mxw.mxhichina.com |
imap | CNAME | imap.mxhichina.com | |
pop3 | CNAME | pop3.mxhichina.com | |
smtp | CNAME | smtp.mxhichina.com | |
CNAME | mail.mxhichina.com | ||
@ | TXT | v=spf1 include:spf.qiye.aliyun.com -all | |
default._domainkey | TXT | How to get this value: Log in to the Alibaba Cloud Mail console as an administrator, go to **Domains** > **Domain Settings**, and click **View Details**. Note: If you change the encryption strength later, you must obtain the new record value and reconfigure your DNS settings. | |
_dmarc | TXT | v=DMARC1;p=none;rua=mailto:user@example.com;ruf=mailto:user@example.com Note: Replace both email addresses with an address in your organization for receiving reports from recipient mail servers. | |
Configure DNS records
Common issues and troubleshooting
Propagation time:
DNS changes can take 10 minutes to 24 hours to propagate globally, although they often take effect within 10 minutes.
DNS records not taking effect:
If the status still shows "Not effective" after you add the records, click **Refresh Status** or **Check Domain Resolution** in the console.

You can use the local command
nslookup -type=mx your domain nameto run a test.
Web page error message:
If you log in to the Alibaba Cloud Mail home page and see the error: "The MX record for the email domain is not pointing to the Enterprise Mail service, you will not be able to receive emails from external domains."
Recommended action: If local tests confirm that the MX record has propagated and you can send and receive email normally, you can ignore this message. This is likely caused by a caching delay in the UI or detection system and does not affect your email service.
DNS record conflict:
According to the DNS specification, MX records and CNAME records cannot coexist for the same hostname, such as
@. If a CNAME record for@already exists, such as one that points to a website, you must delete the CNAME record before you can add an MX record. Before you delete the record, evaluate the impact on your business services.











