主题: 为什么收到的邮件是乱码?

我的邮件服务是CentOS 5.3 + iRedMail 5.0

发送过来的邮件服务器是win 2003 server ,邮件编码为UTF-8 ,邮件附件为excel表格,但是我收到的都是乱码,邮件标题也没有正确显示,请老大帮忙看看?




邮件乱码,域名部分已做处理!
Received: from xxx.com.cn([127.0.0.1]) by xxx.com.cn with SMTP id 090901150756109A7; Tue, 1 Sep 2009 15:07:56 +0800
x-sender: <elaine@xxx.com.cn>
x-receiver: <redhot@xxx.com.cn>
X-Mailer: G-Mail(ENAGE Inc.)
G-UID: R0#090901150755#redhot@xxx.com.cn#1
From: "=?utf-8?B?6ZiZ6JKZ?=" <elaine@xxx.com.cn>
To: "=?utf-8?B?5b6Q6Iqs?=" <redhot@xxx.com.cn>
Message-ID: <39fbbe940e874e56963d20cce1cffb0d@xxx.com.cn>
Date: Tue, 01 Sep 2009 15:07:55 +0800
X-Priority: 3
Subject: =?utf-8?B?5ri45oiP5rWL6K+V5oql5ZGK?=
MIME-Version: 1.0
Content-Type: multipart/mixed;
    boundary="----6B465BA9A6CB4F25AE69F2F4C119687E"

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------6B465BA9A6CB4F25AE69F2F4C119687E
Content-Type: multipart/alternative;
    boundary="----F12CD258F950439983738DA6BEB6BC1E"

------F12CD258F950439983738DA6BEB6BC1E
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

IA0KICAgICAgIA0KICZuYnNwOyBCZXN0IHJlZ2FyZHMhIA0KICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqJm5ic3A7ICAgICZuYnNwOyBFbGFpbmUgICAgICAgIA0KICAgICAgIA0KICAgIEVYQ0xM
RU5UIFNUQVIoICAgQkVJSklORyAgKSBDTy4sTFRELiAgICANCiAgIEFkZHJlc3M6ICAxNjA2QSAsICAgU2t5UGxhemEgRG9uZ3po
aW1lbndhaSBTdHJlZXQgICwgJm5ic3A7ICZuYnNwOyAmbmJzcDsgICAgJm5ic3A7ICAgICAmbmJzcDsgRG9uZyBDaGVuZyBEaXN0
cmljdCwmbmJzcDsgICAgICAgICAgICAgICAgICAgICBCZWlqaW5nICAgICAgLCAxMDAwMjcsIFAuUi5DaGluYSBUZWwgOiA4Ni0x
MC04NDYwODg5Ni04MDIxIEZheCA6IDg2LTEwLTg0NjA4MDQ4ICAgIA0KICAgTW9iaWxlOjEzNDY2Mzk3MDc4IEUtbWFpbCA6ICAg
ICBob25leXhpbnlpQHlhaG9vLmNvbS5jbiAgICAgTVNOOmxvdmV5aW1lbmdAaG90bWFpbC5jb20gICAgIA==

------F12CD258F950439983738DA6BEB6BC1E
Content-type: text/html; charset=utf-8
Content-Transfer-Encoding: base64

PEJSPg0KPFAgY2xhc3M9TXNvTm9ybWFsIHN0eWxlPSJNQVJHSU46IDBjbSAwY20gMHB0Ij48U1BBTiBsYW5nPUVOLVVTPiZuYnNw
OyZuYnNwOzxCUj48U1BBTiBzdHlsZT0ibXNvLXNwYWNlcnVuOiB5ZXMiPjwvUD4NCjxESVY+Jm5ic3A7IEJlc3QgcmVnYXJkcyE8
L0RJVj4NCjxESVY+PEJSPioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KiombmJzcDs8QlI+PEJSPiZuYnNwOyZuYnNwOyZuYnNwOzwvU1BBTj5FbGFpbmU8QlI+PC9TUEFOPjxTUEFOIGxhbmc9RU4tVVMg
c3R5bGU9IkZPTlQtU0laRTogMTBwdCI+PD94bWw6bmFtZXNwYWNlIHByZWZpeCA9IG8gbnMgPSAidXJuOnNjaGVtYXMtbWljcm9z
b2Z0LWNvbTpvZmZpY2U6b2ZmaWNlIiAvPjxvOnA+PC9vOnA+PC9TUEFOPjwvRElWPg0KPFAgY2xhc3M9TXNvTm9ybWFsIHN0eWxl
PSJNQVJHSU46IDBjbSAwY20gMHB0Ij48U1BBTiBsYW5nPUVOLVVTIHN0eWxlP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eGlueWlAeWFob28uY29tLmNuIj48VT48Rk9OVCBjb2xvcj0jMDAwMGZmIHNp
emU9Mj5ob25leXhpbnlpQHlhaG9vLmNvbS5jbjxCUj48L0ZPTlQ+PC9VPjwvQT48Rk9OVCBzaXplPTI+TVNOOmxvdmV5aW1lbmdA
aG90bWFpbC5jb208L0ZPTlQ+PC9TUEFOPjwvUD48L0ZPTlQ+PC9TUEFOPjxicj48aW1nIGhlaWdodD0nMCcgd2lkdGg9JzAnIGJv
cmRlcj0nMCcgc3JjPSdodHRwOi8vb2EuaWlzdGFyLmNvbS5jbi9tYWlsL3JlY3ZfY2hlY2suYXNweD9zdWlkPVMtMDkwOTAxMTUw
NzU1MjEzMUFERUExLTU0NDc1NDcuZW1sJnVpZD1SMCUyMzA5MDkwMTE1MDc1NSUyM3JlZGhvdCU0MGlpc3Rhci5jb20uY24lMjMx
Jz4=

------F12CD258F950439983738DA6BEB6BC1E--

------6B465BA9A6CB4F25AE69F2F4C119687E
Content-type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Description: =?utf-8?B?5ri45oiP5rWL6K+V5qih5p2/Lnhscw==?=
Content-Disposition: attachment;
    filename="=?utf-8?B?5ri45oiP5rWL6K+V5qih5p2/Lnhscw==?="

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAA
EAAAFQAAAAEAAAD+////AAAAAAAAAAD/////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////9
////FAAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8A
AAAQAAAAEQAAABIAAAATAAAA/v///yAAAAD+////FwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAA
AB4AAAAfAAAAIQAAACMAAAAiAAAA/v////7/////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////1IA
bwBvAHQAIABFAG4AdAByAHkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAWAAUA//////////8CAAAAIAgCAAAAAADAAAAAAAAARgAAAAAAAAAAAAAAADA3FcnSKsoB
FgAAAMAXAAAAAAAAVwBvAHIAawBiAG8AbwBrAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAA=

------6B465BA9A6CB4F25AE69F2F4C119687E--

回复: 为什么收到的邮件是乱码?

From: "=?utf-8?B?6ZiZ6JKZ?=" <elaine@xxx.com.cn>
To: "=?utf-8?B?5b6Q6Iqs?=" <redhot@xxx.com.cn>
Subject: =?utf-8?B?5ri45oiP5rWL6K+V5oql5ZGK?=


看这些邮件头,似乎是经过了正确的 encode 处理的。

你的 webmail 是 roundcube 么?
再等几天,roundcube-0.3-stable 马上就要发布了。

回复: 为什么收到的邮件是乱码?

具体看截图吧!

回复: 为什么收到的邮件是乱码?

你的截图里邮件显示的是邮件正文还是邮件的源码?

回复: 为什么收到的邮件是乱码?

正文, 我发现问题了,由于此邮件是转发过来的,(redhot@xxx.com.cn 设置保存副本并转发到iredmail邮箱),所以出现乱码,如果直接用redhot@xxx.com.cn 发送到iredmail邮箱则不会有乱码。不解:(

附加:邮件的来源是 daiy@xxx.com.cn ,与接收方是同一个域,同一台邮件服务器(windows 2003 server),转发后就变乱码了。邮件的来源如果是外部邮件服务器,显示大部分能正确显示,比如截图里的中国万网邮件。

[ 本帖最后由 bbppking 于 2009-9-2 17:58 编辑 ]

回复: 为什么收到的邮件是乱码?

那应该是负责转发的那台服务器在处理转发邮件时出了问题?

回复: 为什么收到的邮件是乱码?

老大,我用同样的方法测试,发现这个问题是iredmail 本身的问题。

我的测试方法是把转发的邮箱地址改成 xxx@163.com 网易邮箱,一切都很正常,包括邮件正文,标题,附件。


附件: redhot@xxx.com.cn 此邮件服务器情况简单介绍一下 windows 2003 server + iis + asp.net + gmail 应用程序。邮件编码是UTF-8 .

[ 本帖最后由 bbppking 于 2009-9-2 18:45 编辑 ]

回复: 为什么收到的邮件是乱码?

如果不用roundcube 看,而是用 outlook之类的收下来,还是乱码吗?-

回复: 为什么收到的邮件是乱码?

原帖由 denvor 于 2009-9-2 18:56 发表 http://www.iredmail.org/bbs/images/common/back.gif
如果不用roundcube 看,而是用 outlook之类的收下来,还是乱码吗?-


已经测试,outlook 接受下来也是乱码!

回复: 为什么收到的邮件是乱码?

原帖由 eddiechen 于 2009-9-2 21:36 发表 http://www.iredmail.org/bbs/images/common/back.gif
麻烦发到我的测试服务器上看看效果如何。

www@18demo.com


我已经用同样的方法转发到您的邮箱里,不知道收到的邮件是否为正常。:)

回复: 为什么收到的邮件是乱码?

我用QQ邮箱转发到iredmail 邮箱里一切正常,标题,邮件正文,邮件附件都正常。

xxxxxxx@qq.com --->     xxxxx@qq.com ---> 转发至iredmail邮箱

回复: 为什么收到的邮件是乱码?

老大:这个乱码问题能解决吗? 如果实在不行,只好自己搭建再搭建一个了。:Q

回复: 为什么收到的邮件是乱码?

现在无法确定到底是不是 iredmail 导致邮件乱码的,所以我也不知道从何着手了。还是需要你分析一下到底是不是经过 iredmail之后就乱码。

回复: 为什么收到的邮件是乱码?

我正面临同样的问题,是iredmail转发时引发的问题。但不知如何对待。