我有一个简单的.NET应用程序,它使用SMTPClient发送电子邮件。
我从本地服务器上的经过身份验证的帐户发送SPF记录,主机(gogrid)不确定他们还可以做些什么来解决问题。
来自我的简单应用程序的任何电子邮件都被标记为垃圾邮件,但使用该smtp服务器或通过squirrelmail等发送的任何其他电子邮件都可以正常运行。因此,必须有像squirrelmail这样的应用程序正在做的事情,我不知道。
有没有其他人遇到和/或解决了这个问题?
答案 0 :(得分:2)
使用Gmail中的显示原始命令比较两封电子邮件(squirrelmail与SmtpClient)的MIME输出,并在此处发布差异。
另外,请检查SmtpClient SMTP设置。
答案 1 :(得分:2)
尝试使用PHP mail()函数发送标头,该函数将“发件人”地址指定为服务器上的有效电子邮件地址。也就是说:在您的网络服务器上创建一个电子邮件帐户以“发送”电子邮件,然后让PHP脚本报告您发送的来自该帐户的邮件。我使用我的邮件程序执行此操作,并且没有任何垃圾邮件过滤问题。
答案 2 :(得分:1)
您应该考虑使用dkim对邮件进行签名。
或
http://en.wikipedia.org/wiki/DomainKeys_Identified_Mail
关于您的垃圾邮件与干净的电子邮件内容,请查看“垃圾邮件”消息中的x-spam-status字段。您可以通过检查针对spamassassin描述标记的测试来尝试找出问题所在:
答案 3 :(得分:0)
垃圾邮件电子邮件输出:
Delivered-To: there.test.hey@gmail.com Received: by 10.140.252.20 with SMTP id z20cs531261rvh; Thu, 13 Aug 2009 17:05:42 -0700 (PDT) Received: by 10.115.117.7 with SMTP id u7mr1383293wam.152.1250208342113; Thu, 13 Aug 2009 17:05:42 -0700 (PDT) Return-Path: Received: from n19.c05.mtsvc.net (n19.c05.mtsvc.net [70.32.68.19]) by mx.google.com with ESMTP id 29si1711715pzk.0.2009.08.13.17.05.41; Thu, 13 Aug 2009 17:05:41 -0700 (PDT) Received-SPF: neutral (google.com: 70.32.68.19 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) client-ip=70.32.68.19; Authentication-Results: mx.google.com; spf=neutral (google.com: 70.32.68.19 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) smtp.mail=admin@flatfinderadmin.com Received: from [96.49.122.252] (port=18788 helo=sk1) by n19.c05.mtsvc.net with esmtpa (Exim 4.63) (envelope-from ) id 1MbkIe-00078B-BG for there.test.hey@gmail.com; Thu, 13 Aug 2009 17:05:40 -0700 MIME-Version: 1.0 From: admin@flatfinderadmin.com To: there.test.hey@gmail.com Date: 13 Aug 2009 17:05:42 -0700 Subject: Flat Finder Site Submitted Contact Form Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: X-Authenticated-User: 75266 admin@flatfinderadmin.com X-Spam-Status: "score=3.7 tests=ALL_TRUSTED, HTML_IMAGE_ONLY_16, HTML_MESSAGE, HTML_SHORT_LINK_IMG_2, MIME_HTML_ONLY, NO_REAL_NAME version=3.1.7 cmae=v=1.0 c=1 a=Bu8eb_7rEXsA:10 a=wNIIKIUcX8P6fymBW3VY0A==:17 a=SSmOFEACAAAA:8 a=btttyEYfAAAA:8 a=P_WOZhPR8xpSgznosTMA:9 a=L7jHSo-IajUz1O2H4c4A:7 a=c8QRsX8pXm0wgMQia4dzJuyZCb0A:4 a=L0MSjj-u4uAA:10 a=MSl-tDqOz04A:10 xcat=Undefined/Undefined" X-Spam-Level: *** = =0D=0A=0D=0A=0D=0A = Site Contact=0D=0A=0D=0A= =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A = =0D=0A =0D=0A =0D=0A A visitor= to the site has submitted the following info through the contact form:= =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A User: John Doe=0D=0A Email: doyouunderstand@gmail.com
=0D=0A= Message: Testing=0D=0A =0D=0A = =0D=0A =0D=0A=0D=0A=0D=0A
良好的电子邮件输出:
Delivered-To: there.test.hey@gmail.com Received: by 10.140.252.20 with SMTP id z20cs531296rvh; Thu, 13 Aug 2009 17:07:24 -0700 (PDT) Received: by 10.115.100.20 with SMTP id c20mr1379009wam.75.1250208443895; Thu, 13 Aug 2009 17:07:23 -0700 (PDT) Return-Path: Received: from n17.c05.mtsvc.net (n17.c05.mtsvc.net [70.32.68.17]) by mx.google.com with ESMTP id 13si1834503pzk.161.2009.08.13.17.07.23; Thu, 13 Aug 2009 17:07:23 -0700 (PDT) Received-SPF: neutral (google.com: 70.32.68.17 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) client-ip=70.32.68.17; Authentication-Results: mx.google.com; spf=neutral (google.com: 70.32.68.17 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) smtp.mail=admin@flatfinderadmin.com Received: from localhost ([127.0.0.1]:60628 helo=s75266.gridserver.com) by n17.c05.mtsvc.net with esmtp (Exim 4.63) (envelope-from ) id 1MbkKH-0006Xh-OF for there.test.hey@gmail.com; Thu, 13 Aug 2009 17:07:23 -0700 Received: from 96.49.122.252 (proxying for 96.49.122.252) (SquirrelMail authenticated user admin@flatfinderadmin.com) by s75266.gridserver.com with HTTP; Thu, 13 Aug 2009 17:07:21 -0700 (PDT) Message-ID: Date: Thu, 13 Aug 2009 17:07:21 -0700 (PDT) Subject: Flat Finder Site Submitted Contact Form From: admin@flatfinderadmin.com To: there.test.hey@gmail.com User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: "score=-0.9 tests=ALL_TRUSTED, NO_REAL_NAME version=3.1.7 cmae=v=1.0 c=1 a=Bu8eb_7rEXsA:10 a=wNIIKIUcX8P6fymBW3VY0A==:17 a=oHM1V9sc3__v4s30wF0A:9 a=AUDcTUBt7KQaFxkMUcF7gsiVO_sA:4 xcat=Undefined/Undefined" X-Spam-Level: Testing
答案 4 :(得分:-1)
可能您错过了MIME信息中的编码,或者未设置或不同的回复邮件使其看起来像假的。如果没有看到你正在/不填写的参数,很难说。
SLaks的答案也是很好的一步。
考虑到来自服务器的其他电子邮件未被标记,黑名单或缺少参数的可能性不大。