EDIT : How to Mix the different mechanisms
(a
, mx
, ip4
, ptr
and include
) to create single SPF file from 4
I know that 2 simple SPF records like
v=spf1 include:_spf.google.com ~all
v=spf1 include:otherdomain.com ~all
can be merged to one as
v=spf1 include:_spf.google.com include:otherdomain.com ~all
I have bit more complex SPF records with mechanisms like a
mx
ip4
ptr
and include
as shown below
v=spf1 a mx ptr include:icpbounce.com include:spf.mandrillapp.com ~all
v=spf1 mx ip4:x.x.x.x include:mktomail.com ~all
v=spf1 mx ip4:y.y.y.y include:mktomail.com ~all
v=spf1 include:spf.mandrillapp.com ?all
How can merge all this to one TXT record, as mandrilapp
is giving me an error
has more than one TXT record that looks like an SPF record
I cant try a trial and error as its in production and i am very new to this SPF domain
You can combine them all like this.
I recommend changing the
~all
to-all
- the whole point in setting up authentication in the first place is to make it fail when it's violated. Then test sending emails from all the different places to a testing tool like [email protected]. To ensure the SPF passes from each send point.