如何降低电子邮件的垃圾邮件分数?

发布于 2024-08-14 00:22:25 字数 1146 浏览 4 评论 0原文

我正在向用户发送新的登录名和密码,但是当我在互联网上测试我们网站的版本时,垃圾邮件刺客的垃圾邮件分数为 4.6。这意味着它被困住了。

电子邮件是 HTML(因此营销部门有漂亮的字体和颜色)和链接图像。

MailMessage() 对象似乎并没有让我对消息的输出格式有很多控制。

我可以采取哪些措施来降低垃圾邮件分数?

我使用这个发送:

/* send an email */
MailMessage msg = new MailMessage();
msg.IsBodyHtml = true;
//msg.BodyEncoding = Encoding.UTF8;
msg.To.Add(new MailAddress(sToEmail));
msg.From = new MailAddress(sFromEmail);
msg.Subject = sEmailSubject;
msg.Body = sEmailTemplate;
try
{
    client.Send(msg);
}

垃圾邮件分数是这样的:

X-Spam-Score: 4.6 (++++)
X-Spam-Report: Spam detection software report (4.6 points):
    pts rule name              description
    ---- ---------------------- --------------------------------------------------
    1.8 HTML_IMAGE_ONLY_20     BODY: HTML: images with 1600-2000 bytes of words
    0.0 HTML_MESSAGE           BODY: HTML included in message
    1.7 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
    1.1 HTML_MIME_NO_HTML_TAG  HTML-only message, but there is no HTML tag
    0.1 RDNS_NONE              Delivered to trusted network by a host with no rDNS

I am sending a new logon and password to a user, however when I do on a test version of our site on the internet the Spam score is 4.6 by spam assassin. Which means it gets trapped.

The Email is HTML (so the marketing dept have their nice fonts and colours) with a linked image.

The MailMessage() object does not appear to give me a lot of control over the output format of the message.

What measures could I take to lower the spam score?

I am sending using this:

/* send an email */
MailMessage msg = new MailMessage();
msg.IsBodyHtml = true;
//msg.BodyEncoding = Encoding.UTF8;
msg.To.Add(new MailAddress(sToEmail));
msg.From = new MailAddress(sFromEmail);
msg.Subject = sEmailSubject;
msg.Body = sEmailTemplate;
try
{
    client.Send(msg);
}

The spam score is this:

X-Spam-Score: 4.6 (++++)
X-Spam-Report: Spam detection software report (4.6 points):
    pts rule name              description
    ---- ---------------------- --------------------------------------------------
    1.8 HTML_IMAGE_ONLY_20     BODY: HTML: images with 1600-2000 bytes of words
    0.0 HTML_MESSAGE           BODY: HTML included in message
    1.7 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
    1.1 HTML_MIME_NO_HTML_TAG  HTML-only message, but there is no HTML tag
    0.1 RDNS_NONE              Delivered to trusted network by a host with no rDNS

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

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

发布评论

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

评论(9

A君 2024-08-21 00:22:25

两种解决方案:

  1. 添加更多内容,使 不再是电子邮件的主要部分 - 以不带标签的干净文本加载更多内容。 (我知道它看起来很蹩脚,但版权声明、取消订阅说明和注册规则确实是很好的文本填充)在新的哑剧部分中添加纯文本版本。发送一个正确构造的 HTML,其中实际包含 标记。

  2. 用四次线索多次打击营销人员,并仅以文本形式发送文本电子邮件 - 正如 $DEITY 的意图。

Two solutions:

  1. Add more content, so that the <img> is not the main part of the email - loads more content in clean text without tags. (I know it looks lame, but copyright notices, unsubscribe instructions and registration rules make a really good text padding) Add a text-only version in a new mime part. Send a properly constructed HTML which actually contains the <html> tag.

  2. Smack marketing people with a clue-by-four many times and send text emails in text only - as $DEITY intended.

叫嚣ゝ 2024-08-21 00:22:25

使用 AlternateView 类,您可以指定一个text/plain body 并为营销人员提供备用 html 正文。即使文本部分只说你应该有一个 html 启用阅读器,垃圾邮件过滤器也会下降 1.8 分。

然后,如果您以适当的标签开始 HTML 消息(只需使用完整的 html 页面),您将下降 2.8 分。

您还可以包含 LinkedResource,这样您就可以发送图像而不显示附件,更好。

Using the AlternateView class, you can specify a text/plain body and provide an alternate html body for the marketing boys. Even if the text part only says that you should have an html enable reader, the spam filter will drop 1.8 points.

Then if you start the HTML message with a proper tag (just take a full html page), you will drop 2.8 poins.

You can also include LinkedResources so you can send the image without showing attachments, much nicer.

﹂绝世的画 2024-08-21 00:22:25

它已经告诉您要做什么,但我会为您详细说明:

  1. 包含更多文本或更少图像。
  2. 如果您想要 HTML,那么您在这里无能为力。不过,它并没有在默认的 SpamAssassin 安装中加权。
  3. 除了 HTML 版本之外,还添加文本版本的内容。
  4. 添加缺少的 ; tag
  5. 为您的外发邮件服务器的 IP 设置反向 DNS。

第 3 步和第 4 步可能是最重要的。 1 是你无法控制的(营销可以控制这一点)。 5 会有帮助,但它的评级相当低。

It's already telling you what to do, but I'll spell it out for you:

  1. Include more text or less images.
  2. Nothing you can do here if you want HTML. It's not weighted on the default SpamAssassin install anyway, though.
  3. Add in a text version of the content in addition to the HTML version.
  4. Add in the missing <html> tag
  5. Set up reverse DNS for your outgoing mail server's IP.

Steps 3 and 4 are probably the most important to do. 1 is out of your control (marketing is in control of that). 5 would help, but it's rated fairly low.

树深时见影 2024-08-21 00:22:25

影响垃圾邮件分数的邮件发送方式似乎并不重要,重要的是邮件包含的内容。

尝试不同版本的消息内容,看看还有什么可以改变。

1.8分似乎是来自图像。取出图像。

您如何创建 HTML?在考虑更改邮件发送方式之前,我会先考虑所有这些因素,因为这不是垃圾邮件的一个因素。

It seems like it doesn't matter how you send the message that effects the spam score, but what the message contains.

Try different versions of the message contents and see what else can change.

1.8 points seems to be from the images. Take out the images.

How are you creating the HTML? I would look at all those factors before I would look at changing how the message is sent, because that is not a factor in spam.

稚气少女 2024-08-21 00:22:25

1.1 HTML_MIME_NO_HTML_TAG 纯 HTML 消息,但没有 HTML 标记

首先,您需要在 HTML 消息周围添加一个 HTML 标记。如果你让你的 HTML 验证,似乎它会降低一点分数。这会让你的分数下降到 3.5 分。

不要忘记在您的发件人地址中添加一个友好的名称,这会使我们的电子邮件陷入过滤器。

电子邮件来自:
J Random Hacker [电子邮件受保护]>

优于 [电子邮件受保护]

1.1 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag

Well for one, you need an HTML tag around your HTML message. If you make your HTML validate, it seems like it'd lower the score a bit. That'd knock you down to 3.5 points.

Don't forget a nice friendly name in your from address too, that's making our emails get caught up in filters.

email from:
J Random Hacker <[email protected]>

is better than [email protected]

末蓝 2024-08-21 00:22:25

如果您只有一个图片的 html 链接,那么它看起来就像垃圾邮件,并且电子邮件客户端默认阻止图像的人(大多数在线客户端都会这样做)将无法看到您的消息。

与其使用一张大图像,不如尝试将其分解并使用 html 表格对其进行布局。另外,请确保在 img 标签上设置 alt 属性。

除了垃圾邮件刺客分数之外,要查看的另一件事是确保您已设置发件人策略框架< /a> 代表您发送电子邮件的域。一些在线电子邮件提供商根本不对内容中的垃圾邮件进行评分,而是使用 SPF 和用户的“报告垃圾邮件”,因此在进行大型广播之前,请确保您已完成此设置并正常工作。

您还可以选择使用诸如优秀的活动监视器之类的服务,而不是编写自己的广播客户端。他们可以指导您完成设置 SPF 所需的 DNS 条目的过程,还可以跟踪打开电子邮件和跟踪电子邮件中链接的人员。

If you've simply got an html link to a picture, then it looks like spam, and people who's email clients block images by default (most online ones do) won't be able to see your message.

Rather than have one big image, try breaking it up and use html tables to lay it out. Also, make sure you set the alt attribute on the img tags.

The other thing, apart from the spam assasin score, to look at, is making sure you've set up Sender Policy Framework for the domain from which you're sending the emails. Some online email providers do not score spam on content at all, rather they use SPF and user's "reporting spam", so make sure you get this set up and working correctly before you do large broadcasts.

You might also choose to use a service such as the excellent campaign monitor instead of writing your own broadcast client. They can guide you through the process of setting up the DNS entries required for SPF, and also provide tracking of people opening the email and following links within the email.

三生池水覆流年 2024-08-21 00:22:25

你正在回答你自己的问题。通过不发送“包含 1600-2000 字节文字的图像”、“消息中包含 HTML”、“消息仅具有文本/html MIME 部分”或“仅 HTML 消息,但没有 HTML 标记”,您将减去垃圾邮件点根据公式,结果会较低。

一种(较差的)替代方法是要求用户将您列入白名单。

You are answering your own question. By not sending "images with 1600-2000 bytes of words", "HTML included in message", "Message only has text/html MIME parts" or "HTML-only message, but there is no HTML tag" you will substract spam points from the formula and hence the result will be lower.

An (inferior) alternative is to ask the user to whitelist you.

浊酒尽余欢 2024-08-21 00:22:25

我对垃圾邮件刺客了解不多,但我过去使用过返回路径。他们对电子邮件中使其看起来像垃圾邮件的各个方面给出了相当全面的看法。

顺便说一句,我不为返回路径工作:)

I don't know much about Spam Assasin, but I've used Return Path in the past. They give a rather comprehensive view of the aspects of an email that make it look like spam.

I don't work for Return Path, btw :)

揽清风入怀 2024-08-21 00:22:25

如果您想要 HTML,那么您在这里无能为力。不过,它并没有在默认的 SpamAssassin 安装中加权。
除了 HTML 版本之外,还添加文本版本的内容。
添加缺少的标签

在上面 alter sol :执行 HTML 编码 base64 方法,不在内容中暴露 html 标头可以通过过滤器显着降低垃圾邮件分数水平。 :)

Nothing you can do here if you want HTML. It's not weighted on the default SpamAssassin install anyway, though.
Add in a text version of the content in addition to the HTML version.
Add in the missing tag

alter sol to above : Do HTML encode base64 method , not expose html headers in content can significant reduce level of spam score via filters. :)

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