How to add an SPF record

Discussion in 'Mail Server Support' started by Big Dan, Aug 19, 2008.

  1. Big Dan

    Big Dan EQ Forum Moderator Staff Member

    Joined:
    Aug 14, 2008
    Messages:
    647
    Likes Received:
    16
    Hey Folks,

    I manage a couple of my own servers and have been on a few black lists from time to time.. I don't know why all that sends mail on through my servers are vBulletin, Wordpress, and myBB. However it's been recommended that I add an SPF record. I understand the concept behind it but don't know how to add one.. I'm on your typical CentOS/cPanel servers. Any help would be appreciated

    Thanks,
    Dan
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,997
    Likes Received:
    120
    What does an SPF record do? An SPF record lets mail servers know what sources you are expecting to be sending e-mail as your domain. This allows those mail servers to reject mail from your domain that is coming from unexpected places. For example, if you say all mail for your-domain.com should come from smtp.your-domain.com, but then a spammer tries to send mail as your domain name from their mail server, it will get rejected.

    To create an SPF Record use the SPF Wizard | Tool to create SPF records to generate an SPF record for your domain. Once you have the record, you'll need to add a record to your DNS zone file with your DNS Hosting company. Create a TXT record for your domain, and enter the line given to you by the SPF Wizard as the value for the TXT record.

    Creating an SPF record is not likely to help you with your blacklist issues though. Please start another thread in the mail server support forum that has the ip address of your mail server, and any error messages that you have so we can help you with fixing your blacklist issues
     

    Last edited: Jun 3, 2015
  3. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,997
    Likes Received:
    120
    FYI - The answers above are getting out of date now.

    When SPF was first available it used TXT records in DNS.

    Now that there is an SPF RR type in DNS that's more widely available it's recommended to create an actual SPF record in addition to a TXT record.

    For now the old v=spf1 record types can still be done in TXT records.
     
    Last edited: Jun 3, 2015
  4. Big Dan

    Big Dan EQ Forum Moderator Staff Member

    Joined:
    Aug 14, 2008
    Messages:
    647
    Likes Received:
    16
    I'm a fairly geeky guy but you might as well be speaking Chinese to me.:rofl:
     
    Last edited by a moderator: Jun 3, 2015
  5. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,997
    Likes Received:
    120
    TXT and SPF are types of resource records (RR's) like A and CNAME.
     
  6. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,997
    Likes Received:
    120
    3.1.1. DNS Resource Record Types

    This document defines a new DNS RR of type SPF, code 99. The format
    of this type is identical to the TXT RR [RFC1035]. For either type,
    the character content of the record is encoded as [US-ASCII].

    It is recognized that the current practice (using a TXT record) is
    not optimal, but it is necessary because there are a number of DNS
    server and resolver implementations in common use that cannot handle
    the new RR type. The two-record-type scheme provides a forward path
    to the better solution of using an RR type reserved for this purpose.

    An SPF-compliant domain name SHOULD have SPF records of both RR
    types. A compliant domain name MUST have a record of at least one
    type. If a domain has records of both types, they MUST have
    identical content. For example, instead of publishing just one
    record as in Section 3.1 above, it is better to publish:

    example.com. IN TXT "v=spf1 +mx a:colo.example.com/28 -all"
    example.com. IN SPF "v=spf1 +mx a:colo.example.com/28 -all"

    Example RRs in this document are shown with the TXT record type;
    however, they could be published with the SPF type or with both
    types.
     
  7. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,997
    Likes Received:
    120
    A couple more years later and the answer changed again.

    Don't worry about the SPF RR type anymore, the original method of placing SPF records within a TXT record is most correct again.
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...