How do I create an SPF record for my domain?

SPF stands for Sender Policy Framework, and is a method by which the administrator of a domain explicitly specifies which mailservers are allowed to send mail for his domain. As this is just a TXT record that is put into the domains DNS zone file, the setup is fairly straightforward. A very basic SPF for might look like this: IN TXT "v=spf1 a mx ~all"

The above specifes that this is an SPF record for

v=spf1 - a required header that indicates this is an spf record
a - the A record for is allowed to send email
mx - the MX record for is allowed to send email

~all - all other mailservers trying to send mail will return a code of "softfail". The mail will still go through, however it will be a suspect message

If you wished to allow another server to send mail through that had the hostname of, you would modify the record thusly: IN TXT "v=spf1 a mx ~all"

Also, if you wish to give a hard fail, and only allow those servers to send mail, the record would look like: IN TXT "v=spf1 a mx -all"

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles


In Microsoft Outlook, go to the E-mail Accounts menu, then select Tools. The E-mail...

Outlook Express

Click the Start button. Point to All Programs. Click Outlook Express. In Microsoft Outlook...

Mail App. - Mac.

1. Start the Program Locate the Mail program either from your dock menu or from the...


1. In Eudora, select "Create a brand new email account" and click the "Next" button. Give this...


Start Mozilla Thunderbird, go to the Tools menu and select Account Settings. Select Email...

Powered by WHMCompleteSolution