我有一个新的 VPS,我需要在上面设置一些 cron 作业来通知我服务器上发生的事情。我已经使用 sendmail 进行了测试,电子邮件确实从服务器发出,但在我的电子邮件中它们作为垃圾邮件到达。我需要执行哪些步骤才能正确配置该框?这是一个安装了 Scientific Linux 的新 VPS。有人能给我指明正确的方向吗?谢谢。
我可能要补充一点,我拥有的其他 vps 的邮件会直接发送到收件箱。此外,这封邮件来自我拥有的一个子域,该子域指向 A 记录上的另一台服务器。
编辑:以下是已创建的 SPF 记录:
Delivered-To: [email protected]
Received: by 10.114.184.100 with SMTP id et4csp1203226ldc;
Sun, 24 May 2015 14:44:42 -0700 (PDT)
X-Received: by 10.180.101.3 with SMTP id fc3mr25461787wib.47.1432503882045;
Sun, 24 May 2015 14:44:42 -0700 (PDT)
Return-Path: <[email protected]>
Received: from server.rjmarques.com ([1.123.123.1])
by mx.google.com with ESMTP id dx2si9334561wib.2.2015.05.24.14.44.41
for <[email protected]>;
Sun, 24 May 2015 14:44:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 1.123.123.1 as permitted sender) client-ip=1.123.123.1;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates 1.123.123.1 as permitted sender) [email protected]
Received: by server.rjmarques.com (Postfix, from userid 0)
id 2A498528D; Sun, 24 May 2015 21:44:41 +0000 (UTC)
Date: Sun, 24 May 2015 21:44:41 +0000
To: [email protected], [email protected]
Subject: Test
User-Agent: Heirloom mailx 12.5 7/5/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <[email protected]>
From: [email protected] (root)
This is a test
以及 spf 记录:
v=spf1 mx a ptr ip4:1.123.123.1 ~all