为什么 GMail 不接受此邮件?

发布于 2024-12-03 02:16:12 字数 2000 浏览 1 评论 0原文

我正在使用 node.js 并用它创建一个 smtp + pop3 服务器,只是为了好玩。 我在维基百科上读到了这两个协议。

我的 smtp 服务器当前获取邮件并将其保存到文件夹中的文件中。 pop3 服务器获取此文件夹中的所有文件,并在客户端请求时将它们发送给客户端,而无需更改电子邮件。

我使用 GMail 向 smtp 服务器发送测试邮件。这很有效。 我还使用 GMail 来检索邮件。 GMail 随后表示,已检索到 1 封邮件, 但该邮件未出现在邮件列表中。我认为,GMail 不接受邮件,即使它已成功获取邮件。

邮件看起来像这样:

Received: by gxk1 with SMTP id 1so3430628gxk.38
        for <[email protected]>; Mon, 05 Sep 2011 12:48:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=iOv1lJPQPPZNBiK5+pwY5YYD+FmD8zp2fByAZA+BDDs=;
        b=jxxASTZCnyDT/J8RRQBvhMzEHFk4IxTl3kv8rFuc1ZeXNO51cr5xPouh1aNH94togQ
         amPAA3jnXymQHRFeUzz3u6871DofJTxPkOj1rY1x/iNBaSqqTE4S9mKvTzb4WF04CtvD
         tC8YY+0Yz0hBuXF6WQaTef4JLVO4blchU7UyA=
MIME-Version: 1.0
Received: by 10.42.135.66 with SMTP id o2mr105132ict.397.1315242079201; Mon,
 05 Sep 2011 10:01:19 -0700 (PDT)
Received: by 10.42.220.1 with HTTP; Mon, 5 Sep 2011 10:01:19 -0700 (PDT)
Date: Mon, 5 Sep 2011 19:01:19 +0200
Message-ID: <CACUXN65OHGTE-D02sYFQ-F8CH5UcFcuYYaf92Bni6nE1khTrtA@mail.gmail.com>
Subject: asdf
From: xx Stxxutz <[email protected]>
To: asdf <[email protected]>
Content-Type: multipart/alternative; boundary=90e6ba6e89d6ecab2204ac34a8bd

--90e6ba6e89d6ecab2204ac34a8bd
Content-Type: text/plain; charset=ISO-8859-1

npiasdf

--90e6ba6e89d6ecab2204ac34a8bd
Content-Type: text/html; charset=ISO-8859-1

<font size="2"><font face="verdana,sans-serif">npiasdf</font></font>

--90e6ba6e89d6ecab2204ac34a8bd--

这有什么问题吗?

感谢您的帮助!

I'm playing with node.js and create a smtp + pop3 server with it, just for fun.
I read about the 2 protocols on wikipedia.

My smtp server currently gets the mail and saves it to a file in a folder.
The pop3 server gets all files in this folders and sends them to the client, when he request him, without changing the email.

I used GMail to send a test mail to the smtp server. This worked well.
I also used GMail to retrieve the mail. GMail said then, that 1 mail was retrieved,
but the mail does not appear in the mail-list. I think, that GMail does not accept the mail, even if it has successfully fetched it.

The mail looks like this:

Received: by gxk1 with SMTP id 1so3430628gxk.38
        for <[email protected]>; Mon, 05 Sep 2011 12:48:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=iOv1lJPQPPZNBiK5+pwY5YYD+FmD8zp2fByAZA+BDDs=;
        b=jxxASTZCnyDT/J8RRQBvhMzEHFk4IxTl3kv8rFuc1ZeXNO51cr5xPouh1aNH94togQ
         amPAA3jnXymQHRFeUzz3u6871DofJTxPkOj1rY1x/iNBaSqqTE4S9mKvTzb4WF04CtvD
         tC8YY+0Yz0hBuXF6WQaTef4JLVO4blchU7UyA=
MIME-Version: 1.0
Received: by 10.42.135.66 with SMTP id o2mr105132ict.397.1315242079201; Mon,
 05 Sep 2011 10:01:19 -0700 (PDT)
Received: by 10.42.220.1 with HTTP; Mon, 5 Sep 2011 10:01:19 -0700 (PDT)
Date: Mon, 5 Sep 2011 19:01:19 +0200
Message-ID: <CACUXN65OHGTE-D02sYFQ-F8CH5UcFcuYYaf92Bni6nE1khTrtA@mail.gmail.com>
Subject: asdf
From: xx Stxxutz <[email protected]>
To: asdf <[email protected]>
Content-Type: multipart/alternative; boundary=90e6ba6e89d6ecab2204ac34a8bd

--90e6ba6e89d6ecab2204ac34a8bd
Content-Type: text/plain; charset=ISO-8859-1

npiasdf

--90e6ba6e89d6ecab2204ac34a8bd
Content-Type: text/html; charset=ISO-8859-1

<font size="2"><font face="verdana,sans-serif">npiasdf</font></font>

--90e6ba6e89d6ecab2204ac34a8bd--

What's wrong with this?

Thanks for your help!

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

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

发布评论

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

评论(2

嘿嘿嘿 2024-12-10 02:16:12

它可能是各种不同的东西,但这是我的想法

  • 内容(npiasdf)不是消息。它甚至根本不是一个词,这会让垃圾邮件过滤器陷入困境。
  • 收件人:asdf [电子邮件受保护]>< /code> 相当可疑。我感觉您已经对原始电子邮件进行了修改,但这显然应该是一封正确、有效的电子邮件。
  • 尝试在您的电子邮件中添加适当的 HTML 结构;使用 标签包围您的内容。
  • 不要使用 标签;使用 CSS 代替。这可能不会使 GMail 喜欢您的消息,但 已弃用,通常不应使用。

It could be various different things, but here are my thoughts

  • The content (npiasdf) isn't a message. It's not even a word at all, which will throw the spam filter rather a lot.
  • The To: asdf <[email protected]> is rather dubious. I have a feeling you've modified this from the original, but this should obviously be a correct, valid email.
  • Try adding proper HTML structure to your email; use <html> and <body> tags to surround your content.
  • Don't use <font> tags; use CSS instead. This might not make GMail like your message, but <font> is deprecated and shouldn't generally be used.
三生池水覆流年 2024-12-10 02:16:12

我发现问题了!
GMail 检测到,它是邮件的发件人,因为内容与之前发送的邮件内容相同。因此,他决定删除这封电子邮件的副本。

我尝试从另一个 Gmail 帐户发送邮件,效果很好。

I´ve found the problem!
GMail detected, that it was the sender of the Mail, because the content was the same as the content of the previously sent mail. So he decided to delete this duplicate of the email.

I tried to send the mail form another gmail account and it worked well.

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