Create an SPF DNS Record
Customize the options below to generate an SPF record, which will be shown in the input field above. The qualifiers that can be used are:
Pass (Default): Matching IP addresses are authorized to send emails from this domain
Fail: Matching IP addresses are NOT authorized to send emails from this domain
Soft fail: Matching IP addresses might not be authorized to send emails from this domain (actual behavior differs)
Neutral: Do not explicitly state whether the IP addresses are authorized or not (can be used for overriding other qualifiers)
This tool allows you to create SPF DNS records, which are used to authorize emails, and are necessary to be able to send emails to most providers, such as Gmail, Outlook and Yahoo Mail.
It works by specifying which IP addresses are authorized or not authorized to send emails. You can specify IP addresses from a domain, from your MX records, or explicitly. When specifying IP addresses, you then say whether these should pass or fail the validation.
For advanced usage, domain fields may contain macros. These start with a percentage sign and will expand to a dynamic value. For example, %{d} expands to the current domain and %{i} to the current IP address. See the Macro Guide for a list of all macros.
Using SPF prevents your emails from ending up in the receiver's spam folder. It is recommended to also set up DKIM (to authorize emails by signing them cryptographically) and DMARC (to specify how to handle failed validation), to minimize the risk of getting your emails flagged as spam.