我用POSTFIX
它来发送邮件。从我的邮件服务器发送的邮件在 GMail 中mydomain.com
被标记为SPAM
。在其他电子邮件服务(如 Yahoo 和 RediffMail)中,邮件会被接收在收件箱文件夹中。
SPF 记录是v=spf1 ip4:5x.6x.7x.8x ~all
DKIM 是
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;d=customnme.mydomain.com; s=mail; t=1469439662;bh=ox+NQjMd0N/RPAYLG5ZMS6WQnHCFcWQQorJHgFWEy0s=;h=From:To:Subject:Date:From;b=xrwOY34hTlIVVKxVxzGUpE+Z4TpQJhD+Zyw8YaU18hJgZmcbdWL49kGSpmf8qLPQrNgl6c796THzjozx3N1pi41H09LCnvsrFC9bHtIOzuESIIPtNF5Uz6iRgkNa092tjc2ezsLS2epa3Ckt87yQNlnGbabszD+i/ZWRRhM5Onw=
这是 DMARC
v=DMARC1; p=none; sp=none; rua=mailto:[email protected]; ruf=mailtp:[email protected]
SOA 记录是
mydomain.com. SOA IN 604800 dnsserver1.mydomain.com 1720 1201 7000 2419200 86400
我希望所有这些记录都是正确的。而且我的邮件服务器不是黑名单。我通过这个网站检查过,http://mxtoolbox.com/SuperTool.aspx#。反向 DNS 也正常工作。
垃圾邮件显示此消息,It is similar to messages that were detected by our spam filters
我谷歌了一下,发现问题出在邮件内容上。但是从我的另一台邮件服务器发送的相同邮件内容在收件箱中正确接收。
以下是 GMail 中的电子邮件标题,
Delivered-To: [email protected]
Received: by 10.194.87.233 with SMTP id bb9csp422958wjb;
Wed, 12 Oct 2016 01:09:21 -0700 (PDT)
X-Received: by 10.98.71.215 with SMTP id p84mr3325711pfi.59.1476259760980;
Wed, 12 Oct 2016 01:09:20 -0700 (PDT)
Return-Path: <[email protected]>
Received: from mydomain.com (mydomain.com. [5x.6x.7x.8x])
by mx.google.com with ESMTPS id g6si8043712pfc.188.2016.10.12.01.09.20
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 12 Oct 2016 01:09:20 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 5x.6x.7x.8x as permitted sender) client-ip=5x.6x.7x.8x;
Authentication-Results: mx.google.com;
dkim=pass [email protected];
spf=pass (google.com: domain of [email protected] designates 5x.6x.7x.8x as permitted sender) [email protected];
dmarc=pass (p=NONE dis=NONE) header.from=test.mydomain.com
Received: from ip-1x-6x-6x-1x.ec2.internal (ec2-5x-2x-2x-2x.compute-1.amazonaws.com [5x.2x.2x.2x]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: support_test) by mydomain.com (Postfix) with ESMTPSA id D6FCA62853 for <[email protected]>; Wed, 12 Oct 2016 08:09:19 +0000 (UTC)
Authentication-Results: dnsserver1.mydomain.com; dmarc=none header.from=test.mydomain.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=test.mydomain.com; s=mail; t=1476259760; bh=KBZ/3urE8FjgB2zmx6SQKeJVnsy7kLKwZTpleUeh8ps=; h=From:To:Subject:Date:From; b=YoroACSjWATce13HYo21DK+KFMAz8I1NAdUtdbCGdKSEgrSH28Ak6QDqBMoaC9G8C
zc6xveY/WS7wm1GSW+QakyKtIMCmuuL7gVmiPygcqiBGOFd79nY0aARowNs1aZ7two
uMY/O8Vmj8rbUZKB4de7kVnioCkka5MwImP01gVI=
From: support_test <[email protected]>
To: [email protected]
Message-ID: <620507801.2407.1476259765430.JavaMail.root@ip-1x-6x-6x-1x.ec2.internal>
Subject: Mail Subject
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Mailer: Custom Mailer
Date: Wed, 12 Oct 2016 08:09:19 +0000 (UTC)
我认为服务器配置没有问题。我怀疑我的邮件服务器是否被GMail标记为垃圾邮件。
我已经在 Google 论坛上发布了这个问题。但没有收到正确的回复。我想知道我的邮件服务器是否被 GMail 标记为垃圾邮件。有什么方法可以检查吗?
答案1
去http://postmaster.google.com/并在那里注册,这是 Google 推荐的https://support.google.com/mail/answer/188131用于阻止电子邮件。
Google 可在此为您提供您的 IP 和域名的个人评分。
验证您的域名也有副作用,即您的电子邮件得分更高。
另外,请确保不要发送非常短(一个词)的测试电子邮件或随机字符串(例如经常使用的“uname -a | mail ...”),因为这些会被评为低分。