Gmail/Hotmail 将电子邮件标记为垃圾邮件

发布于 2024-07-30 14:15:45 字数 278 浏览 15 评论 0原文

我有一个简单的 .NET 应用程序,它使用 SMTPClient 发送电子邮件。

我从本地服务器上经过身份验证的帐户发送 SPF 记录,并且主机 (gogrid) 不确定他们还能采取什么措施来解决该问题。

来自我的简单应用程序的任何电子邮件都会被标记为垃圾邮件,但使用该 smtp 服务器或通过 squirrelmail 等发送的任何其他电子邮件都可以正常发送。 所以肯定有像 squirrelmail 这样的应用程序正在做的事情我错过了。

有其他人遇到和/或解决过这个问题吗?

I have a simple .NET app that is sending out email using SMTPClient.

I am sending from an authenticated account on the local server with an SPF record, and the host (gogrid) is unsure what else they can do to solve the problem.

Any email from my simple app is flagged as spam, but any other email sent using that smtp server, or through squirrelmail, etc, comes through fine. So there must be something that apps like squirrelmail are doing that I'm missing.

Has anyone else encountered and/or solved this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

拒绝两难 2024-08-06 14:15:46

尝试使用 PHP mail() 函数发送标头,将“发件人”地址指定为服务器上的有效电子邮件地址。 也就是说:在您的网络服务器上创建一个电子邮件帐户用于“发送”电子邮件,然后让 PHP 脚本将您发送的消息报告为来自该帐户。 我用我的邮件程序执行此操作,并且在垃圾邮件过滤方面没有遇到任何问题。

Try sending a header with the PHP mail() function that specifies the 'from' address as being a valid email address on your server. That is to say: create an email account on your webserver for 'sending' the emails, then have the PHP script report the messages you send as coming from that account. I do this with my mailer and haven't had any problems with spam filtering.

冰雪之触 2024-08-06 14:15:46

您应该考虑使用 dkim 对消息进行签名。


http://www.dkim.org/

http://en.wikipedia.org/wiki/DomainKeys_Identified_Mail

关于您的垃圾邮件与正常电子邮件内容,请查看 x-spam-status 字段“垃圾邮件”消息。 您可以尝试通过检查根据 spamassassin 描述标记的测试来找出问题所在:

http: //spamassassin.apache.org/tests_3_2_x.html

You should consider signing your messages using dkim.

see
http://www.dkim.org/

or

http://en.wikipedia.org/wiki/DomainKeys_Identified_Mail

regarding your spam vs. clean email content, look at the x-spam-status field in the "spam" message. You can try to figure out what the problem is by checking the tests that were flagged against the spamassassin descriptions:

http://spamassassin.apache.org/tests_3_2_x.html

盗心人 2024-08-06 14:15:46

垃圾邮件输出:

Delivered-To: [email protected]
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 [email protected]) 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 [email protected]) [email protected]
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 [email protected]; Thu, 13 Aug 2009 17:05:40 -0700
MIME-Version: 1.0
From: [email protected]
To: [email protected]
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 [email protected]
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: [email protected]
=0D=0A= Message: Testing=0D=0A =0D=0A = =0D=0A =0D=0A=0D=0A=0D=0A

良好的电子邮件输出:

Delivered-To: [email protected]
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 [email protected]) 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 [email protected]) [email protected]
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 [email protected]; Thu, 13 Aug 2009 17:07:23 -0700
Received: from 96.49.122.252 (proxying for 96.49.122.252)
        (SquirrelMail authenticated user [email protected])
        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: [email protected]
To: [email protected]
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

Spam Email Output:

Delivered-To: [email protected]
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 [email protected]) 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 [email protected]) [email protected]
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 [email protected]; Thu, 13 Aug 2009 17:05:40 -0700
MIME-Version: 1.0
From: [email protected]
To: [email protected]
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 [email protected]
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: [email protected]
=0D=0A= Message: Testing=0D=0A =0D=0A = =0D=0A =0D=0A=0D=0A=0D=0A

Good Email Output:

Delivered-To: [email protected]
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 [email protected]) 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 [email protected]) [email protected]
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 [email protected]; Thu, 13 Aug 2009 17:07:23 -0700
Received: from 96.49.122.252 (proxying for 96.49.122.252)
        (SquirrelMail authenticated user [email protected])
        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: [email protected]
To: [email protected]
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
愛放△進行李 2024-08-06 14:15:46

您可能缺少 MIME 信息中的编码,或者您的回信电子邮件未设置或不同,使其看起来是假的。 如果不知道您填写/未填写哪些参数,就很难说。

SLAks 的回答也是很好的一步。

考虑到来自服务器的其他电子邮件没有被标记,因此不太可能出现黑名单或丢失参数。

Likely you are missing your encoding in your MIME info, or have your return email not set or different to make it look fake. Without seeing what parameters you are/are not filling out it is hard to say.

SLaks answer is good step as well.

Considering that other email from the server is not being flagged, a blacklist or missing parameters there is unlikely.

才能让你更想念 2024-08-06 14:15:45

使用 Gmail 中的“显示原始”命令比较两封电子邮件(squirellmail 与 SmtpClient)的 MIME 输出,并在此处发布差异。

另外,检查 SmtpClient 的 SMTP 设置。

Compare the MIME output of the two emails (squirellmail vs SmtpClient), using the Show original command in Gmail, and post the differences here.

Also, check SmtpClient's SMTP settings.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文