Gmail/Hotmail 将电子邮件标记为垃圾邮件
我有一个简单的 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
尝试使用 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.
您应该考虑使用 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
垃圾邮件输出:
良好的电子邮件输出:
Spam Email Output:
Good Email Output:
您可能缺少 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.
使用 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.