How to create an SPF record

An SPF (Sender Policy Framework) record is a type of DNS record that is used to help prevent email spoofing. Email spoofing is when an attacker sends an email that appears to be from a legitimate sender, but is actually fraudulent. The SPF record is used to specify which mail servers are authorized to send emails on behalf of a domain.

When an email is received by a mail server, the server checks the SPF record of the domain that the email claims to be sent from. If the server that sent the email is not listed in the SPF record, the email may be marked as spam or rejected.

Having an SPF record can help protect your domain from being used in email spoofing attacks and can improve the deliverability of your legitimate emails. It is a good idea to set up an SPF record for your domain if you send email from your own servers or use a third-party email service. This can help ensure that your emails are more likely to be delivered to your recipients and not marked as spam.

Create an SPF record

  1. Log in to the control panel for your domain DNS host.

  2. Create a TXT record with the following specifications. 

    v=spf1 include:emailsrvr.com ~all

    In addition to validating the original source of the message, these signatures ensure that the message has not been altered in transit by any third parties.

  3. Decide how you want to enforce SPF failures.

    • ~all will result in a soft fail (Not authorized, but not explicitly unauthorized).
    • -all will result in a hard fail (Unauthorized).
    • ?all is neutral (As if there is no policy at all).

    Enter your choice after v=spf1 include:emailsrvr.com, and then save your changes.

  4. Authorize additional mail servers by adding their IP or server name after include:.

    • For example:
    Type Hostname Destination TTL
    TXT @ v=spf1 include:emailsrvr.com include:othermailer.com ~all 3600
  5. Save your changes.

TXT SPF Record

  • 2398 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

What is DNSSEC?

Domain Name System (DNS) The Domain Name System (DNS) is a distributed database, arranged...

Identifying New gTLD Extensions

Thexyz offers registration of Domain Names under various New gTLD extensions. TLDs in General...

Setup your own domain to use Thexyz Email

Professional Email Hosting With Your Own Domain How to set up a custom domain email address...

How to modify the Whois contact details of Domain Names

If you have a domain name registered then you will also need to supply accurate contact...

Whois Data Reminders

Thexyz sends an email to the Registrant of a domain name (under the extensions listed below) 6...