Gmail 将电子邮件移至垃圾邮件文件夹
Gmail moves email to spam folder
最近决定放弃 google 邮件服务并建立私人邮件服务器。我想到的是从一个 me@example.com
发送到 inbox@gmail.com
和 spam@gmail.com
的电子邮件被相应地放入 Inbox
和 Spam
文件夹中。
问题
为什么邮件分发到不同的文件夹?邮件目标文件夹(*@gmail.com
)是否取决于
- 帐户设置 - 当我的
gmail
帐户被标记为 non-spam 时,我能够从 me@example.com
接收到 Inbox
的邮件?
- 服务设置 -
gmail
的一些特定要求,例如,header如 Received-SPF
、DKIM-Signature
?
- 全局设置 - 超类、其他服务(yahoo、hotmail、outlook),more/less headers ?
留言
检查了某些 header 字段中的 pass
。那个恕我直言似乎也很好。各自的 IP 已隐藏。
Delivered-To: spam@gmail.com
Received: by [example.com] with SMTP id s194csp2015594wmd;
Tue, 16 Jun 2015 03:43:40 -0700 (PDT)
X-Received: by 10.66.154.233 with SMTP id vr9mr57332135pab.124.1434451419946;
Tue, 16 Jun 2015 03:43:39 -0700 (PDT)
Return-Path: <me@example.com>
Received: from mail.example.com (example.com. [[example.com]])
by mx.google.com with ESMTP id hf2si854902pbb.140.2015.06.16.03.43.38
for <spam@gmail.com>;
Tue, 16 Jun 2015 03:43:39 -0700 (PDT)
Received-SPF: pass (google.com: domain of me@example.com designates [example.com] as permitted sender) client-ip=[example.com];
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of me@example.com designates [example.com] as permitted sender) smtp.mail=me@example.com;
dkim=pass header.i=@mail.example.com;
dmarc=pass (p=QUARANTINE dis=NONE) header.from=example.com
Received: from [spam@gmail.com] (unknown [[gmail.com]])
by mail.example.com (Postfix) with ESMTPSA id 7D2CB12164B
for <spam@gmail.com>; Tue, 16 Jun 2015 06:43:36 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.example.com;
s=default; t=1434451416;
bh=EmposAsl9Yoxe9cb6dijtNnJsjZ0DuYCuwTZhRF2GXU=;
h=Date:From:To:Subject:From;
b=cjR7tpLvJ1JFVPf/ddLM4rpooeo95kFlu3ybHSHW8IK6oOTA1QfKy/Q14U9CojrDL
IDf9s2fqNIBBAhH81ivwdNQQFo64hw4/rstljealG1lNQRiIl0zUvD3bm8WbC1CfWb
i3/d8CgiAYkixStNSYEYQhNaUEixWMmznk/bUJJg=
Message-ID: <557FFDD8.2070201@example.com>
Date: Tue, 16 Jun 2015 13:43:36 +0300
From: =?UTF-8?B?TcSBcnRpxYbFoSBFZ2zEq3Rpcw==?= <me@example.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: spam@gmail.com
Subject: Some test subject
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
This is some message, however the mail is put to Spam folder...
DNS
MX 50 mail.example.com.
TXT @ "v=spf1 a mx ip4:[example.com] -all"
TXT _dmarc "v=DMARC1; p=quarantine; rua=mailto:postmaster@example.com"
TXT default._domainkey.mail "v=DKIM1; k=rsa; p=[some_long_string]"
结尾
一直在关注 nice tutorial and related posts here and here. Also checked DNS setup with public tools - 一切都很好。
更新
发送至 yahoo
的同一封电子邮件已放入 Inbox
文件夹...
问题的答案是这一行:
TXT _dmarc "v=DMARC1; p=quarantine; rua=mailto:postmaster@example.com"
作为 stated here 政策可以是
之一
- none——所谓的监听模式
- 隔离 - 根据接收者的能力对邮件进行可疑处理
- reject - 彻底拒绝邮件
最近决定放弃 google 邮件服务并建立私人邮件服务器。我想到的是从一个 me@example.com
发送到 inbox@gmail.com
和 spam@gmail.com
的电子邮件被相应地放入 Inbox
和 Spam
文件夹中。
问题
为什么邮件分发到不同的文件夹?邮件目标文件夹(*@gmail.com
)是否取决于
- 帐户设置 - 当我的
gmail
帐户被标记为 non-spam 时,我能够从me@example.com
接收到Inbox
的邮件? - 服务设置 -
gmail
的一些特定要求,例如,header如Received-SPF
、DKIM-Signature
? - 全局设置 - 超类、其他服务(yahoo、hotmail、outlook),more/less headers ?
留言
检查了某些 header 字段中的 pass
。那个恕我直言似乎也很好。各自的 IP 已隐藏。
Delivered-To: spam@gmail.com
Received: by [example.com] with SMTP id s194csp2015594wmd;
Tue, 16 Jun 2015 03:43:40 -0700 (PDT)
X-Received: by 10.66.154.233 with SMTP id vr9mr57332135pab.124.1434451419946;
Tue, 16 Jun 2015 03:43:39 -0700 (PDT)
Return-Path: <me@example.com>
Received: from mail.example.com (example.com. [[example.com]])
by mx.google.com with ESMTP id hf2si854902pbb.140.2015.06.16.03.43.38
for <spam@gmail.com>;
Tue, 16 Jun 2015 03:43:39 -0700 (PDT)
Received-SPF: pass (google.com: domain of me@example.com designates [example.com] as permitted sender) client-ip=[example.com];
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of me@example.com designates [example.com] as permitted sender) smtp.mail=me@example.com;
dkim=pass header.i=@mail.example.com;
dmarc=pass (p=QUARANTINE dis=NONE) header.from=example.com
Received: from [spam@gmail.com] (unknown [[gmail.com]])
by mail.example.com (Postfix) with ESMTPSA id 7D2CB12164B
for <spam@gmail.com>; Tue, 16 Jun 2015 06:43:36 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.example.com;
s=default; t=1434451416;
bh=EmposAsl9Yoxe9cb6dijtNnJsjZ0DuYCuwTZhRF2GXU=;
h=Date:From:To:Subject:From;
b=cjR7tpLvJ1JFVPf/ddLM4rpooeo95kFlu3ybHSHW8IK6oOTA1QfKy/Q14U9CojrDL
IDf9s2fqNIBBAhH81ivwdNQQFo64hw4/rstljealG1lNQRiIl0zUvD3bm8WbC1CfWb
i3/d8CgiAYkixStNSYEYQhNaUEixWMmznk/bUJJg=
Message-ID: <557FFDD8.2070201@example.com>
Date: Tue, 16 Jun 2015 13:43:36 +0300
From: =?UTF-8?B?TcSBcnRpxYbFoSBFZ2zEq3Rpcw==?= <me@example.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: spam@gmail.com
Subject: Some test subject
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
This is some message, however the mail is put to Spam folder...
DNS
MX 50 mail.example.com.
TXT @ "v=spf1 a mx ip4:[example.com] -all"
TXT _dmarc "v=DMARC1; p=quarantine; rua=mailto:postmaster@example.com"
TXT default._domainkey.mail "v=DKIM1; k=rsa; p=[some_long_string]"
结尾
一直在关注 nice tutorial and related posts here and here. Also checked DNS setup with public tools - 一切都很好。
更新
发送至 yahoo
的同一封电子邮件已放入 Inbox
文件夹...
问题的答案是这一行:
TXT _dmarc "v=DMARC1; p=quarantine; rua=mailto:postmaster@example.com"
作为 stated here 政策可以是
之一- none——所谓的监听模式
- 隔离 - 根据接收者的能力对邮件进行可疑处理
- reject - 彻底拒绝邮件