How to add TXT text records for domain names, introducing SPF records and online generation

Source: Internet
Author: User
Tags mx record sender policy framework

An email server was set up early to learn about SPF. At that time, a TXT record was added to the domain name, which was added to the domain name registrar multiple times (now you can add it on the domain name Control Panel ); today, I used an open-source email system to create a mailserver for the company. When I added a TXT record to the domain name, I forgot how to generate a standard SPF and perform some searches;

Adding an spf txt record to your own MAIL domain name is very important:

The 1.163..com, QQ. COM, and sina.com email servers query txt records of emails sent from other mailservers. If SPF is not performed, emails are rejected or spam.

2. Increase the security of your own domain name to prevent spam by someone impersonating your domain name.

Write down the SPF generation method, so that you do not need to look for it in the future;

About SPF records:

SPF refers to the Sender Policy Framework (Sender Policy architecture), which is usually called SPF directly. In the domain name management system, make a txt record in SPF format for the domain name, that is, the SPF record.

SPF is a DNS record type proposed to prevent spam. It is a TXT record used to register all IP addresses owned by a domain name for external mail. Example: dig TXT liehuo.org

Liehuo.org. 27970 in txt "v = spf1 ip4: 127.0.0.1-all"

Adding a TXT record to the DNS record in SPF format will increase the credibility of the domain name and prevent spam from spoofing the sender of the domain.

SPF is a DNS-related technology. Its content is written in the txt record of DNS. The mx record is used to indicate to the sender the mail server of a domain name. SPF is opposite to mx. It indicates to the recipient which email servers will send emails after a domain name is approved.

SPF is mainly used for anti-spam, preventing spam emails from email senders forging domain names.

How to quickly generate TXT records in SPF format: Use web tools to generate: http://old.openspf.org/wizard.html? Mydomain = liehuo.org & submit = Go!

Write your domain name in that box

A: yes is generally used for the record of your domain name, because he may send an email.

Mx is usually yes, And the MX Server will return a message.

Ptr: no, officially recommended.

A: Are there other second-level domain names? For example, if bbs.liehuo.org and www are not on one server, enter bbs.riril.com. Otherwise, empty it.

Mx: Generally, there will be no other mx records.

Ip4: Do you have any other ip addresses to send emails? If your smtp server is independent, enter your IP address or network segment.

Include: if an isp may be used to send a mail, which has its own SPF record, enter the domain name of this isp, such as 126.com.

~ All: Except the above, none of them agree. Yes, of course.

Okay, click Continue .....

An SPF record is automatically generated. For example

V = "v = spf1 ip4: 127.0.0.1 a mx ~ All"

Then, on the domain name control panel, add a TXT record for resolution.

For example

MX priority and TTL are set by default.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.