(免责声明:我完全不擅长做系统管理员)我正在使用 Gmail 为某个域发送电子邮件。该域是partyboatcharters.com.au
(我希望我被允许在此处输入域)。Gmail 配置为以此方式发送电子邮件。发送至的电子邮件sales@partyboatcharters
将直接[email protected]
由 MX 转发。
MX 是 s412.syd5.hostingplatform.net.au(只有一个 MX)。
我可以正常发送电子邮件。但是,有时(但只是有时)电子邮件无法发送,并显示以下错误消息(发件人收到):
[email protected]
host gmail-smpt-in.l.google.com [4004:6800:4003:c00::1a]
SMTP error from remote email server after end of data:
550-5.6.26 This message does not pass authentication checks [SPF and DKIM both[
550-5.6.26 SFP checl for [partyboatcharters.com.au] does not pass
550-5.6.26 with IP> [2400:b800:6::52]
我找到了这个文件:
https://support.google.com/googlecloud/answer/10756302?hl=en
内容如下:
**Problem**
I need to set up SPF on my domain to send emails with Gmail, not receive.
**Environment**
MX (mail exchange) entry is set to `v=spf1 a mx -all` with domain host
Set up a Sender Policy Framework (SPF) record to send emails with Gmail interface
**Solution**
Sign in to the management console for your domain host.
Locate the page where you update TXT records for your domain.
Create a custom TXT record for SPF: It should look like this: v=spf1 [IP ADDRESS] include:_spf.google.com include:[DOMAIN] ~all
我尝试将此 TEXT 条目添加到 DNS:
TXT @ v=spf1 [43.250.142.8] include:_spf.google.com include:[partyboatcharters.com.au] ~all
43.250.142.8
MX 服务器的 IP 地址也是如此...)但是,我不知道真的知道我在这里做什么。这篇文章似乎涵盖了发送使用另一个域名的 Gmail 发送电子邮件...但收不到。
另一篇文章:
https://support.google.com/a/answer/10685031
似乎暗示 SPF 应该是:
v=spf1 include:_spf.google.com ~all
但我没有使用 Google Workspaces(我知道,我知道,我应该......)。我只是 1) 将电子邮件从[email protected]
TO转发[email protected]
2) 配置 Gmail 以便它从 发送电子邮件[email protected]
。
那么,SPF 应该是什么?DKIM 又是什么?