Merging SPF records


Have you found the 255 character limit for your SPF record to be too short? The way around this limit is to merge multiple records together using the "include" feature of the SPF ruleset:

For example: an existing record needs to be modified for a list of IPs. TXT "v=spf1 +a +mx +ip4: -all"


Create a new txt record:

_spf1 TXT "v=spf1 +ip4: +ip4: include: ~all"


Once the new record is created modify the original record and use: TXT "v=spf1 +a +mx +ip4: include: -all"


Once this DNS change has been made and propagated your SPF records will now include both rulesets.




Have more questions? Submit a request