Search code examples
dnsgmailspf

SPF Record Gmail sets on SPAM folder


I'm working on this for about 5 hours and I still couldn't find a way to not send the emails of my private server to the spam folder of gmail.

The error I'm receiving in google is:

Received-SPF: neutral (google.com: 212.113.177.3 is neither permitted nor denied by domain of [email protected]) client-ip=212.113.177.3;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 212.113.177.3 is neither permitted nor denied by domain of [email protected]) [email protected]

I actually do not know what d'hell is the IP 212.113.177.3, but a search around the google told me to add some SPF to my domain, so I did.

enter image description here

But the emails continue to go to the SPAM folder. So I went to the SPF Record Checker and they output the following results:

enter image description here

What am I doing wrong in the SPF?


Solution

  • You need to combine your two SPF records into one.

    v=spf1 ip4:212.113.177.3 include:_spf.google.com ~all
    

    Note that adding SPF isn't a magic bullet. Many components go into spam filtering - content analysis, the reputation of the sending IP, the age of the domain name being used, blacklisting, DKIM, etc.