'How to fix 1and1/ionos spf record not getting authenticated

I used ionos/1and1 for my company website and I send e-mails using gmail. The e-mails are hosted by ionos/1and1. Whenever I send an e-mail to a gmail account I get the following message: "Be careful with this message Gmail could not verify that it actually came from domainname.com Avoid clicking links, downloading attachments, or replying with personal information."

I have created a spf recond with a txt in my domain by I guess it could be wrong this is what I'm using

v=spf1 include:_spf.perfora.net include:_spf.kundenserver.de ~all

if that one is not correct will this one work?

v=spf1 include:_spf.perfora.net include:_spf.kundenserver.de include:_spf.google.com ~all

Thank you for the help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source