无法使用 sendmail 550-5.7.26 错误向 gmail 发送电子邮件

无法使用 sendmail 550-5.7.26 错误向 gmail 发送电子邮件

但是域名没有在同一台主机上注册,因此我使用自定义名称服务器。当我发送这样的电子邮件时:

sendmail [email protected]
this is a test.
.

我收到此错误:

(reason: 550-5.7.26 This mail has been blocked because the sender is unauthenticated.)

   ----- Transcript of session follows -----
... while talking to gmail-smtp-in.l.google.com.:
>>> DATA
<<< 550-5.7.26 This mail has been blocked because the sender is unauthenticated.
<<< 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM.
<<< 550-5.7.26 
<<< 550-5.7.26  Authentication results:
<<< 550-5.7.26  DKIM = did not pass
<<< 550-5.7.26  SPF [194.135.94.254] with ip: [194.135.94.254] = did not pass
<<< 550-5.7.26 
<<< 550-5.7.26  For instructions on setting up authentication, go to
<<< 550 5.7.26  https://support.google.com/mail/answer/81126#authentication u20-20020a05651206

...skipping 1 line
554 5.0.0 Service unavailable

当我使用类似这样的电子邮件检查在线工具时:

mxtoolbox.com

我得到这个结果,表明我有 spf:

SPF 检查结果

我还使用选择器创建了 DKIM 记录default,结果如下:

DKIM 检查结果

另外,当我使用电子邮件健康检查器时:

健康检查器

其中一个错误是:

smtp    website.com Failed To Connect

mail.log我发送电子邮件至[email protected]

Feb 10 03:50:23 1cr0 sendmail[347972]: 41A1oMOk347972: from=tmc, size=6, class=0, nrcpts=1, msgid=<[email protected]>, relay=tmc@localhost
Feb 10 03:50:23 1cr0 sm-mta[347973]: 41A1oNCO347973: from=<[email protected]>, size=295, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=website.com [127.0.0.1]
Feb 10 03:50:23 1cr0 opendkim[312964]: 41A1oNCO347973: no signing table match for '[email protected]'
Feb 10 03:50:23 1cr0 opendkim[312964]: 41A1oNCO347973: no signature data
Feb 10 03:50:23 1cr0 sendmail[347972]: 41A1oMOk347972: [email protected], ctladdr=tmc (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30006, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (41A1oNCO347973 Message accepted for delivery)
Feb 10 03:50:23 1cr0 sm-mta[347975]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1.3, verify=FAIL, cipher=TLS_AES_256_GCM_SHA384, bits=256/256
Feb 10 03:50:24 1cr0 sm-mta[347975]: 41A1oNCO347973: to=<[email protected]>, ctladdr=<[email protected]> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120295, relay=gmail-smtp-in.l.google.com. [64.233.164.27], dsn=5.0.0, stat=Service unavailable
Feb 10 03:50:24 1cr0 sm-mta[347975]: 41A1oNCO347973: 41A1oOCO347975: DSN: Service unavailable
Feb 10 03:50:24 1cr0 sm-mta[347975]: 41A1oOCO347975: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent

不确定为什么它说没有签名表,即使我根据本教程配置了 opendkim:

opendkim 配置教程

我已经sendmail根据本教程进行了配置:

配置 sendmail 教程

知道为什么 Gmail 仍然说我没有通过 SPF 或 DKIM 吗?

答案1

您正在从该地址发送电子邮件[email protected]。该域名1cr0.l.hostens.cloud与您的不匹配website.com

相关内容