为什么 GMail 不接受此邮件?
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它可能是各种不同的东西,但这是我的想法
npiasdf
)不是消息。它甚至根本不是一个词,这会让垃圾邮件过滤器陷入困境。收件人:asdf [电子邮件受保护]>< /code> 相当可疑。我感觉您已经对原始电子邮件进行了修改,但这显然应该是一封正确、有效的电子邮件。
和
标签包围您的内容。
标签;使用 CSS 代替。这可能不会使 GMail 喜欢您的消息,但
已弃用,通常不应使用。
It could be various different things, but here are my thoughts
npiasdf
) isn't a message. It's not even a word at all, which will throw the spam filter rather a lot.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.<html>
and<body>
tags to surround your content.<font>
tags; use CSS instead. This might not make GMail like your message, but<font>
is deprecated and shouldn't generally be used.我发现问题了!
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.