Skip to main content

SPF record is valid, but Gmail refuses the message

Comments

6 comments

  • quietFinn
    I suggest that you contact your hosting provider regarding this. I believe it'll work if you add this to the SPF record: include:spf.antispamcloud.com
    0
  • sparek-3
    This can also happen if you are forwarding mail. This is why forwarding mail off of your server is a bad idea. If forwarding mail off of your server had never been a thing, then SPF would stop A LOT of the email spoofing and spamming that goes on. If you have a mydomain.com email address that forward to your gmail.com email address, then if someone from a yahoo.com address sends an email to your mydomain.com email address - that message will get forwarded to your gmail.com address. Gmail will get the message, see that it's from a yahoo.com email address, and see that the message is coming from your server's IP address. The yahoo.com SPF record is not going to authorize your server's IP address as being a legitimate source for yahoo.com email. So Gmail may reject the message with an error to the one similar to what you are seeing.
    0
  • magick
    This can also happen if you are forwarding mail. This is why forwarding mail off of your server is a bad idea. If forwarding mail off of your server had never been a thing, then SPF would stop A LOT of the email spoofing and spamming that goes on. If you have a mydomain.com email address that forward to your gmail.com email address, then if someone from a yahoo.com address sends an email to your mydomain.com email address - that message will get forwarded to your gmail.com address. Gmail will get the message, see that it's from a yahoo.com email address, and see that the message is coming from your server's IP address. The yahoo.com SPF record is not going to authorize your server's IP address as being a legitimate source for yahoo.com email. So Gmail may reject the message with an error to the one similar to what you are seeing.

    Thank you for your help. Sorry I don't understand. If I receive an email to "sample@mydomain.com" and this is forwarded to Gmail, should it not be anyway my domain the sender? In any case, that email account have not forward. In addition the error happens when I sent an original message, not forwarded, by client. Other email account in this domain have forwarding, but they works correctly.
    0
  • cPanelWilliam
    Hello! Does your server have a smart host set up? Based on the bounceback error, it appears your mail is being relayed from 185.201.19.56. You stated that you do not recognize this IP address, but it does appear to belong to a mail service (antispamcloud.com). If you are using this mail service to relay email, they likely have their own SPF record they recommend using for your domain.
    0
  • magick
    Hello! If you are using this mail service to relay email, they likely have their own SPF record they recommend using for your domain.

    No, I'm not using this mail service, maybe my hosting provider is using it. In any case, the provider suggest me to replace the original SPF record " "v=spf1 +mx +a +ip4:94.yyy.yy.y ~all" (ip4:94.yyy.yy.y is the address of my server), with "v=spf1 include:spf.domain.it ?all" (domain.it is the domain of my hosting provider). I don't understand because in the new record there is not "+mx +a" and because it have "?all" in place of "~all".
    0
  • quietFinn
    You could just add "include:spf.domain.it" to your current spf record, that should work.
    0

Please sign in to leave a comment.