SPF Record Fails - How to verify Server IP Address and managing multiple SPF records [duplicate]What are SPF records, and how do I configure them?Failed reverse DNS and SPF only when using Thunderbird!What are SPF records, and how do I configure them?Where to set up MX and SPF records on sendMail or google apps mail serverWhat are the correct SPF records to allow both local and Google Apps deliverySPF TXT records - do I need to include sub domains for an outsourced sender SPF recordHow to setup correct SPF recordCombining multiple SPF records - SenderID - kind of lostProper Setup of SPF RecordHow to Properly Set SPF RecordHow do I configure an SPF record to allow all hostnames (A records) under my domain?
What is the line crossing the Pacific Ocean that is shown on maps?
What does grep -v "grep" mean and do?
Generate and graph the Recamán Sequence
How hard is it to sell a home which is currently mortgaged?
UV emitting alien species
Does a centaur PC also count as being mounted?
Alphabet completion rate
What is the olden name for sideburns?
Which ticket do I need to travel by both RER and tram in Paris?
Why did this meteor appear cyan?
In native German words, is Q always followed by U, as in English?
One folder two different locations on ubuntu 18.04
Do 3D printers really reach 50 micron (0.05 mm) accuracy?
Symbol for "not absolutely continuous" in Latex
Why isn’t the tax system continuous rather than bracketed?
Are there any vegetarian astronauts?
What is a macro? Difference between macro and function?
Can a single server be associated with multiple domains?
Hit Pipe with Mower and now it won't turn
Why does this function call behave sensibly after calling it through a typecasted function pointer?
Does the UK have a written constitution?
Did Wakanda officially get the stuff out of Bucky's head?
Do I need a visa for Singapore if I have an Australian PR?
Should I report a leak of confidential HR information?
SPF Record Fails - How to verify Server IP Address and managing multiple SPF records [duplicate]
What are SPF records, and how do I configure them?Failed reverse DNS and SPF only when using Thunderbird!What are SPF records, and how do I configure them?Where to set up MX and SPF records on sendMail or google apps mail serverWhat are the correct SPF records to allow both local and Google Apps deliverySPF TXT records - do I need to include sub domains for an outsourced sender SPF recordHow to setup correct SPF recordCombining multiple SPF records - SenderID - kind of lostProper Setup of SPF RecordHow to Properly Set SPF RecordHow do I configure an SPF record to allow all hostnames (A records) under my domain?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
This question already has an answer here:
What are SPF records, and how do I configure them?
2 answers
I'm trying to verify the mail sent by our server. With our current DNS settings, sending mail from our server shows an SPF Neutral response.
I tried adding a combination of my server's IP and Domain.
v=spf1 a mx ipv4:XXX.XX.XXX.XX -all
v=spf1 include:mydomain.com -all
Both these records showed no change, all mail sent from the server was still Neutral. So I tried combining all my existing SPF records like so:
v=spf1 a mx include:mydomain.com ipv4:XXX.XX.XXX.XX include:cmail1.com include:mail.zendesk.com -all
I tested sending mail again and now get a SPF Fail response.
I've looked extensively online and I can't see how to fix my DNS entries so I can get a PASS on the SPF records. I don't know if I need additional CNAME, A, MX, or I'm missing something entirely.
I'm using a Plesk server with a fixed IPv4 address and using CloudFlare to manage my DNS and Name Servers.
Here is what a full fail response looks like:
SPF: FAIL with IP XXX.XX.XXX.XX
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
Received-SPF: fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) client-ip=XXX.XX.XXX.XX;
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
spf mx-record cname-record
marked as duplicate by Jenny D, Thomas, Ward♦ Jun 13 at 4:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
What are SPF records, and how do I configure them?
2 answers
I'm trying to verify the mail sent by our server. With our current DNS settings, sending mail from our server shows an SPF Neutral response.
I tried adding a combination of my server's IP and Domain.
v=spf1 a mx ipv4:XXX.XX.XXX.XX -all
v=spf1 include:mydomain.com -all
Both these records showed no change, all mail sent from the server was still Neutral. So I tried combining all my existing SPF records like so:
v=spf1 a mx include:mydomain.com ipv4:XXX.XX.XXX.XX include:cmail1.com include:mail.zendesk.com -all
I tested sending mail again and now get a SPF Fail response.
I've looked extensively online and I can't see how to fix my DNS entries so I can get a PASS on the SPF records. I don't know if I need additional CNAME, A, MX, or I'm missing something entirely.
I'm using a Plesk server with a fixed IPv4 address and using CloudFlare to manage my DNS and Name Servers.
Here is what a full fail response looks like:
SPF: FAIL with IP XXX.XX.XXX.XX
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
Received-SPF: fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) client-ip=XXX.XX.XXX.XX;
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
spf mx-record cname-record
marked as duplicate by Jenny D, Thomas, Ward♦ Jun 13 at 4:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
What is the TTL on your DNS records look like? how long did you wait to test after making the changes?
– Zypher
Jun 14 '17 at 2:51
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working. Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
– Maurice
Jun 14 '17 at 3:28
1
damn, i totally missed that too. If you put that as a self-answer it'll help others who come by later see it :)
– Zypher
Jun 14 '17 at 3:35
add a comment |
This question already has an answer here:
What are SPF records, and how do I configure them?
2 answers
I'm trying to verify the mail sent by our server. With our current DNS settings, sending mail from our server shows an SPF Neutral response.
I tried adding a combination of my server's IP and Domain.
v=spf1 a mx ipv4:XXX.XX.XXX.XX -all
v=spf1 include:mydomain.com -all
Both these records showed no change, all mail sent from the server was still Neutral. So I tried combining all my existing SPF records like so:
v=spf1 a mx include:mydomain.com ipv4:XXX.XX.XXX.XX include:cmail1.com include:mail.zendesk.com -all
I tested sending mail again and now get a SPF Fail response.
I've looked extensively online and I can't see how to fix my DNS entries so I can get a PASS on the SPF records. I don't know if I need additional CNAME, A, MX, or I'm missing something entirely.
I'm using a Plesk server with a fixed IPv4 address and using CloudFlare to manage my DNS and Name Servers.
Here is what a full fail response looks like:
SPF: FAIL with IP XXX.XX.XXX.XX
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
Received-SPF: fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) client-ip=XXX.XX.XXX.XX;
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
spf mx-record cname-record
This question already has an answer here:
What are SPF records, and how do I configure them?
2 answers
I'm trying to verify the mail sent by our server. With our current DNS settings, sending mail from our server shows an SPF Neutral response.
I tried adding a combination of my server's IP and Domain.
v=spf1 a mx ipv4:XXX.XX.XXX.XX -all
v=spf1 include:mydomain.com -all
Both these records showed no change, all mail sent from the server was still Neutral. So I tried combining all my existing SPF records like so:
v=spf1 a mx include:mydomain.com ipv4:XXX.XX.XXX.XX include:cmail1.com include:mail.zendesk.com -all
I tested sending mail again and now get a SPF Fail response.
I've looked extensively online and I can't see how to fix my DNS entries so I can get a PASS on the SPF records. I don't know if I need additional CNAME, A, MX, or I'm missing something entirely.
I'm using a Plesk server with a fixed IPv4 address and using CloudFlare to manage my DNS and Name Servers.
Here is what a full fail response looks like:
SPF: FAIL with IP XXX.XX.XXX.XX
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
Received-SPF: fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) client-ip=XXX.XX.XXX.XX;
spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com
This question already has an answer here:
What are SPF records, and how do I configure them?
2 answers
spf mx-record cname-record
spf mx-record cname-record
asked Jun 14 '17 at 2:46
MauriceMaurice
1263 bronze badges
1263 bronze badges
marked as duplicate by Jenny D, Thomas, Ward♦ Jun 13 at 4:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Jenny D, Thomas, Ward♦ Jun 13 at 4:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
What is the TTL on your DNS records look like? how long did you wait to test after making the changes?
– Zypher
Jun 14 '17 at 2:51
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working. Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
– Maurice
Jun 14 '17 at 3:28
1
damn, i totally missed that too. If you put that as a self-answer it'll help others who come by later see it :)
– Zypher
Jun 14 '17 at 3:35
add a comment |
1
What is the TTL on your DNS records look like? how long did you wait to test after making the changes?
– Zypher
Jun 14 '17 at 2:51
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working. Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
– Maurice
Jun 14 '17 at 3:28
1
damn, i totally missed that too. If you put that as a self-answer it'll help others who come by later see it :)
– Zypher
Jun 14 '17 at 3:35
1
1
What is the TTL on your DNS records look like? how long did you wait to test after making the changes?
– Zypher
Jun 14 '17 at 2:51
What is the TTL on your DNS records look like? how long did you wait to test after making the changes?
– Zypher
Jun 14 '17 at 2:51
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working. Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
– Maurice
Jun 14 '17 at 3:28
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working. Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
– Maurice
Jun 14 '17 at 3:28
1
1
damn, i totally missed that too. If you put that as a self-answer it'll help others who come by later see it :)
– Zypher
Jun 14 '17 at 3:35
damn, i totally missed that too. If you put that as a self-answer it'll help others who come by later see it :)
– Zypher
Jun 14 '17 at 3:35
add a comment |
2 Answers
2
active
oldest
votes
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working.
Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
add a comment |
While fixing your single syntax error (ipv4
instead of ip4
) seems to have fixed your problem, it's still not the only problem with your SPF record. That's why it's always a good idea to read the official documentation to understand the issue.
The first one you figured out already in your question by trial and error, but RFC 7208 3.2 is the source that tells it clearly: you should combine your SPF rules for a single hostname as a single
TXT
record.
A domain name MUST NOT have multiple records that would cause an authorization check to select more than one record.
You should understand what the
include
mechanism actually does: the specified domain is searched for a match i.e. looked for more SPF rules. Yourinclude:mydomain.com
suggests that you try use it likea
mechanism. If this is inmydomain.com. TXT
, it's a reference that tries to include self!You should also revise all your other
include
s and see that they actually have an SPF record. You should onlyinclude
existing records.
Warning: If the domain does not have a valid SPF record, the result is
a permanent error. Some mail receivers will reject based on a
PermError
.If your
a
ormx
resolves to the same IP address thanip4
they are unnecessary and should be removed. List a server only once.
Ultimately, SPF lookups resolve to an IP address.
If the server's IP rarely changes, consider using the
ip4:x.x.x.x
(or
ip6
) notation so recipients can avoid DNS lookups entirely. Since
there is a limit of 10 DNS lookups per SPF record, specifying an IP
address or address range is preferable for long lists of outgoing mail
servers.
Often an SPF record can be condensed down to something like
v=spf1 ip4:x.x.x.x -all
if there is only one outgoing mail server.
Reading through both the linked articles for SPF syntax and common mistakes is a really good overview of the whole subject. The linked RFC adds all the technical details, if you are also interested in how it works.
Great points, thank you Esa. I did remove the mydomain.com include as I realised fairly quickly this was totally wrong.
– Maurice
Jun 16 '17 at 4:04
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working.
Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
add a comment |
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working.
Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
add a comment |
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working.
Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working.
Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
answered Jun 14 '17 at 3:36
MauriceMaurice
1263 bronze badges
1263 bronze badges
add a comment |
add a comment |
While fixing your single syntax error (ipv4
instead of ip4
) seems to have fixed your problem, it's still not the only problem with your SPF record. That's why it's always a good idea to read the official documentation to understand the issue.
The first one you figured out already in your question by trial and error, but RFC 7208 3.2 is the source that tells it clearly: you should combine your SPF rules for a single hostname as a single
TXT
record.
A domain name MUST NOT have multiple records that would cause an authorization check to select more than one record.
You should understand what the
include
mechanism actually does: the specified domain is searched for a match i.e. looked for more SPF rules. Yourinclude:mydomain.com
suggests that you try use it likea
mechanism. If this is inmydomain.com. TXT
, it's a reference that tries to include self!You should also revise all your other
include
s and see that they actually have an SPF record. You should onlyinclude
existing records.
Warning: If the domain does not have a valid SPF record, the result is
a permanent error. Some mail receivers will reject based on a
PermError
.If your
a
ormx
resolves to the same IP address thanip4
they are unnecessary and should be removed. List a server only once.
Ultimately, SPF lookups resolve to an IP address.
If the server's IP rarely changes, consider using the
ip4:x.x.x.x
(or
ip6
) notation so recipients can avoid DNS lookups entirely. Since
there is a limit of 10 DNS lookups per SPF record, specifying an IP
address or address range is preferable for long lists of outgoing mail
servers.
Often an SPF record can be condensed down to something like
v=spf1 ip4:x.x.x.x -all
if there is only one outgoing mail server.
Reading through both the linked articles for SPF syntax and common mistakes is a really good overview of the whole subject. The linked RFC adds all the technical details, if you are also interested in how it works.
Great points, thank you Esa. I did remove the mydomain.com include as I realised fairly quickly this was totally wrong.
– Maurice
Jun 16 '17 at 4:04
add a comment |
While fixing your single syntax error (ipv4
instead of ip4
) seems to have fixed your problem, it's still not the only problem with your SPF record. That's why it's always a good idea to read the official documentation to understand the issue.
The first one you figured out already in your question by trial and error, but RFC 7208 3.2 is the source that tells it clearly: you should combine your SPF rules for a single hostname as a single
TXT
record.
A domain name MUST NOT have multiple records that would cause an authorization check to select more than one record.
You should understand what the
include
mechanism actually does: the specified domain is searched for a match i.e. looked for more SPF rules. Yourinclude:mydomain.com
suggests that you try use it likea
mechanism. If this is inmydomain.com. TXT
, it's a reference that tries to include self!You should also revise all your other
include
s and see that they actually have an SPF record. You should onlyinclude
existing records.
Warning: If the domain does not have a valid SPF record, the result is
a permanent error. Some mail receivers will reject based on a
PermError
.If your
a
ormx
resolves to the same IP address thanip4
they are unnecessary and should be removed. List a server only once.
Ultimately, SPF lookups resolve to an IP address.
If the server's IP rarely changes, consider using the
ip4:x.x.x.x
(or
ip6
) notation so recipients can avoid DNS lookups entirely. Since
there is a limit of 10 DNS lookups per SPF record, specifying an IP
address or address range is preferable for long lists of outgoing mail
servers.
Often an SPF record can be condensed down to something like
v=spf1 ip4:x.x.x.x -all
if there is only one outgoing mail server.
Reading through both the linked articles for SPF syntax and common mistakes is a really good overview of the whole subject. The linked RFC adds all the technical details, if you are also interested in how it works.
Great points, thank you Esa. I did remove the mydomain.com include as I realised fairly quickly this was totally wrong.
– Maurice
Jun 16 '17 at 4:04
add a comment |
While fixing your single syntax error (ipv4
instead of ip4
) seems to have fixed your problem, it's still not the only problem with your SPF record. That's why it's always a good idea to read the official documentation to understand the issue.
The first one you figured out already in your question by trial and error, but RFC 7208 3.2 is the source that tells it clearly: you should combine your SPF rules for a single hostname as a single
TXT
record.
A domain name MUST NOT have multiple records that would cause an authorization check to select more than one record.
You should understand what the
include
mechanism actually does: the specified domain is searched for a match i.e. looked for more SPF rules. Yourinclude:mydomain.com
suggests that you try use it likea
mechanism. If this is inmydomain.com. TXT
, it's a reference that tries to include self!You should also revise all your other
include
s and see that they actually have an SPF record. You should onlyinclude
existing records.
Warning: If the domain does not have a valid SPF record, the result is
a permanent error. Some mail receivers will reject based on a
PermError
.If your
a
ormx
resolves to the same IP address thanip4
they are unnecessary and should be removed. List a server only once.
Ultimately, SPF lookups resolve to an IP address.
If the server's IP rarely changes, consider using the
ip4:x.x.x.x
(or
ip6
) notation so recipients can avoid DNS lookups entirely. Since
there is a limit of 10 DNS lookups per SPF record, specifying an IP
address or address range is preferable for long lists of outgoing mail
servers.
Often an SPF record can be condensed down to something like
v=spf1 ip4:x.x.x.x -all
if there is only one outgoing mail server.
Reading through both the linked articles for SPF syntax and common mistakes is a really good overview of the whole subject. The linked RFC adds all the technical details, if you are also interested in how it works.
While fixing your single syntax error (ipv4
instead of ip4
) seems to have fixed your problem, it's still not the only problem with your SPF record. That's why it's always a good idea to read the official documentation to understand the issue.
The first one you figured out already in your question by trial and error, but RFC 7208 3.2 is the source that tells it clearly: you should combine your SPF rules for a single hostname as a single
TXT
record.
A domain name MUST NOT have multiple records that would cause an authorization check to select more than one record.
You should understand what the
include
mechanism actually does: the specified domain is searched for a match i.e. looked for more SPF rules. Yourinclude:mydomain.com
suggests that you try use it likea
mechanism. If this is inmydomain.com. TXT
, it's a reference that tries to include self!You should also revise all your other
include
s and see that they actually have an SPF record. You should onlyinclude
existing records.
Warning: If the domain does not have a valid SPF record, the result is
a permanent error. Some mail receivers will reject based on a
PermError
.If your
a
ormx
resolves to the same IP address thanip4
they are unnecessary and should be removed. List a server only once.
Ultimately, SPF lookups resolve to an IP address.
If the server's IP rarely changes, consider using the
ip4:x.x.x.x
(or
ip6
) notation so recipients can avoid DNS lookups entirely. Since
there is a limit of 10 DNS lookups per SPF record, specifying an IP
address or address range is preferable for long lists of outgoing mail
servers.
Often an SPF record can be condensed down to something like
v=spf1 ip4:x.x.x.x -all
if there is only one outgoing mail server.
Reading through both the linked articles for SPF syntax and common mistakes is a really good overview of the whole subject. The linked RFC adds all the technical details, if you are also interested in how it works.
answered Jun 14 '17 at 6:09
Esa JokinenEsa Jokinen
25k2 gold badges36 silver badges62 bronze badges
25k2 gold badges36 silver badges62 bronze badges
Great points, thank you Esa. I did remove the mydomain.com include as I realised fairly quickly this was totally wrong.
– Maurice
Jun 16 '17 at 4:04
add a comment |
Great points, thank you Esa. I did remove the mydomain.com include as I realised fairly quickly this was totally wrong.
– Maurice
Jun 16 '17 at 4:04
Great points, thank you Esa. I did remove the mydomain.com include as I realised fairly quickly this was totally wrong.
– Maurice
Jun 16 '17 at 4:04
Great points, thank you Esa. I did remove the mydomain.com include as I realised fairly quickly this was totally wrong.
– Maurice
Jun 16 '17 at 4:04
add a comment |
1
What is the TTL on your DNS records look like? how long did you wait to test after making the changes?
– Zypher
Jun 14 '17 at 2:51
FIXED. I just spent forever talking to my provider and we couldn't figure out why it wasn't working. Be careful! I copied my code from a site which said to use ipv4, it should be ip4! (no v)
– Maurice
Jun 14 '17 at 3:28
1
damn, i totally missed that too. If you put that as a self-answer it'll help others who come by later see it :)
– Zypher
Jun 14 '17 at 3:35