Introduction
This article describes how to update existing SPF records for all domains on the server. This is useful if you need to add a new local IP address or remote smart host to all of the records.
Procedure
This command adds an entry for example.domain.tld to the SPF record for all domains on the server:
cat /etc/localdomains | xargs -n 1 /scripts/whoowns | sort | uniq | egrep -v '^$' | xargs -n 1 -I account sh -c 'echo Installing for account...;
/usr/local/cpanel/bin/spf_installer account include:example.domain.tld; echo Done.'
This command adds the 192.88.99.21 IP address to the SPF record for all domains on the server:
cat /etc/localdomains | xargs -n 1 /scripts/whoowns | sort | uniq | egrep -v '^$' | xargs -n 1 -I account sh -c 'echo Installing for account...;
/usr/local/cpanel/bin/spf_installer account +ip4:192.88.99.21; echo Done.'
Comments
0 comments
Article is closed for comments.