Gmail将电子邮件移至垃圾邮件文件

时间:2015-06-16 11:49:59

标签: email dns smtp gmail

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

问题

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

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

消息

检查了某些标题字段中的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]"

OUTRO

关注了nice tutorial相关帖子herehere。还使用public tools检查了DNS设置 - 一切都很好。

更新

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

1 个答案:

答案 0 :(得分:0)

问题的答案是这一行:

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

作为stated here,政策可以是

之一
  • none - 所谓的监控模式
  • 隔离 - 根据接收方功能怀疑地处理邮件
  • 拒绝 - 完全拒绝该消息