master-coder-ll / v2ray-web-manager

v2ray-web-manager 是一个v2ray的面板,也是一个集群的解决方案;同时增加了流量控制/账号管理/限速等功能。key: admin , panel ,web,cluster,集群,proxy
MIT License
1.42k stars 483 forks source link

重装了服务器以及v2ray-web-manager服务后,将原来的 database 替换后,邮件不能正常发送给member #135

Closed GeorgeChen0821 closed 4 years ago

GeorgeChen0821 commented 4 years ago

你的问题是什么?

重装了服务器以及v2ray-web-manager服务,将原来的 database 替换后,其他功能一切正常,但是邮件不能正常发送给member。

出现问题的情况是怎么样的?

admin.yaml中配置和原来的内容一模一样,确认没有填写格式错误。

email:

smtp地址

host: smtp.163.com

用户名称

userName: ggfly02332@163.com

密码

password: HXO11223344

端口

port: 465

默认false ,邮件不支持startTls不要开启

startTlsEnabled: false

邮箱的已发送中可以看到成功发送给用户连接数过大的邮件,但是注册用户或者忘记密码想要获取验证码就不行了,我现在都是在用管理员账户手动帮用户创建账户的

相关日志 java服务日志位于/opt/jar/logs

2020-07-13 10:11:33.172 ERROR 1206 --- [task-AsyncExecutor-1] .a.i.SimpleAsyncUncaughtExceptionHandler : Unexpected exception occurred invoking async method: public void com.jhl.admin.util.EmailUtils.sendEmail(com.jhl.admin.util.EmailUtils$MailContent)

java.lang.RuntimeException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.163.com:465 at com.jhl.admin.util.EmailUtils.sendEmail(EmailUtils.java:41) at com.jhl.admin.util.EmailUtils$$FastClassBySpringCGLIB$$5cdd2e35.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.163.com:465 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469) at org.apache.commons.mail.Email.send(Email.java:1496) at com.jhl.admin.util.EmailUtils.sendEmail(EmailUtils.java:38) ... 9 common frames omitted Caused by: com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp5,HdxpCgA3SIvSwgtfhZJmBg--.7708S2 1594606292,please see http://mail.163.com/help/help_spam_16.htm?ip=2.56.255.232&hostid=smtp5&time=1594606292

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2358)
    at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2110)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1316)
    at javax.mail.Transport.send0(Transport.java:255)
    at javax.mail.Transport.send(Transport.java:124)
    at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
    ... 11 common frames omitted

相关输出

期望结果?

能正常收发邮件

master-coder-ll commented 4 years ago

please see http://mail.163.com/help/help_spam_16.htm?ip=2.56.255.232&hostid=smtp5&time=1594606292 554

GeorgeChen0821 commented 4 years ago

please see http://mail.163.com/help/help_spam_16.htm?ip=2.56.255.232&hostid=smtp5&time=1594606292 554

貌似不是这个问题 我换了新注册的邮箱 依然不行