Hi! I have keycloak on an Azure Virtual Machine, and until a few weeks ago everything went normal, but for some storage problems I had to restart the server. After that, I can’t test the SMTP connection at the Email tab.
If I look the logs, I see:
2022-05-20 00:14:47,313 ERROR [org.keycloak.services] (default task-3568) KC-SERVICES0029: Failed to send email: com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: 127.0.0.1, 25; timeout 10000;
nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2210)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:722)
at javax.mail.Service.connect(Service.java:342)
at javax.mail.Service.connect(Service.java:222)
at javax.mail.Service.connect(Service.java:171)
at org.keycloak.email.DefaultEmailSenderProvider.send(DefaultEmailSenderProvider.java:148)
…
