Configure a sender domain
Add a sender domain in the Alibaba Cloud DirectMail console and configure the required DNS records at your DNS provider to verify domain ownership and enable email delivery.
A sender domain identifies the source of your emails and is required for every DirectMail account. During an SMTP session, the sender domain appears as the suffix of the Mail-From address. Email service providers use it to track sending frequency and volume.
If your domain is already used for another enterprise email service or email delivery product, use a subdomain or register a new domain before proceeding.
Domains containing characters other than English letters or Pinyin—including Chinese-character domains—are not supported.
Add a domain
Go to the Sender Domains page and click Add Domain.

-
Enter your domain name and click OK.
NoteThe domain
alisample.comis used as an example. Replace it with your actual sender domain.If you enter
alisample.com, it is treated as a primary domain. If you enterabc.alisample.com, it is treated as a subdomain. The configuration steps differ between primary domains and subdomains, as described below.
On the Sender Domains page, find your domain and click Configure. Follow the on-screen instructions to add the required DNS records at your DNS provider.


Configure the domain
Method 1: Automatic DNS record configuration
-
Use this method only if your domain meets all three of the following conditions:
a. The domain was purchased from Alibaba Cloud and belongs to the same account as your DirectMail service.
b. The domain is not already used for another enterprise email service or email delivery service. If it is, use a subdomain instead.
c. This feature is available only in the China (Shanghai) region.
Log in to the appropriate Alibaba Cloud account and click Authorize DirectMail to perform DNS resolution for your domain.
Method 2: Manual DNS record configuration
Example 1: Alibaba Cloud DNS
If your domain was purchased from Alibaba Cloud or has been transferred to Alibaba Cloud, add the six required DNS records in the domain name console.
The procedure is similar for other DNS providers. Contact your provider for assistance.
Go to the domain name console, find the domain to configure, and click DNS Settings.

In the DirectMail console, go to Sender Domains > Configure to get the required record values. Add each value to your DNS settings.

DNS record configuration results


A domain can have only one SPF record. If you have multiple outgoing IP addresses, merge them into a single record.
Record value syntax examples:
Two domains: v=spf1 include:spf.qiye.aliyun.com include:spf1.dm.aliyun.com -all
Domain + IP address: v=spf1 include:spf.qiye.aliyun.com ip4:x.x.x.x -all
Domain + IP address range (use with caution): v=spf1 include:spf.qiye.aliyun.com ip4:x.x.x.x/24 -all
Use ip4 instead of ipv4.
Do not use a domain for DirectMail if it is already used for an enterprise email service—this causes conflicts that disrupt your email flow. Use a subdomain for email delivery instead.
Example 2: GoDaddy
-
Add the DNS record values shown on the Configure page (from step 3 of "Add a domain").
a. Log in to your GoDaddy account.
b. Go to the domains page, find the domain to configure, and click Manage DNS.
c. On the DNS Management page, click Add. Add each record from the DirectMail console, then click Add Record.
NoteAlways use the record values displayed in your console. The values below are for illustration only.
TXT record (ownership verification)
Type: TXT
Host: aliyundm
Value: e000a000b000c000d9
NoteFor a subdomain such as
abc.alisample.com, enteraliyundm.abcas the host record.TXT record (SPF verification)
Type: TXT
Host: @
Value: v=spf1 include:spf1.dm.aliyun.com -all
NoteFor a subdomain such as
abc.alisample.com, enterabcas the host record.MX record
Type: MX
Host: @
Value: mx01.dm.aliyun.com
NoteFor a subdomain such as
abc.alisample.com, enterabcas the host record. After adding the records, wait for DNS propagation to complete. Return to the Sender Domains page and click Verify. Setup is complete when the status changes to Verified.


DNS changes typically take effect within 4 hours but can take up to 48 hours to fully propagate. Check your DNS provider's documentation for their specific propagation times.
For newly added domains, verification requires SPF, DKIM, DMARC, and MX records to all pass. For previously added domains, only the ownership, SPF, and MX records need to pass.
If the domain status does not change to Verified after an extended period, click Verify again to trigger a manual check.
To confirm your configuration is live using the
digcommand, see Verify that the DNS records for a domain have taken effect.
To remove a sender domain you no longer need, delete it from the console and remove its DNS records.



