解析传入电子邮件时,http.js中出现无效字符错误



达到死锁的类型。

我正在设置https://github.com/MLstate/PEPS.传出邮件有效,但对于传入邮件,它会抛出以下错误:

[DEBUG] [6C0540C0-04F9-4B5C-A4D0-1A69FC67F234.1] [core] running data_post hook in smtpin plugin                                                                             |
[CRIT] [-] [core] TypeError: The header content contains invalid characters                                                                                                 |
[CRIT] [-] [core]     at ClientRequest.OutgoingMessage.setHeader (http.js:733:13)                                                                                           |
[CRIT] [-] [core]     at new ClientRequest (http.js:1429:14)                                                                                                                |
[CRIT] [-] [core]     at Object.exports.request (http.js:1899:10)                                                                                                           |
[CRIT] [-] [core]     at Request.start (/usr/local/haraka/node_modules/request/index.js:603:30)                                                                             |
[CRIT] [-] [core]     at Request.write (/usr/local/haraka/node_modules/request/index.js:1226:28)                                                                            |
[CRIT] [-] [core]     at MessageStream.ondata (stream.js:51:26)                                                                                                             |
[CRIT] [-] [core]     at MessageStream.emit (events.js:95:17)                                                                                                               |
[CRIT] [-] [core]     at ChunkEmitter.<anonymous> (/usr/lib/node_modules/Haraka/messagestream.js:352:18)                                                                    |
[CRIT] [-] [core]     at ChunkEmitter.emit (events.js:95:17)                                                                                                                |
[CRIT] [-] [core]     at ChunkEmitter.end (/usr/lib/node_modules/Haraka/chunkemitter.js:92:14)                                                                              |
[NOTICE] [-] [core] Shutting down 

尝试在http.js文件中添加日志行,但由于某些原因,它没有显示在haraka.log中。有关于如何解决该问题的线索吗?

  • 最可能的原因是客户端没有以HTTP格式发送数据。验证您是否可以在UNIX环境中运行"curl-v-X TRACE[yourserver]"并捕获传入的内容。

  • 编辑http.js没有帮助,因为Node在可执行文件中使用其库的快照版本。如果您想检测节点库,请按照此站点中的以下步骤操作

您可能有一个无效的字符,即标头中的结束行。有关详细信息,请参阅下文。

http://www.alexkras.com/typeerror-the-header-content-contains-invalid-characters/

最新更新