Setting up SPF Records

h0tmailz

Member
Dec 5, 2008
23
0
51
Currently I'm using:

domain.com. IN TXT "v=spf1 a mx ptr -all"

is that right? Could I do it better?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Currently I'm using:

domain.com. IN TXT "v=spf1 a mx ptr -all"

is that right? Could I do it better?
If I was setting up a SPF record, I'd simply go to the cPanel interface, in the "Mail" section click on "Email Authentication" then click "Enable" under SPF. This screen will also allow you to customize your SPF entry without worrying about the proper syntax for the DNS entry.
 

MethOd63

Active Member
Aug 20, 2007
33
0
56
David, there isn't a section called Email Authentication, and I don't see this option in the Exim Confuguration either. So, can you please tell us where this option is?
This option is in cPanel, not in WHM.
 

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
So, are you saying that I need to enable this for every account? Is there any way to enable this server wide? We have hundreds of accounts on multiple server,and I don't see it as an option to enable it in every user's cPanel.
 

h0tmailz

Member
Dec 5, 2008
23
0
51
There is a script that adds SPF records to every account that comes with CPanel, its kinda glitchy since its not coming out till CPanel 12. I'm starting to look into DomainKeys since places like yahoo and aol encourage the use of them over SPF.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
So, are you saying that I need to enable this for every account? Is there any way to enable this server wide? We have hundreds of accounts on multiple server,and I don't see it as an option to enable it in every user's cPanel.
You can build a shell script to run the following:

/usr/local/cpanel/bin/spf_installer <username>
/usr/local/cpanel/bin/domain_keys_installer <username>

Where <username> is the username of the user you wish to install SPF and/or Domain Keys for.

If you're looking for a sample shell script to automate this process for all users, an internet search for the following phrase will yield useful results: Installing domain keys on a cPanel Server script