Setup manual tracking (free)

AutoSPF can be used for free to manually "flatten" any SPF records. In the manual setup, AutoSPF provides a one-time "flattening" and aggregation of included records, as well as automated alerts via email or webhook when the manually created records need to be updated.

Register (free)

Register for a free account at https://www.autospf.com/register

Add domain

After registering for a free account, add any domains whose SPF you want to flatten / manage. A domain must have an existing valid SPF record in order to be added:


In this example, we add the "amazon.com" domain, and use AutoSPF to "flatten" its various records. (Note that in manual mode, no DNS changes are made or served, meaning the tool is only used for flattening, and effecting change depends on the domain's DNS administrator - This is why we can use amazon.com for our example without impacting the real amazon.com)

Import DNS SPF record into system

The current DNS-based SPF TXT record is displayed. As per the illustration below, change the slider from Use domain record to Use saved record to unlock the ability to edit the record. Make any necessary changes, and click the green "Save" button:



Having saved, you're now able to view both the SPF record retrieved from DNS, and the static version of this record as saved within AutoSPF's system. Note that toggling checkboxes for the various includes only changes the content of the SPF record saved in AutoSPF's system.



Update DNS records with flattened records

Depending on the size of your flattened SPF records, AutoSPF will generate one or more SPF records, each record concluding with an include statement forthe next. (This is necessary to address byte-size restrictions in the DNS query response).

For each flattened SPF record, copy/paste the record data into a corresponding TXT record for your domain, with your DNS provider.

Note: Examples for 2 popular DNS providers are provided below. The exact process to add/update DNS TXT records will vary based on your DNS provider.



In the example below, two SPF records are created - amazon.com, and _s0.amazon.com. DNS TXT records must be created for both of the flattened records.

Example of amazon.com via CloudFlare DNS:



Example of _s0.amazon.com via Amazon Route53 DNS:



Making intentional changes

To update your SPF record (adding a new include for salesforce.com, for example) use the AutoSPF UI to manually add IP ranges or includes, and save your changes. After having saved changes, repeat the updating of DNS records with copied data from the flattened SPF record as described above.

Updating following provider updates

If you're using includes within your SPF record to include provider IP ranges, you'll need to manually update your flattened records whenever the provider updates their SPF records. AutoSPF will monitor the content of your SPF includes, and can alert you via email / webhook if change to your own DNS records is required. (For example, your provider may have added a new network block which needs to be added to your flattened records)

Setup alerts

Click "Alerts" on the left-hand panel to create your first alert (or to edit existing alerts)


Name the alert, then select the domain to monitor, and the destination email (or webhook) for alerts: