DNS records require you to go to your domain hosting provider to set up or manage your own http://www.aliyun.com/zixun/aggregation/33842.html ">dns server." Many domain name trustee does not support TXT record or does not support Dkim record, so you cannot use SPF and dkim function.
DNS changes will take more than 48 hours to take effect.
Domestic million network is not support Dkim, the current new network is to support SPF and DKIM
MX record
The MX record for a message is best directed to the machine a record and try not to point directly to the IP address (not conforming to the specification).
Add a record
Mail.example.com 192.168.1.100
Add MX record
example.com mail.example.com
SPF Record
SPF Records point to a host record
example.com. 3600 in TXT "V=SPF1 mx mx:mail.example.com-all"
SPF records point to IP address
example.com. 3600 in TXT "V=spf1 Ip4:192.168.1.100-all"
Dkim Records
You can obtain the dkim of a domain name by iredmail.tips, or you can enter it at the command line
# amavisd-new Showkeys
; key#1, domain example.com,/VAR/LIB/DKIM/EXAMPLE.COM.PEM
Dkim._domainkey.example.com. 3600 TXT (
"V=DKIM1; P= "
"Migfma0gcsqgsib3dqebaquaa4gnadcbiqkbgqdgnvmuqrkqyeysizqtgtm3xrzf"
"/zzhmmnpzkecvvjfak+t7e388ofgu/knyh6kbkwpzxhun5hooyvjmudqar2fcsvk"
"Z+jofj8vh3rxotla1zhdyfd7hiczxdegmqz8mjm5rjpprrgzxnpownydsd6ndj86"
"N38ifyu+jalbydlbwqidaqab")
Add the record above to the ISP's DNS records
Dkim._domainkey.example.com. V=DKIM1; P=migfma0 ... (omitted) Dlbwqidaqab
After the DNS records have been added, if the records take effect, you can run the command to detect
# amavisd-new Testkeys
Testing:dkim._domainkey.example.com => Pass