SPF not working on Google hosted domains

I have setup spf in dns manager

v=spf1 mx a ip4:170.255.196.137 -all

Also have A record as linode.florix.net

When We send emails from cron .. google gives following SPF error and move emails to SPAM.

Received-SPF: none (google.com: root@linode.florix.net does not designate permitted sender hosts) client-ip=173.255.196.137;

Authentication-Results: mx.google.com;

spf=none (google.com: root@linode.florix.net does not designate permitted sender hosts) smtp.mail=root@linode.florix.net

Any suggestions?

4 Replies

You have the wrong IP in the spf record. You put 170.x but your server is connecting to Google with the IP 173.x. and because you have it hardfail with -a google gives that error.

Dear Arlen,

The correct record is v=spf1 mx a ip4:173.255.196.137 -all

I was trying to change the IP, before posting it on forum.

Not sure what happened to my previous post, but your problem is that you are sending from root@linode.florix.net, but your SPF record only covers florix.net. SPF records don't automatically cover subdomains, so you either need to change your sending address to @florix.net or add another SPF record for linode.florix.net.

Dear Stever,

Thank you for the update.

I will check subdomains SPF.

This email is generated by a php script, called by cronjos.

In cron, I have mentioned MAILFROM: xyz@florix.net, still it uses root@linode.florix.net

Can you explain ?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct