| |
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
If you want to add DomainKeys and SPF for every new account created on Cpanel, then do the following.
----------------------------------------------------------
Add DomainKeys for single user
/usr/local/cpanel/bin/domain_keys_installer username
-----------------------------------------------------------
----------------------------------------------------------cat /var/cpanel/users | while read a; do
/usr/local/cpanel/bin/domain_keys_installer $a
done
If you want to add SPF records for all cpanel accounts exist on your server then use the following command.
cat /var/cpanel/users | while read a; do
/usr/local/cpanel/bin/spf_installer $a
done
vi /scripts/postwwwacct
postwwwacct is a file which execute after wwwacct (used to create account), paste following lines in the file.
*******
#!/usr/bin/perl
my %OPTS = @ARGV;
$ENV{USER} = “$OPTS{’user’}”;
#For domain key
system q(/usr/local/cpanel/bin/domain_keys_installer $USER);
#for spf record
system q(/usr/local/cpanel/bin/spf_installer $USER);
********
save it and restart cpanel service.
And create account from WHM and check DNS once the account is created. You will the SPF record is added automatically.
For who have recently notice that now DNSreport do verify if your DNS is recursive lookup or not, here is the tip on how to set it up.
open you named.conf and add before options { the follow lines:
acl "trusted" {
xxx.xxx.xxx.xxx;
yyy.yyy.yyy.yyy;
};
where xxx.xxx.xxx.xxx is your ip address same for yyy.yyy.yyy.yyy.
for cpanel users, you can find yours ips in the follow file: /etc/nameserverips
after that, inside the options add after the line "// query-source address * port 53;" the follow:
allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };
also uncomment the line
"// query-source address * port 53;"
to
"query-source address * port 53;" without the (double-quotes).
restart your service.
Verify again your status with DNSreport.
For who have recently notice that now DNSreport do verify if your DNS is recursive lookup or not, here is the tip on how to set it up.
open you named.conf and add before options { the follow lines:
acl "trusted" {
xxx.xxx.xxx.xxx;
yyy.yyy.yyy.yyy;
};
where xxx.xxx.xxx.xxx is your ip address same for yyy.yyy.yyy.yyy.
for cpanel users, you can find yours ips in the follow file: /etc/nameserverips
after that, inside the options add after the line "// query-source address * port 53;" the follow:
allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };
also uncomment the line "// query-source address * port 53;" "to query-source address * port 53;" with out the " (double-quotes).
restart your service.
Verify again your status with DNSreport.
Observation: you can also set up a version line it should be like:
version "Oh come on why do you want to know witch version my DNS server is ?";
this line can be add iside your named.conf