此消息没有身份验证信息或未通过身份验证检查550-5.7.26。

9

我遇到了谷歌邮件的问题,无法向任何gmail或Gsuite的邮箱发送邮件, 从邮件服务器日志中得到了报告。

Feb 17 12:16:30 server postfix/smtp[19451]: 853E35E55A: to=<xxx@gmail.com>, 
relay=aspmx.l.google.com[209.85.144.27]:25, delay=0.38, delays=0.05/0/0.15/0.17, 
dsn=5.7.26, status=bounced (host aspmx.l.google.com[209.85.144.27] said: 550-5.7.26 This 
message does not have authentication information or fails to 550-5.7.26 pass 
authentication checks. To best protect our users from spam, the 550-5.7.26 message has 
been blocked. Please visit 550-5.7.26  
https://support.google.com/mail/answer/81126#authentication for more 550 5.7.26 
information. w19si7586061qkp.34 - gsmtp (in reply to end of DATA command))

我在大部分提供黑名单检查的网站中进行了检查,没有被列入垃圾邮件网站的黑名单。

同时,我的SPF、DKIM和DMARC都没有出现任何问题。

以下是相关检查工具:

SPF检查器:https://prnt.sc/26xomwz

DKIM检查器:https://prnt.sc/26xoodg

DMARC检查器:https://prnt.sc/26xopgo

以下是来自Google的DMARC报告。

<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
  <report_metadata>
    <org_name>google.com</org_name>
    <email>noreply-dmarc-support@google.com</email>
    <extra_contact_info>https://support.google.com/a/answer/2466580</extra_contact_info>
    <report_id>10254909114662490508</report_id>
    <date_range>
      <begin>1644969600</begin>
      <end>1645055999</end>
    </date_range>
  </report_metadata>
  <policy_published>
    <domain>cbs-canon.com</domain>
    <adkim>r</adkim>
    <aspf>r</aspf>
    <p>quarantine</p>
    <sp>quarantine</sp>
    <pct>100</pct>
  </policy_published>
  <record>
    <row>
      <source_ip>5.161.45.186</source_ip>
      <count>187</count>
      <policy_evaluated>
        <disposition>quarantine</disposition>
        <dkim>fail</dkim>
        <spf>fail</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <header_from>server.cbs-canon.com</header_from>
    </identifiers>
    <auth_results>
      <dkim>
        <domain>server.cbs-canon.com</domain>
        <result>fail</result>
        <selector>default</selector>
      </dkim>
      <spf>
        <domain>server.cbs-canon.com</domain>
        <result>none</result>
      </spf>
    </auth_results>
  </record>
  <record>
    <row>
      <source_ip>5.161.45.186</source_ip>
      <count>1</count>
      <policy_evaluated>
        <disposition>none</disposition>
        <dkim>pass</dkim>
        <spf>pass</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <header_from>cbs-canon.com</header_from>
    </identifiers>
    <auth_results>
      <dkim>
        <domain>cbs-canon.com</domain>
        <result>pass</result>
        <selector>default</selector>
      </dkim>
      <spf>
        <domain>cbs-canon.com</domain>
        <result>pass</result>
      </spf>
    </auth_results>
  </record>
</feedback>

如何确定问题所在

2个回答

4

这有些奇怪。发送源IP明确在您的SPF记录中,并且DMARC记录包括aspf=r,因此子域中的头部地址有效且匹配。我还注意到您的DMARC记录为p=quarantine,但gmail表现得像reject。不过这是gmail,无法期望其表现良好。

我认为问题在于您没有为server.cbs-canon.com设置SPF记录,请确保存在并允许相同的来源作为cbs-canon.com。看起来您也没有进行DKIM签名,这意味着SPF和DKIM都失败了,导致DMARC失败。尝试添加该DNS记录,或将server.重定向/包含到您的根域中。


完美,DKIM签名中有配置错误。我已经修复了它们,并且我还禁用了root@hostname的退信通知,因为它正在缓存退信消息。 - ezak
但我有另一个问题,邮件被发送到垃圾邮件文件夹。我发现CSF从root@hostname(其中hostname是我的当前主机名)发送电子邮件,并被标记为垃圾邮件..由于CSF发送了许多消息,所有这些消息都被发送到SPAM..即使我将它们标记为非垃圾邮件..仍然会将任何来自CSF和其他普通电子邮件发送到垃圾邮件.. Gmail说“为什么这条消息在垃圾邮件中?它类似于过去被识别为垃圾邮件的消息。” - ezak
CSF是您的防火墙软件吗?如果它发送的是不可路由的、可能是单标签域名,那么它将被许多邮箱服务提供商降级。因为无法执行或失败了大量检查。请尝试配置一个正确的发件人地址/域名。 - Reinto
2
不幸的是,使用Gmail时,更准确地说可能是“我们之前误识别为垃圾邮件的消息”。不过@Reinto提出了一个很好的观点——确保在发件人地址中使用完整域名,而不仅仅是裸主机名。 - Synchro

1

为了补充 @Synchro 的回答,需要提供更多信息。

事实是 Return-Path 地址使用了 server.cbs-canon.com 域,但该区域没有 SPF 记录。你只需要为在 Return-Path 地址中使用的域添加 SPF 记录。对于你服务器的邮件,这将是 server.cbs-canon.com。而对于 Google 来说,可能就只需要 cbs-canon.com

DKIM 也是同样的道理。接收邮件的服务器将检查名为 default 的选择器是否与域 server.cbs-canon.com 相匹配(因此查询 TXT 记录 default._domainkey.server.cbs-canon.com),但该记录不存在。

然后 DMARC 将检查 SPF (Return-Path) 或 DKIM (d=) 域是否与 Header.From 域相匹配(或在放宽模式下共享组织域)。

你现在可能最简单的解决方法是将 SPF TXT 记录和 DKIM 选择器记录复制到 server.cbs-canon.com 域。


谢谢您的留言,我已经采纳了您的建议并且邮件已经发送成功。但是,针对@Synhro的最后一次回复被归类为垃圾邮件。 - ezak

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接