**This is an old revision of the document!**

How to add SPF records to an existing account(s) on a cPanel server

This article will show examples of how to add SPF records automatically to an existing customer(s) on your cPanel/WHM server.

Add SPF record for a single account

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

Add SPF record to all local accounts

cd /var/cpanel/users
for u in *;do /usr/local/cpanel/bin/spf_installer $u; done