SPF record minimization

Status
Not open for further replies.

scottwsx96

Ars Tribunus Militum
1,627
We have outgrown our SPF record on our primary email domain. We have too many DNS lookups in the SPF record, resulting in a PermError. This is partly caused by using Office 365, whose suggested SPF include entry results in no less than three of the maximum ten lookups by itself. We also use some other third-party services that send mail as us.

Given this, how can we optimize our SPF record so that it gets under the maximum of ten DNS lookups? If possible, we'd like to avoid trying to maintain lists of IP addresses and subnets that third parties use.
 

DarkSyd

Ars Tribunus Angusticlavius
6,086
We went through the same thing when we moved to Office365. By the time we added the o365 recommendations to the existing record that also contained info for a couple of other cloud hosted services, we were well over the 10 lookups as well.

I don't know if there was a better way to do it or not, but I wound up resolving as many of them as I could to IPs that didn't count against the limit.
 

Incarnate

Ars Tribunus Angusticlavius
9,037
Subscriptor++
The limit sucks and needs to be fixed, but good luck getting developers to update the mail software and getting customers to actually upgrade their systems. It'll never happen.

I try to use sub domains of our domain to send mail for specific items (marketing, etc), and/or let the cloud solutions send from their own domains and just have them configured to use a real reply-to address to the primary domain if possible.
 
Status
Not open for further replies.