denghongcai / forsaken-mail

a self-hosted disposable mail service
GNU General Public License v2.0
1.48k stars 518 forks source link

向邮箱地址发送邮件后,docker容器报错退出 #18

Open xiaojiedev opened 10 months ago

xiaojiedev commented 10 months ago

基本信息: CentOS7 Docker version 1.13.1, build 7d71120/1.13.1

报错内容:

[root@warma forsaken-mail]# docker logs cb5673affa92
> forsaken-mail@1.0.0 start
> node ./bin/www
warn: Python is not available. Dkim and spf checking is disabled.
warn: Either spamassassin or spamc are not available. Spam score computation is disabled.
info: Mailin Smtp server listening on port 25
(node:17) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
/forsaken-mail/node_modules/smtp-server/lib/smtp-stream.js:38
    this.closed = false;
                ^
TypeError: Cannot set property closed of #<Writable> which has only a getter
    at new SMTPStream (/forsaken-mail/node_modules/smtp-server/lib/smtp-stream.js:38:17)
    at new SMTPConnection (/forsaken-mail/node_modules/smtp-server/lib/smtp-connection.js:54:20)
    at SMTPServer.connect (/forsaken-mail/node_modules/smtp-server/lib/smtp-server.js:95:22)
    at SMTPServer.<anonymous> (/forsaken-mail/node_modules/smtp-server/lib/smtp-server.js:84:14)
    at Server.emit (node:events:514:28)
    at TCP.onconnection (node:net:2157:8)
Node.js v20.9.0
xiaojiedev commented 10 months ago

向邮箱地址发送的邮件为Xshell应用的注册邮件。

bafflingbug commented 7 months ago

我通过将mailin包更换为node-mailin解决了相关问题。

"node-mailin": "npm:@umpacken/node-mailin@^2.6.1",

修改方式参考

GitSarp commented 6 months ago

我通过将mailin包更换为node-mailin解决了相关问题。

"node-mailin": "npm:@umpacken/node-mailin@^2.6.1",

修改方式参考

对我没用