我一直在解决这个问题多年没有成功(我放弃了一段时间,只是希望Gmail最终“学习”来自我的服务器的消息不是垃圾邮件,但显然从来没有发生过)。
我是为我的客户运行论坛和下载服务器的游戏开发人员。 作为我的操作的一部分,我需要通常根据他们的请求发送人们的电子邮件。 例如,从我的论坛密码重置电子邮件。 这不是一个“散装”邮件的情况,也不是我的服务器发送大量的电子邮件。
我有两台服务器,都有相同的托pipe服务提供商。
一个是在一个共享主机环境,我得到一个subdir和我的域名解决使用虚拟主机。 从服务器收到的电子邮件一直都很好(虽然我没有设置电子邮件系统,也没有太多的控制权)。
另一个是我pipe理的VPS。 我有我自己的IP地址,并完全控制一切。 从VPS,我从来没有能够发送Gmail不会看到垃圾邮件的电子邮件。 我已经设置了spf,dkim,并且所有的testing似乎都通过了,即使根据Gmail“查看原始消息”时也是如此。 我不在任何我能看到的黑名单上。 我已经用甚至没有包含任何链接或图像的“个人”消息来testing它。 仍是垃圾邮件
但是,我只是运行了一个受控testing(每个服务器上的webmail发送相同的消息),并且非垃圾邮件服务器上的标题大不相同。 它看起来像通过邮件中继发送邮件。 也许这有帮助(如果邮件中继是可信的,我猜?)以下是Gmail认为非垃圾邮件的原始信息:
Delivered-To: jasonrohrer@gmail.com Received: by 10.182.233.195 with SMTP id ty3csp518065obc; Tue, 14 Feb 2017 22:46:33 -0800 (PST) X-Received: by 10.99.171.5 with SMTP id p5mr36545947pgf.182.1487141193736; Tue, 14 Feb 2017 22:46:33 -0800 (PST) Return-Path: <[email protected]> Received: from cross.birch.relay.mailchannels.net (cross.birch.relay.mailchannels.net. [23.83.209.46]) by mx.google.com with ESMTPS id m10si2359238pln.229.2017.02.14.22.46.33 for <[email protected]> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 22:46:33 -0800 (PST) Received-SPF: pass (google.com: domain of [email protected] designates 23.83.209.46 as permitted sender) client-ip=23.83.209.46; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 23.83.209.46 as permitted sender) [email protected] X-Sender-Id: asmallorange|x-authuser|[email protected] Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F1F6E1412C0 for <[email protected]>; Wed, 15 Feb 2017 06:46:32 +0000 (UTC) Received: from rory.asoshared.com (unknown [100.96.13.116]) by relay.mailchannels.net (Postfix) with ESMTPA id 7722A1413D6 for <[email protected]>; Wed, 15 Feb 2017 06:46:32 +0000 (UTC) X-Sender-Id: asmallorange|x-authuser|[email protected] Received: from rory.asoshared.com (rory.asoshared.com [172.20.104.49]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.7.19); Wed, 15 Feb 2017 06:46:32 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: asmallorange|x-authuser|[email protected] X-MailChannels-Auth-Id: asmallorange X-MC-Loop-Signature: 1487141192688:2323082264 X-MC-Ingress-Time: 1487141192688 Received: from [::1] (port=55001 helo=northcountrynotes.org) by rory.asoshared.com with esmtpa (Exim 4.87) (envelope-from <[email protected]>) id 1cdtME-00089O-RN for [email protected]; Wed, 15 Feb 2017 01:46:31 -0500 Received: from 50.1.19.178 ([50.1.19.178]) (SquirrelMail authenticated user [email protected]) by northcountrynotes.org with HTTP; Wed, 15 Feb 2017 01:46:30 -0500 Message-ID: <[email protected]> Date: Wed, 15 Feb 2017 01:46:30 -0500 Subject: Hello from an old friend From: [email protected] To: [email protected] User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-AuthUser: [email protected] Hey Jason, my old friend. Remember when we went to school together so long ago at Cornell. Boy! Those were the days. Hit me back if you want to chat. Justin J.
以下是来自VPS服务器的原始邮件,Gmail始终将邮件置于垃圾邮件文件夹中:
Delivered-To: [email protected] Received: by 10.182.233.195 with SMTP id ty3csp516102obc; Tue, 14 Feb 2017 22:33:25 -0800 (PST) X-Received: by 10.36.198.133 with SMTP id j127mr7649805itg.72.1487140405772; Tue, 14 Feb 2017 22:33:25 -0800 (PST) Return-Path: <[email protected]> Received: from server.thecastledoctrine.net (server.thecastledoctrine.net. [108.165.22.58]) by mx.google.com with ESMTPS id 127si5199936itx.63.2017.02.14.22.33.25 for <[email protected]> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 14 Feb 2017 22:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of [email protected] designates 108.165.22.58 as permitted sender) client-ip=108.165.22.58; Authentication-Results: mx.google.com; dkim=pass [email protected]; spf=pass (google.com: domain of [email protected] designates 108.165.22.58 as permitted sender) [email protected] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thecastledoctrine.net; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:To:From:Subject:Date:Message-ID; bh=7hycuruqtuxJJjoFV/Gyd/n8jFs9UDvFVpJOWI96Abw=; b=yPnvk3ZVtOiXNFo9+zRP0mEdKWoahLgA4Au/GeUrmKC6uJiB9A6VJyEudRHdhidBiOalf30exm6gk+7+To0y1XEMwGzHpch8I32RY85qrJmzptX8mrqBBRC9Q51hfWCTcgmSXwS1YsiIgJYu96GSw+PZ2lgPAfOkZaR+i6lrIKs=; Received: from localhost ([127.0.0.1]:54405 helo=thecastledoctrine.net) by server.thecastledoctrine.net with esmtpa (Exim 4.85) (envelope-from <[email protected]>) id 1cdt9X-0001bg-M5 for [email protected]; Wed, 15 Feb 2017 06:33:23 +0000 Received: from 50.1.19.178 ([50.1.19.178]) (SquirrelMail authenticated user [email protected]) by thecastledoctrine.net with HTTP; Wed, 15 Feb 2017 06:33:23 -0000 Message-ID: <[email protected]> Date: Wed, 15 Feb 2017 06:33:23 -0000 Subject: Hello from an old friend From: [email protected] To: [email protected] User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.thecastledoctrine.net X-AntiAbuse: Original Domain - gmail.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thecastledoctrine.net X-Get-Message-Sender-Via: server.thecastledoctrine.net: authenticated_id: [email protected] Hey Jason, my old friend. Remember when we went to school together so long ago at Cornell. Boy! Those were the days. Hit me back if you want to chat. Justin J.
我猜在这里我错过了一些简单的东西。
更新:
这是从VPS发送的另一封邮件,标记为垃圾邮件。 这是由我的一个PHP脚本(一个下载服务器,向某人发送他们付费的下载密钥)生成的消息。 它包含链接,但是当从共享服务器发送相同的消息时,它不是垃圾邮件。
Delivered-To: [email protected] Received: by 10.182.233.195 with SMTP id ty3csp529399obc; Tue, 14 Feb 2017 23:55:38 -0800 (PST) X-Received: by 10.36.161.70 with SMTP id n6mr7354632iti.76.1487145338304; Tue, 14 Feb 2017 23:55:38 -0800 (PST) Return-Path: <[email protected]> Received: from server.thecastledoctrine.net (server.thecastledoctrine.net. [108.165.22.58]) by mx.google.com with ESMTPS id w204si3392935itc.67.2017.02.14.23.55.37 for <[email protected]> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 14 Feb 2017 23:55:38 -0800 (PST) Received-SPF: pass (google.com: domain of [email protected] designates 108.165.22.58 as permitted sender) client-ip=108.165.22.58; Authentication-Results: mx.google.com; dkim=pass [email protected]; spf=pass (google.com: domain of [email protected] designates 108.165.22.58 as permitted sender) [email protected] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thecastledoctrine.net; s=default; h=Message-Id:Date:Subject:To:From; bh=GFDUYdq+5oW7xSkEaXekddRXEY2zhMAKlOU/+v0g27c=; b=s3kENICTVFbW8saQ0ya7bh1V+XIb9a4NCQlUghvQHa/52Rw40V3e6a33jRgJCJx2v9kc4NhLDjUM6Q/upbLh6kRGWwTCotG7bIrLlhlKGnLgNaraffq2kVuNkTYi+auts7QzofJBs3Gw1ctvYJf7LH3fxVgiEqUK06P2Q0Dnim4=; Received: from [108.165.22.59] (port=39156 helo=localhost) by server.thecastledoctrine.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from <[email protected]>) id 1cduR6-0000KN-OG for [email protected]; Wed, 15 Feb 2017 07:55:36 +0000 From: Jason Rohrer <[email protected]> To: [email protected] Subject: Your [The Castle Doctrine] download is ready Date: Wed, 15 Feb 2017 02:55:35 -0500 Message-Id: <[email protected]> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.thecastledoctrine.net X-AntiAbuse: Original Domain - gmail.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thecastledoctrine.net X-Get-Message-Sender-Via: server.thecastledoctrine.net: authenticated_id: [email protected] Jason Rohrer Gmail: Keep your ticket ID secure, because it is your sole way of accessing your account on the game server. Your can now access your download at: http://thecastledoctrine.net/ts/server.php?action=show_downloads&ticket_id=8G5QX You can also access your download manually by entering your ticket 8G5QX here: http://thecastledoctrine.net
不,这不是同一个问题。 在这里,我有两个非批量电子邮件的例子,一个交付,一个不是。 通常的答案是没有用的,因为我已经在做所有这些东西。
以下是我解决这个问题的方法:
我把自己列入了白名单。
我用SendGrid购买了一个10美元/月的帐户,这使我每个月可以发送多达40,000封电子邮件,而且没有日常限制。
当我切换到他们的smtp服务器,而不是我自己的,所有相同的电子邮件开始到GMail收件箱,而不是垃圾邮件文件夹。
我的共享托pipe服务提供商使用的mailchannels.com与SendGrid类似,但对于有多个不可信用户的大型组织(如希望为客户提供可靠的电子邮件发送function的Web托pipe公司)的服务意味着什么。
无论如何,这些日子里,似乎只是不在黑名单上,拥有所有正确的电子邮件/ DNSvalidation(SPF等)是不够的。
Gmail和其他电子邮件服务显然取决于白名单。 我猜测SendGrid,MailGun,PostMark等与Google有特殊的协议,甚至付费合同,以帮助他们提供所有的电子邮件。 这些服务也严格监控来自他们自己客户的垃圾邮件 – 他们的声誉取决于它。
这是我从来没有见过的答案,就像SPF和DKIM已经在尝试帮助小域名所有者讨论过一样。 毕竟,这是一个长期的问题(我尝试了一切,但是来自我的域名的邮件仍然没有收件箱)。
SPF和DKIM没有帮助阻止垃圾邮件,所以他们几乎没用。 根据我的经验,Gmail甚至不关心他们。 那么,除了certificate他们在乎的是什么:
所有重要的是你的电子邮件来自哪里,以及这个来源是否在信任圈内(并且需要SPF)。
如果你是一个把自己的VPS和自己的域名一样的家伙,像我一样,你是在信任的圈子之外。 你为什么不在外面? 任何人都可以在便宜的VPS上build立一个域,并为该域configurationSPF和DKIM。 即使是垃圾邮件发送者 我的意思是,如果我愿意的话,今晚我可以收到一封发送垃圾邮件的VPS。
假设你不是那么大而且众所周知,每个人都会自然而然地信任你,唯一的方法就是和一个已经在圈子里的人签约。
就像支付一个authentication机构来把你带入信任的encryption圈。
否则,你只是为自己保证。
随着垃圾邮件问题的不断发展,为SPF和DKIM提供担保已经不够了。
对于这些电子邮件中继服务,这可悲的是做了一个非常有利可图的业务。
我试图抵制这一结论,回想起在扫帚室里运行的邮件服务器的辉煌岁月……但似乎这些日子已经过去了,我不得不放弃了电子邮件独立的梦想。