Why are emails sent by my server marked as SPAM?

后端 未结 1 2023
青春惊慌失措
青春惊慌失措 2021-01-03 08:46

My website, all written in PHP, has an automatic system to notify users via email. Everything worked perfectly until i moved everything on a new less expensive dedicated ser

1条回答
  •  孤街浪徒
    2021-01-03 09:48

    Check this line in the header:

    Received-SPF: none (google.com: noreply@racebooking.net does not designate permitted sender hosts) client-ip=2001:41d0:1:ef28::1;
    Authentication-Results: mx.google.com;
           spf=none (google.com: noreply@racebooking.net does not designate permitted sender hosts) smtp.mail=noreply@racebooking.net
    

    I think you have not correctly configured the SPF entries in your DNS.

    See this Google Products thread about this: https://productforums.google.com/forum/#!topic/apps/nvGcYDjONfc

    I can see that you have no SPF entries defined for "racebooking.net":

    $ dig +short racebooking.net txt
    "1|www.racebooking.net"
    

    You need to define an SPF entry like:

    "v=spf1 mx a:mail0.racebooking.net -all"
    

    You also need to include any other host from which you might be sending email (ie web applications sending email from @racebooking.net).

    More info about what SPF is: http://en.wikipedia.org/wiki/Sender_Policy_Framework

    0 讨论(0)
提交回复
热议问题