All Products
Document Center

Direct Mail:Setup Domain Names

Last Updated:Oct 12, 2022

An email domain is the “ID card” when sending an email. Each account must have an email domain. During an SMTP session, the email domain is the extension of the Mail-From address. The email domain not only declares your enterprise identity, but is also used by email service providers for collecting statistics such as sending frequency, volume, and other key indicators.

New email domain

You must set up the email domain before using DirectMail.

The followings are recommended best practices for creating a new email domain:

  • Up to 5 domain names can be added; Please delete the sending address corresponding to the domain name before deleting it. There is no limit to the number of deletions.

  • Do not use meaningless domain names.

  • Use a domain name that associates with your enterprise identity.

  • Use the secondary domain name to avoid issues such as email credit rating affecting the emain domain name.

  • Create separate domain names to differentiate triggered emails and batch emails.

  • Enterprise email domains are not recommended because it may lead to exceptions in the enterprise email function. However, a sub-domain name of the enterprise domain can be used. For example, if you have an enterprise email domain called, you can use or its other sub-domains here.

  • Each main domain name and its sub-domain names can only be used by one Alibaba Cloud account. For example, if an Alibaba Cloud account use as the sender domain name for DirectMail, no other account can use this main domain name ( and its sub-domain names (such as,,, or

new domain

Enable automatic DNS resolution:

After the domain name is created, complicated domain configuration is also required. We have launched the DNS automatic resolution function to simplify your domain name configuration.

  1. The domain name to be created also belongs to Alibaba Cloud and is under the same Alibaba Cloud account with the Direct Mail service being used.

  2. The domain name to be created has not been used in other enterprise mailboxes or mail push scenarios. If there is, sub domain names can also be used.

If your domain name to be created meets the above conditions, you can log in to your AliCloud account on the current browser before creating the domain name, and then authorize Direct Mail to perform DNS resolution on your domain name to simplify your subsequent domain name configuration operations.


After the authorization is successful, you can create the domain name.

  1. Log on to the DirectMail console.

  2. In the left-side navigation pane, click Email Domains.

  3. At the upper-right corner, click New Domain.

  4. Enter your domain name in the dialog box, and then click OK.

Domain configuration

After creating a new domain name, you need to complete the necessary configuration before using it. These configuration items are the basis for ensuring that the domain name can be trusted with high quality. If you meet the conditions for enabling automatic DNS resolution and have been authorized before creating the domain name, please directly go to step 3 to verify 20 minutes after creating the domain name. For other situations, please start from step 1.

  1. On the Email Domains page, locate the created domain name and click Configure. The domain configuration information appears.domainconfigpage

  • Domain ownership verification

    DirectMail assigns a unique random identifier to each domain to prevent the domain from being compromised.

  • SPF verification

    SPF is a type of DNS record type proposed to prevent spam emails. It is used to register all the IP addresses owned by a domain for sending emails.

  • MX verification

    The email route record points to an email server. It is used to locate the email server based on the recipient’s address extension when the email system sends an email.

  • CNAME verification

    CNAME is the link navigation record and an optional configuration item. It is used to help you collect the opening and clicking tracing data for emails sent.

  1. Go to your domain DNS server and correctly configure the domain according to the domain configuration information.

  2. After the configuration is completed, go back to the Alibaba Cloud DirectMail console, go to the Email Domains page, and click Verify. Alternatively, you can wait for the system to update the configuration automatically.

If the email domain status is displayed as Verification successful or Available - CNAME not verified, it can be used to create a sender address.

If the email domain status is displayed as Verification successful, you can enable the email data tracking feature.

Once the sending domain name is verified, please carefully modify, delete and change the configuration value of DNS resolution under this domain name; In case of accidental change, please revalidate the sending domain name in a timely manner, otherwise it may cause spam problems and be banned by the system. In this case, the ban will not be lifted in principle.

Note: You must configure the domain correctly. The SPF and MX resolution must always point to the DirectMail server address, otherwise it will cause failures during email delivery.

For domain configuration examples, see How to configure domains on DNS servers?