SPF Records

Sender Policy Framework or SPF is an e-mail validation system designed to prevent e-mail spam.
How you may ask? By dealing with source address spoofing. This is when someone on their own
server spoofs your domain such as (yoursupercoolawesomedomain.com) and sends mail
as someuser@yoursupercoolawesomedomain.com and now suddenly everyone won’t accept
mail from you and is bouncing it back.

Now your mail server is flooded with bounce backs and your servers over loaded. SPF which
you can read more about on wikipedia link below can help with this by providing a DNS record
that says “you should only accept mail from this IP address for my domain”.

http://en.wikipedia.org/wiki/Sender_Policy_Framework

A simple for loop will add them to all of your users such as this:

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


Leave a Reply