已验证第三方客户端正常,halo用163邮箱正常,halo用个人自建邮箱失败,失败日志如下:
2024-02-29T14:38:50.045+08:00 ERROR 7 --- [run.halo.app.notification.DefaultNotificationSender-t-4] r.h.a.e.controller.DefaultController : Reconciler in run.halo.app.notification.DefaultNotificationSender-worker-4 aborted with an error, re-enqueuing...
org.springframework.mail.MailSendException: Mail server connection failed. Failed messages: jakarta.mail.MessagingException: Could not connect to SMTP host: smtp.mjj.pub, port: 465;
nested exception is:
java.io.IOException: Can't verify identity of server: smtp.mjj.pub
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:410) ~[spring-context-support-6.1.4.jar:6.1.4]
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:350) ~[spring-context-support-6.1.4.jar:6.1.4]
at org.springframework.mail.javamail.JavaMailSender.send(JavaMailSender.java:158) ~[spring-context-support-6.1.4.jar:6.1.4]
at org.springframework.mail.javamail.JavaMailSender.send(JavaMailSender.java:132) ~[spring-context-support-6.1.4.jar:6.1.4]
at reactor.core.publisher.FluxPeek$PeekSubscriber.onNext(FluxPeek.java:185) ~[reactor-core-3.6.3.jar:3.6.3]
at reactor.core.publisher.MonoPublishOn$PublishOnSubscriber.run(MonoPublishOn.java:181) ~[reactor-core-3.6.3.jar:3.6.3]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) ~[reactor-core-3.6.3.jar:3.6.3]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) ~[reactor-core-3.6.3.jar:3.6.3]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
Suppressed: java.lang.Exception: #block terminated with an error
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:103) ~[reactor-core-3.6.3.jar:3.6.3]
at reactor.core.publisher.Mono.block(Mono.java:1779) ~[reactor-core-3.6.3.jar:3.6.3]
at run.halo.app.notification.DefaultNotificationSender.lambda$sendNotification$0(DefaultNotificationSender.java:61) ~[classes/:na]
at run.halo.app.notification.DefaultNotificationSender.reconcile(DefaultNotificationSender.java:87) ~[classes/:na]
at run.halo.app.notification.DefaultNotificationSender.reconcile(DefaultNotificationSender.java:30) ~[classes/:na]
at run.halo.app.extension.controller.DefaultController$Worker.run(DefaultController.java:163) ~[api-2.13.0-rc.1.jar:na]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
... 3 common frames omitted
Caused by: jakarta.mail.MessagingException: Could not connect to SMTP host: smtp.mjj.pub, port: 465
at org.eclipse.angus.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2245) ~[jakarta.mail-2.0.2.jar:na]
at org.eclipse.angus.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:729) ~[jakarta.mail-2.0.2.jar:na]
at jakarta.mail.Service.connect(Service.java:345) ~[jakarta.mail-2.0.2.jar:na]
at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:480) ~[spring-context-support-6.1.4.jar:6.1.4]
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:399) ~[spring-context-support-6.1.4.jar:6.1.4]
... 12 common frames omitted
Caused by: java.io.IOException: Can't verify identity of server: smtp.mjj.pub
at org.eclipse.angus.mail.util.SocketFetcher.checkServerIdentity(SocketFetcher.java:699) ~[jakarta.mail-2.0.2.jar:na]
at org.eclipse.angus.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:636) ~[jakarta.mail-2.0.2.jar:na]
at org.eclipse.angus.mail.util.SocketFetcher.createSocket(SocketFetcher.java:401) ~[jakarta.mail-2.0.2.jar:na]
at org.eclipse.angus.mail.util.SocketFetcher.getSocket(SocketFetcher.java:235) ~[jakarta.mail-2.0.2.jar:na]
at org.eclipse.angus.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2193) ~[jakarta.mail-2.0.2.jar:na]
... 16 common frames omitted
2024-02-29T14:38:50.847+08:00 ERROR 7 --- [run.halo.app.notification.DefaultNotificationSender-t-4] r.h.a.n.DefaultNotificationSender : Failed to send notification after retrying 3 times, discard it.