我的smtp服务器成功发送电子邮件,但它们始终标记为垃圾邮件... 我不知道该怎么做,因为我几乎尝试了所有我知道的事情!
以下是测试邮件的示例,该邮件被Gmail标记为垃圾邮件:
Delivered-To: me@gmail.com
Received: by 10.31.70.71 with SMTP id t68csp1285260vka;
Mon, 1 Feb 2016 00:18:21 -0800 (PST)
X-Received: by 10.28.218.81 with SMTP id r78mr10500731wmg.91.1454314701785;
Mon, 01 Feb 2016 00:18:21 -0800 (PST)
Return-Path: <root@mydomain.com>
Received: from mail.mydomain.com (fey75-1-78-103-218-182.fbxo.proxad.net. [78.103.218.182])
by mx.google.com with ESMTPS id r138si13580246wmg.30.2016.02.01.00.18.21
for <me@gmail.com>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Mon, 01 Feb 2016 00:18:21 -0800 (PST)
Received-SPF: pass (google.com: domain of root@mydomain.com designates *.*.*.* as permitted sender) client-ip=*.*.*.*;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of root@mydomain.com designates *.*.*.* as permitted sender) smtp.mailfrom=root@mydomain.com;
dkim=pass header.i=@mydomain.com
Received: by mail.mydomain.com (Postfix, from userid 0)
id C6497206ED; Mon, 1 Feb 2016 09:18:39 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mydomain.com;
s=default; t=1454314719;
bh=BPNe5ixVaNtND+KXb04+pJIPURN/pWNapjnUQHtz9WQ=;
h=To:Subject:Date:From:From;
b=aQvdqGN+62OH+QyL/1tObwwv8L9Jl86nmHvjdWgkCSEMNniZ1HsE9b//q2rD8CLDd
gdiEzx6XKbt4MVAnkYH0TU3symOz3dGbbcfPGSjRnC9YO2wvprE+FJAMwzYRPawqCo
XPvlXOSMmRztu++VewdUzfL3Lg5DDHb78Gt9c/Zk=
To: me@gmail.com
Subject: test
Message-Id: <20160201081839.C6497206ED@mail.mydomain.com>
Date: Mon, 1 Feb 2016 09:18:39 +0100 (CET)
From: root@mydomain.com (root)
test
有什么我错过的吗?
谢谢。
答案 0 :(得分:2)
简而言之:
您需要在DNS上为您的域添加正确的SPF记录,我还建议您为发送电子邮件的ip添加反向DNS查找。
长: 1.确保您的mailsender具有您在示例中发送电子邮件的实际域名:mail.mydomain.com应指向服务器的externa ip-address。此外,ip-address应解析为mail.mydomain.com
2.在您的DNS中添加SPF记录 这是一个例子: mail.mydomain.com。 IN TXT“v = spf1 mx a ip4:1.2.3.4/24~all”
(SPF记录生成器:http://www.spfwizard.net/)