Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    43

    Default Please help with SPF record

    I have tried and tried and tried. My hosting company tells me i need a spf record but i knew that 4 months ago when hotmail and yahoo would reject my mail, but no one can really help me with setting one up.

    I have a VPS server . My dns hostname is mydomain.hosted-servers.net

    I understand i am suppose to go to openspf.com and use the wizard to guide me, but i can only answer the first 2 questions and the rest are just to confusing.

    Also, do i really have to input a spf record for every domain name i have on my server? what if i have 5 thousand...i have to manually input a spf record for every domain? there has to be a easier way.

    this is what the wizard generated for me but i dont think it is right, and what about IP address, shouldnt there be a IP address somewhere in the spf record?

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

    and i read that since i am stationary and dont really use any other server to send mail except my own, i should have -all instead of ~all am i right? I have a feeling my main IP should be in that record but dont know if it should or where it would go. Thanks

  2. #2
    Member
    Join Date
    Jun 2006
    Posts
    212

    Default

    Take a look at this site:
    http://www.openspf.org/SPF_Record_Syntax

    It has a complete explanation of the SPF Record Syntax.
    Alex Villegas

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    43

    Default

    Quote Originally Posted by cPanelAlex View Post
    Take a look at this site:
    http://www.openspf.org/SPF_Record_Syntax

    It has a complete explanation of the SPF Record Syntax.
    I have read all those articles, what i want to know is, if i have 200 domains, i have to edit every single one of the domains? there has to be a better way...no?

  4. #4
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    I am curious to know the answer too. But I only have 35 accounts.
    SuperBaby

  5. #5
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    How are you sending out the mail? The SPF record is dependent on the domain of the envelope-sender of those messages.

    If you are sending out the messages through a PHP or CGI script on your account, then unless you are specifying a different envelope-sender, then the message is likely enveloped from the server's hostname. That DNS record is what would need to have an SPF record.

    If you are sending out mail from an e-mail client, then the envelope sender is likely your domain name and each domain name would need to have an SPF record.

    As far as using the ~all mechanism versus -all I have heard both ways. Personally, I like the -all method, but this is dependent on you specifying a solid SPF record. You have to know what IPs, Hosts, or ISPs are allowed to send mail from your domain name. If you don't know that, then you don't need to be using the -all method, and I would question whether or not if you need an SPF record.

    There are basically three options for the all mechanism, ?all, ~all, -all.

    The ?all method is useless to me because this is like saying, "I think these are all the servers that send out mail from this domain, but I'm not sure, you should also accept mail from other servers just to be safe." I suppose if you are setting up an SPF record just to have an SPF record, then this might work. I'm not sure how this is beneficial to any recipient server that receives mail from your domain name.

    The ~all method states that the list of IPs and hosts in the SPF record should be all, but any mail from any other server should also be accepted and flagged as spam.

    The -all method says that the defined IPs and hosts in the SPF record are all that should be sending mail from this domain. If a recipient server receives a message from this domain and it is not from an IP or host listed in the SPF record, disregard that message because its a forgery. To me this is the only option that really makes SPF worth it.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by iLLuSi0nS View Post
    if i have 200 domains, i have to edit every single one of the domains? there has to be a better way...no?
    writing a shell or Perl script is the answer.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  7. #7
    Member
    Join Date
    May 2005
    Posts
    34

    Default

    damn, why cpanel team no give a solution by update.. i have 7 server with problem delivering to hotmail.. about the solution for spf do this

    for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done


    i have right SPF i check this in
    http://www.microsoft.com/mscorp/safe...d/Default.aspx

    i have other server with DirectAdmin and this deliver right to hotmail with hostname as node of one server with cpanel.

  8. #8
    Member UBERHOST's Avatar
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    102

    Default

    Hmm, can the SPF text be set in the zone template?

    click logo to visit us for dedicated
    cPanel servers and more

  9. #9
    Member
    Join Date
    Feb 2008
    Posts
    6

    Default

    UBERHOST,

    Yes, Main >> DNS Functions >> Edit Zone Templates >> standard >> edit >> type in :
    %domain%. IN TXT v=spf1 a -all <--- can be changed to what you want it to be .

    HTH

  10. #10
    Member UBERHOST's Avatar
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    102

    Default

    Quote Originally Posted by SecFilterEngine View Post
    UBERHOST,

    Yes, Main >> DNS Functions >> Edit Zone Templates >> standard >> edit >> type in :
    &#37;domain%. IN TXT v=spf1 a -all <--- can be changed to what you want it to be .

    HTH
    Thanks mate.
    Last edited by UBERHOST; 02-02-2008 at 11:28 AM.

    click logo to visit us for dedicated
    cPanel servers and more

  11. #11
    Registered User
    Join Date
    Dec 2009
    Posts
    1

    Question ~all SPF record

    I am using cPanel 11.25.0-CURRENT (cPanel Pro 1.0 (RC1) header image says cPanel accelerated2) and don't know how to set an SPF record with the ~all. I do not have access to WHM.

    I have tried numerous times but it always makes use of the -all without any option to change it. Help!

Similar Threads & Tags
Similar threads

  1. ptr record & SPF record
    By yantomulia in forum New User Questions
    Replies: 2
    Last Post: 03-17-2008, 08:32 PM
  2. SPF Record
    By GoWilkes in forum E-mail Discussions
    Replies: 11
    Last Post: 01-18-2008, 05:45 PM
  3. SPF record
    By Cemtey in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 01-03-2008, 10:24 AM
  4. SPF Record and Quotes
    By carverrn in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-23-2006, 07:28 AM
  5. May be i need SPF Record help or its a faulty one
    By mohit in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-27-2006, 05:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube