Clients sending email via gmail

kwdamp

Well-Known Member
Dec 7, 2017
72
6
58
usa
cPanel Access Level
Root Administrator
So, recently I've discovered that some of my clients prefer to setup their gmail with their POP email accounts from our dedicated servers. This is fine, and works great except the emails fail SPF checks and are all ending up in spam.

It appears google wants hosts to add their google domain to SPF records: ( include:_spf.google.com -all )

The process is vaguely outlined here: Define your SPF record—Basic setup - Google Workspace Admin Help
It only specifically mentions Google Workspace clients, but I believe that record is for all google mail senders.

Anyways, I have a couple of questions for anyone who has been down this path:

Is my syntax correct, to just add that to all related domains SPF records?​
Is there any downside to this? Do other mail services have issue handling the two records?​
Will SPF alone be sufficient to avoid spam? Or do I also need to add google as a possible sender in DKIM records?​
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! That syntax looks good according to those Google docs. Just change the "-" to "~"
This is a standard mail feature so mailservers won't complain. It's common to list two IP addresses in the SPF configuration line, or more, to add valid senders.
I'm not sure there's ever such a thing as "sufficient" when it comes to email avoiding spam. It used to be just SPF, then DKIM, and now there's DMARC records. The only way to know for sure is to send your message and see how it behaves and then deal with the issues as you run into them with various providers.
 
  • Like
Reactions: kwdamp