Email systems, such as Gmail, strictly check Sender Policy Framework (SPF) records of domain names. To prevent bounced emails, you must configure an SPF record for your domain name. This topic describes how to complete the configuration in four steps.
Steps
1. Log on to Alibaba Cloud DNS. If your domain name was not purchased from Alibaba Cloud, the following screenshots may not apply. In this case, send this document to your domain name service provider (SP) for assistance with the configuration.
2. Add an SPF record.
a. In the list, find your mailbox domain name and click DNS Settings.

b. On the DNS Settings page, click Add Record. Configure the parameters and click Confirm.

Record Type: TXT
Host: @
Record value: v=spf1 include the following:spf.qiye.aliyun.com -all
Note that the spaces in the record value are required.
3. Delete other SPF records
A domain name cannot have multiple SPF records because this can cause conflicts. Make sure that you keep only the record that you added in Step 2. If no other SPF records exist, you can skip this step.
Delete other SPF records that have Host set to @ and a Value that starts with "v=spf".
For example:

4. Wait for the SPF record to propagate globally
The new SPF record can take up to 48 hours to propagate globally. After this period, test your configuration to ensure that emails are not bounced by services such as Gmail.
Note:
If you already have an SPF record with the value v=spf1 include the following:spf1.dm.aliyun.com -all, change the record value in Step 2 to v=spf1 include the following:spf.qiye.aliyun.com include the following:spf1.dm.aliyun.com -all. If you do not have this record, you can ignore this note.