/scripts/enable_spf_dkim_globally - Question

Arkaic

Active Member
Jun 23, 2015
34
5
58
United Kingdom
cPanel Access Level
Root Administrator
Hey there,

Where does the script "/scripts/enable_spf_dkim_globally" get the IP address to generate the SPF record?

Is it from /etc/mailips or from the default IP of the server (as listed under Basic WebHost Manager Setup) or somewhere else?
 

NOC_Serverpoint

Well-Known Member
Jul 3, 2016
103
7
18
cPanel Access Level
Website Owner
Hi,

enable_spf_dkim_globally uses Cpanel::DnsUtils::AskDnsAdmin::askdnsadmin to parse keys in %$rform to find all dns zones of related to the request and determine user via Cpanel::AcctUtils::DomainOwner::getdomainowner.

Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

It automatically configures the correct SPF record by using the default IP address utilized by the server for sending email, or by using the account's dedicated IP address if it's configured in the /etc/mailips file.

Thank you.