SPF record setup domain ip

nrider321

Member
Dec 7, 2013
9
0
1
cPanel Access Level
Root Administrator
Hi,

So I am trying to limit emails being sent out as spam by domain being used for registrations. currently the activation emails go in the spam box of new members gmail etc.

I read that enabling SPF under email authentication was a good idea. I have done so and the record was setup
ex. v=spf1 +a +mx +ip4:0.0.0.12 ~all
However this ip is the host server ip and not the the cpanel domain ip the spf record was enabled with (also domain sending the emails)

Is this normal and because this was enabled on the cpanel domain account, the domain ex. 0.0.0.13 is already considered ok? Or do I still need to add the 0.0.0.13 to the additional ip4 block list so that it ok to send mail?

Also I keep seeing that some records end with -all instead of ~all. Can someone explain the difference and which is better to use?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

The SPF record configured by cPanel will use the main server IP address. This is by design. The use of "+a" and "+mx" in the SPF record accounts for the possibility the domain name is assigned a dedicated IP address.

Thank you.
 

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,720
26
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
Hello :)

The SPF record configured by cPanel will use the main server IP address. This is by design. The use of "+a" and "+mx" in the SPF record accounts for the possibility the domain name is assigned a dedicated IP address.

Thank you.
Sorry just to be clear, if the customer has a dedicated IP and you have the server set to use dedicated IPs for sending mail.

Would you still use the main shared IP in the SPF record?

In this part: (v=spf1 +a +mx +ip4:12.123.123.12 ~all)

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Yes, that's still a valid SPF record as long as either the A record or the MX record resolves to the dedicated IP address used for sending email.

Thank you.