Forum Home
Press F1
 
Thread ID: 149692 2021-03-29 15:57:00 Combining SPF records for domain Mike (15) Press F1
Post ID Timestamp Content User
1475940 2021-03-29 15:57:00 I have a domain name that I send all my emails through, however I received a bounce message last week telling me my email was blocked (sending to a NZ .govt email) by the receiving mail server due to invalid SPF records on my domain.

I did a bit of digging and discovered that a) my domain somehow has 2 SPF records and b) this can render the SPF invalid as mail servers will tend to ignore BOTH :)

So I think I understand how to combine them, but what I don't understand is how to use the "all" at the end. One of the records has "~all" (a soft fail) and one has "-all" (a fail). If I combine them, which should I use? Or should I be using "+all" instead?

My current SPF records:


v=spf1 +a +mx +ip4:<ip address 1> +ip4:<ip address 2> -all


v=spf1 include:hotmail.com ~all

I'd appreciate any help on this :)

Thanks,
Mike.
Mike (15)
1475941 2021-03-29 20:41:00 I suggest you find out what the preferred settings are from your mail provider to determine if you should use ~all or -all

~all is less restrictive than -all

For -all if the domain doesn't match it will block the email and for ~all it will likely let it in but you may find it in the Spam folder.

You could try using ?all - this is kind of a "neutral" outcome and "should" allow anything other than obvious spam through.
chiefnz (545)
1