postfix错误将邮件发送到垃圾邮件

时间:2012-11-24 17:54:26

标签: php smtp

我有一个redmine实例使用GMail帐户发送电子邮件,我意识到电子邮件被gmail识别为垃圾邮件。使用postfix作为中继,我可以通过控制台发送电子邮件(使用'mail'命令),但redmine仍然被标记为垃圾邮件,

这是我的邮件详情

Delivered-To: abc@example.com
Received: by 10.114.29.166 with SMTP id l6csp194412ldh;
        Fri, 23 Nov 2012 03:10:39 -0800 (PST)
Received: by 10.58.162.130 with SMTP id ya2mr5620087veb.2.1353669038834;
        Fri, 23 Nov 2012 03:10:38 -0800 (PST)
Return-Path: <redmine@example.com>
Received: from domU-12-31-39-03-7D-77.compute-1.internal (ec2-xxx-xx-xxx-xx.compute-1.amazonaws.com. [xxx.xx.xxx.xx])
        by mx.google.com with ESMTP id y12si5657502vco.81.2012.11.23.03.10.38;
        Fri, 23 Nov 2012 03:10:38 -0800 (PST)
Received-SPF: neutral (google.com: xxx.xx.xxx.xx is neither permitted nor denied by best guess record for domain of redmine@example.com) client-ip=xxx.xx.xxx.xx;
Authentication-Results: mx.google.com; spf=neutral (google.com: xxx.xx.xxx.xx is neither permitted nor denied by best guess record for domain of redmine@example.com) smtp.mail=redmine@example.com
Received: by domU-12-31-39-03-7D-77.compute-1.internal (Postfix, from userid 0)
    id 3FDD638407; Fri, 23 Nov 2012 11:10:38 +0000 (UTC)

1 个答案:

答案 0 :(得分:2)

您的后缀没有任何问题。您需要为邮件服务器SPF设置DKIMreverse PTRIP记录。你可以谷歌“如何设置SPF和DKIM”。

我跟随杰夫阿特伍德this article,了解了所需的原因以及如何设置。