Evidence and research

Can AI Write a Safe SPF Record?

By EmailmetryReviewed 3 min read

AI can help draft SPF using current DNS and verified provider instructions. A tool can retrieve some of that context automatically, but public records do not reveal every legitimate sender or account setting. Check the proposed changes against the actual sending arrangement before publishing them.

“We use Microsoft 365 and a newsletter tool” names two products. It does not establish which domains they use to send, what is already in DNS or whether another application still needs authorisation.

Where an assistant has access to DNS lookups and current documentation, it can retrieve some of that context itself. Public DNS still cannot establish whether an unpublished application sends mail or whether a listed service is still in use.

A plausible answer can remove a working sender

Consider this example, taken from Microsoft's documented configuration for most Microsoft 365 organisations:

v=spf1 include:spf.protection.outlook.com -all

Microsoft's instructions also address other environments and additional sending sources. The record is not a universal replacement for every Microsoft 365 customer's existing policy.

If another application sends using the same envelope-sender domain, replacing the current record could remove its authorisation. Correct syntax would not prevent that mistake.

This is an illustration of missing context, not the result of an AI benchmark. We have not tested or ranked models in this article.

The right change may be somewhere else

SPF evaluates the SMTP envelope-sender domain, commonly visible as Return-Path after delivery, and HELO in relevant cases. It does not directly authenticate the visible From address.

Amazon SES illustrates the distinction: its default MAIL FROM domain belongs to SES; a custom MAIL FROM configuration uses a customer's subdomain. Naming SES in a prompt does not establish that it belongs in the customer's root SPF record.

An include hostname also needs a source. Plausible spelling is not evidence that it is the provider's current, account-appropriate instruction.

Use AI to explain a change you can verify

Useful assistance includes retrieving the published record, explaining it, comparing it with a proposed edit and identifying settings that still need confirmation. There is no need to transcribe DNS into a large worksheet when a tool can read it. The essential review is what changes and whether the intended senders are preserved.

Check that the change preserves legitimate senders and does not create a second SPF policy at the same DNS name. RFC 7208 permits only one selected SPF record.

A syntax validator can catch formatting problems. It cannot know whether the accounts application was forgotten. A message from the application can help verify the affected sending path after a change.

The same standard applies to a human-written answer: use the real configuration and verified provider instructions. AI does not make a guess about those inputs safer.

Sources and further reading

Sources reviewed 8 September 2026. Our editorial standards.