![为 Gmail 免费帐户生成 DKIM](https://linux22.com/image/783027/%E4%B8%BA%20Gmail%20%E5%85%8D%E8%B4%B9%E5%B8%90%E6%88%B7%E7%94%9F%E6%88%90%20DKIM.png)
我使用 Gmail SMTP 和 wordpress 发送带有自定义域名的邮件。电子邮件已成功发送,但在每个网络邮件提供商(例如 Gmail、Rediffmail、Yahoo、Outlook 等)中,它们总是进入垃圾邮件文件夹([email protected])
Gmail SMTP server address: smtp.gmail.com
Gmail SMTP name: Your full name
Gmail SMTP username: Your full Gmail address (e.g. [email protected])
Gmail SMTP password: The password that you use to log in to Gmail
Gmail SMTP port (TLS): 587
Gmail SMTP port (SSL): 465
发生这种情况是因为他们无法验证这封电子邮件的发件人以及 SPF 和 DKIM 等 DNS 记录。我谷歌了一下,找到了 Gmail 的 SPF 记录v=spf1 a include:_spf.google.com ~all
但是如何为我的 Gmail SMTP 生成 DKIM。我查看了此 Google 文档:https://support.google.com/a/answer/180504#turn-on-dkim但它是关于 Google Business Mail/WorkMail 而不是免费的 Gmail ([电子邮件保护])。
你能告诉我如何为我的 Gmail 生成 DKIM 以及如何使我的电子邮件不出现在垃圾邮件文件夹中吗?
我当前的 DMARC v=DMARC1; p=none
。我注意到Gmail SMTPDMARC Failed
电子邮件标题中显示,但我的同一记录显示DMARC Passed
它发送自ZohoMail
电子邮件标头
Return-Path: <[email protected]>
Delivered-To: [email protected]
X-DKIM-Verification: dkim domain= -; verify=2; NO Signature;
X-SPF-Verification: spf domain=gmail.com; result=pass; clientip=209.85.214.176; SAligned=0; RAligned=0;
X-DMARC-Verification: dmarc=none; dkim=fail; spf=fail; pct=100; domain=vpnsreview.net;
Received: (qmail 8648 invoked from network); 5 Jan 2023 18:08:13 -0000
X-IN-VDRT-SpamState: 0\LEGIT
X-IN-VDRT-SpamScore: 0
X-IN-VDRT-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeekgdduudduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgfffkhffhnecuuegrihhlohhuthemuceftddtnecunecujfgurhephfffuffkvfggtgesrgdtreertddtjeenucfhrhhomheprhgrjhgvvghvsehsvghrvhgvrhhhuhhmphdrtghomhenucggtffrrghtthgvrhhnpedvfffgjeeuvefgvdffjeffgeduvdffhfelfffglefgkeegueejvdetleefjeejffenucfkphepheegrddvuddvrddufedurddukedunecuvehluhhsthgvrhfuihiivgeptd
X-Remote-IP: 209.85.214.176
X-REDIFF-SENDER-VERIFY: D=-2, DKIM=0, P=D
Received: from mail-pl1-f176.google.com (209.85.214.176)
by 0 with ESMTPS (AES128-GCM-SHA256 encrypted); 5 Jan 2023 18:08:13 -0000
Received: by mail-pl1-f176.google.com with SMTP id c2so12581044plc.5
for <[email protected]>; Thu, 05 Jan 2023 10:08:12 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=mime-version:to:message-id:subject:date:from:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=aRlsqpb4hDIgx52BOYVQ/7aDGi+GJMNlJXhhCWhfRw4=;
b=tSW41L95zzj5Czoj7UghYarvwA1pCbj5CjJ9ccrGt/0fZTOLRgntbx2nYoFJVLr+xF
rxm/qg07VVbkxObZ67BeTs9OKR4j8s8KcZK6QsiDdtzN2fwjC7tVOtbKLp3Y6r4j/7ml
mlJaXZyj2BocWlckKTf0Fk4U34nrCLBm+MFzSu1gte7dHwo76NQ3y18VvmBLL0jcs+JL
QEQY1y+JqAsZ+3egdTL1uUXCQ14e+DBf8vkjsEHTAS4BysYmKYqOqMS+rUhOZFNEeBYg
boUd/zMyOYV5BdfH45wOq/seAwJkGqbf98xEIvZT91cOv5pTPjpqCSNWEsmIMZg5g4Vt
N4+A==
X-Gm-Message-State: AFqh2kqcCcby96EW5MSximnYg/GH7FCREX70wK8ECjXDn1Vz/fKve6JV
KCl06/N1ZawcuZYxs+It4Dy5RRQTiaYqX4zU
X-Google-Smtp-Source: AMrXdXuIfyxf9/D9ZCdbcaT4IOZpKtwi+ColF32x3K8BwBv3Aszaqopihz7sVhCXXYwLP1C/Ob8Aww==
X-Received: by 2002:a05:6a21:2d05:b0:a7:92f2:9b65 with SMTP id tw5-20020a056a212d0500b000a792f29b65mr67293906pzb.59.1672942089426;
Thu, 05 Jan 2023 10:08:09 -0800 (PST)
Return-Path: <[email protected]>
Received: from [172.31.11.248] (ec2-54-212-131-181.us-west-2.compute.amazonaws.com. [54.212.131.181])
by smtp.gmail.com with ESMTPSA id i2-20020a170902c94200b00189618fc2d8sm26355711pla.242.2023.01.05.10.08.09
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Thu, 05 Jan 2023 10:08:09 -0800 (PST)
From: [email protected]
Date: Thu, 05 Jan 2023 18:07:59 +0000
Subject: SMTP test from smtp.gmail.com
Message-Id: <RGC9DV4EUIU4.H4YWENIPAQIO3@WIN-AUIR3RRGP88>
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=-vPe7/WRdKCpdInodHv+yEg=="
答案1
据我所知,通过免费 Gmail 帐户发送时,Gmail 不会签署自定义域。
实际上,这应该是您(意思是 - 您的 wordpress 系统)进行 DKIM 签名。
如果没有电子邮件标头,就很难说出为什么 DMARC 无法发送您的电子邮件,但我怀疑这是因为信封(可能是您的免费 Gmail 电子邮件地址)和标头发件人(可能是您的自定义域电子邮件地址)之间缺乏一致性。
答案2
免费的 Gmail 帐户无法实现此功能。此功能仅供 Google Workspace 客户使用。
注册 Google Workspace 或使用外部 SMTP 服务器(创建您自己的服务器或使用第三方电子邮件服务)。