Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SPF please can someone explain to me what this means: v=spf1 a mx ~all

Tags:

spf

I'm a little confused with this in my TXT record. Can someone explain to me what it means:

v=spf1 a mx ~all
like image 388
Cameron Avatar asked Oct 15 '15 22:10

Cameron


People also ask

What is V spf1 MX all?

v=spf1 mx -allAllows the domain's servers with names that match the MX records to send email. Prohibit all other servers.

What does MX mean in SPF record?

An MX record defines the email servers to be used when a user relays email. The “MX” mechanism approves these servers automatically. The “include” mechanism: From the previous example, the sending IP address, which matches the SPF record of spf.sampledomain.com, will pass the SPF check.

Do I Need A and MX in SPF record?

Avoid using MX and A mechanisms While these lookups do not count against the SPF record DNS lookups limit, they however may increase the latency of emails delivery time. It would be more reasonable to use IP4 / IP6 mechanisms instead and include IP ranges your MX sends mails from, to save on DNS query response times.

How do you explain SPF in plain English?

What it is: SPF is an email authentication protocol that allows the owner of a domain to specify which mail servers they use to send mail from that domain. How it works: Brands sending email publish SPF records in the Domain Name System (DNS).


1 Answers

v=spf1 is the version.

a: All the A records for domain are tested. If the client IP is found among them, this mechanism matches.

mx: All the A records for all the MX records for domain are tested in order of MX priority. If the client IP is found among them, this mechanism matches.

~all: softfail Allow mail whether or not it matches the parameters in the record

Source: http://www.openspf.org/SPF_Record_Syntax

like image 155
Devon Avatar answered Nov 06 '22 16:11

Devon