Documentation Index

Fetch the complete documentation index at: https://docs.serversaustralia.com.au/llms.txt

Use this file to discover all available pages before exploring further.

Merging SPF records

Prev Next

On some rare instances, users may require an extensive list of SPF Records for their Emails and discover the 255-character limitation in place.

To bypass this limitation and increase the amount of records that can exist against a domain is to merge multiple records together using the "include" feature of the SPF ruleset.

The example below is of an existing record that needs to be modified for a list of IPs.

example.com.au. TXT "v=spf1 +a +mx +ip4:221.121.129.3 -all"

We will need to create a new TXT Record in our DNS Zones like so:

_spf1 TXT "v=spf1 +ip4:221.121.129.2 +ip4:221.121.134.34 include:m.google.com ~all"

Once the new record is created, we can modify the original record and use our new TXT Record above as an ‘include’ (noted as include:_spf1.example.com.au)

example.com.au. TXT "v=spf1 +a +mx +ip4:221.121.129.3 include:_spf1.example.com.au -all"

After this DNS change has been made and has propagated successfully, the SPF records will now include both sets of rules.