您好我拥有一个网站,它使用两种不同的方式向用户发送电子邮件:
-gmail配置为support@example.com -amazon SES
问题是随SES发送的电子邮件总是变成垃圾邮件! 我的SPF记录如下:“v = spf1 include:amazonses.com include:_spf.google.com~all” 我的TXT记录如下:“v = spf1 include:amazonses.com include:_spf.google.com~all”
我刚刚更改了上述记录,我是否需要等待48小时或类似的东西?
这是正确的设置吗?如果是的话,我的问题可能是什么原因?
答案 0 :(得分:0)
第一条评论实际上并不完全正确!
机制可以使用以下四种限定符之一作为前缀:
"+" Pass
"-" Fail
"~" SoftFail
"?" Neutral
SoftFail通常是比Fail更好的选择,因为SPF存在一些缺陷,而Fail可以阻止某些转发的电子邮件到达,而不是被标记为可能的垃圾邮件。 (自从我为多家电子邮件提供商工作以来,我对这些问题有经验)
确保测试您的SPF记录。您可以使用此网站测试它们: http://spf.myisp.ch
答案 1 :(得分:0)
First, as others noted, you are using SoftFail ~all
. From openspf.org Record Syntax:
SoftFail: The SPF record has designated the host as NOT being allowed to send but is in transition
Intended action: accept but mark
You should use HardFail -all
if you want the emails to be rejected when sent from an unauthorized server.
SPF protection is used to prevent spoofing. It's there to define the servers that are authorized to send emails for a certain domain. Generally, if the spf fail, the email will just be rejected and will not get into the spams.
There's a lot of possible reasons an email is getting into the spams, but it's generally because your email has been flagged as spam by a content analysis tool like SpamAssassin. You should contact whoever is managing the email filtering and ask them why exactly your email got in the spams.