VPS
Main PagecPanel and DirectAdmin LicensingServer Management PlansVirtual Private ServersDedicated Servers
Control Panel Licensing
ServerTune ResellersResellersSpecial PromotionsServerTune SpecialsHomeAbout ServerTuneContact usTechnical SupportKB
ServerTune Main Page
Space
Space
Our most popular service: Issues, Tips, and Solutions

How is ServerTune different from other companies?

Space
Search:    Advanced search
Browse by category:
How do I create an SPF record for my domain?
Printer Friendly
email to a friend
Add comment Add comment
Views: 995
Votes: 0
Comments: 0
Posted: 15 Jun, 2007
by: Support T.
* * * * *
Updated: 15 Jun, 2007
by: Support T.
Sender Policy Framework (SPF) 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 mydomain.com might look like this:
    mydomain.com IN TXT "v=spf1 a mx ~all"

The above specifes that this is an SPF record for mydomain.com:
v=spf1: a required header that indicates this is an spf record
a: the A record for mydomain.com is allowed to send email
mx: the MX record for mydomain.com 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 mail2.mydomain.com, you would modify the record thusly:

    mydomain.com IN TXT "v=spf1 a mx a:mail2.mydomain.com ~all"

Also, if you wish to give a hard fail, and only allow those servers to send mail, the record would look like:

    mydomain.com IN TXT "v=spf1 a mx a:mail2.mydomain.com -all"
Other articles in this Category
document Tips to solve email problem(s)
document MS Outlook/Express Error Codes
document When I try to log into Horde, it simply goes back to the page asking for the language
document How can I stop Spamassassin from marking all internal emails as spam?
document How do I enable reverse DNS lookup in Exim?
document Is it possible to purge spoofed email?
document Tips to avoid getting your server blocked by MSN/Hotmail
document Exim, or Postfix, or Qmail, or Sendmail :: MTAs Comparison
document I am wondering if my server is being used to send out or relay spam. How can I check?



RSS