cPanel: Install SPF record with command

If you have cPanel server and wish to add SPF record in one shot, there is a command come with cPanel to allow you to done it without modify each of the DNS record.

The command line will be as below where cPanel_username should represent your cPanel’s username.

/usr/local/cpanel/bin/spf_installer cPanel_username


/usr/local/cpanel/bin/spf_installer mickgenie

It will result the DNS zone added the following line,

"v=spf1 a mx ip4: ?all"