【问题标题】:Gmail moves email to spam folderGmail 将电子邮件移至垃圾邮件文件夹
【发布时间】:2015-09-01 05:18:15
【问题描述】:

最近决定放弃谷歌邮件服务并建立私人邮件服务器。我想到的是从me@example.com 发送到inbox@gmail.comspam@gmail.com 的电子邮件相应地放在InboxSpam 文件夹中。

问题

为什么邮件会分到不同的文件夹?邮件目标文件夹(*@gmail.com)是否依赖于

  • 帐户设置 - 当我的gmail 帐户中标记为非垃圾邮件时,我能够从me@example.com 接收到Inbox 的邮件?
  • 服务设置 - gmail 的一些特定要求,例如,Received-SPFDKIM-Signature 等标头?
  • 全局设置 - 超类、其他服务(yahoo、hotmail、outlook)、更多/更少标题?

留言

检查了某些标题字段中的pass'es。恕我直言,这似乎也很好。相应的 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 和相关帖子herehere。还使用public tools 检查了 DNS 设置 - 一切都很好。

更新

发送到yahoo 的同一封电子邮件被放入Inbox 文件夹...

【问题讨论】:

    标签: email dns smtp gmail


    【解决方案1】:

    问题的答案是这一行:

    TXT _dmarc "v=DMARC1; p=quarantine; rua=mailto:postmaster@example.com"

    作为stated here,该策略可以是其中之一

    • 无 - 所谓的监控模式
    • 隔离 - 根据接收者的能力来处理可疑的邮件
    • reject - 彻底拒绝消息

    【讨论】:

      猜你喜欢
      • 2014-08-07
      • 1970-01-01
      • 2011-06-29
      • 2017-11-03
      • 2010-11-19
      • 2014-06-25
      • 1970-01-01
      • 2011-07-12
      相关资源
      最近更新 更多