problem
The Password Reset Functionality throws an error, Using ubuntu msmtp works.
We have enabled the password reset functionality:
the sender username is noreply@mydomain.com


Logs from the management server:
2025-07-04 15:01:57,332 ERROR [o.a.c.u.m.SMTPMailSender] (qtp1404565079-345:[ctx-80979faa]) (logid:0e1f5dee) Unable to send mail [Password Reset Request] to the recipcients [[{"mailAddress":"tatay@mymail.com"}]]. javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587;
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
at javax.mail.Service.connect(Service.java:295)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at org.apache.cloudstack.utils.mailing.SMTPMailSender.sendMail(SMTPMailSender.java:175)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:527)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:332)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:234)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)
2025-07-04 15:01:57,336 DEBUG [o.a.c.u.UserPasswordResetManagerImpl] (qtp1404565079-345:[ctx-80979faa]) (logid:0e1f5dee) User password reset email for user UserAccount {"accountName":"domain1","id":5,"username":"tatay"}. account id: 5 domain id: 3 sent to tatay@mymail.com with token expiry at 2025-07-04T15:31:57.243+0000
2025-07-04 15:08:28,663 WARN [c.c.c.ConfigurationManagerImpl] (qtp1404565079-447:[ctx-7d09367d, ctx-af7db5cb]) (logid:37392271) Configuration user.password.reset.email.sender no found. Perhaps moved to ConfigDepot
2025-07-04 15:08:28,675 WARN [c.c.c.ConfigurationManagerImpl] (qtp1404565079-447:[ctx-7d09367d, ctx-af7db5cb]) (logid:37392271) Configuration user.password.reset.mail.template no found. Perhaps moved to ConfigDepot
We tested from the server and Works using the msmtp in Ubuntu
versions
ACS version 4.20.1
The steps to reproduce the bug
- create an email account in Microsoft, with TLS and and AUTH port 587
- Fill the information in the CS management servers
- test.
...
What to do about it?
No response
problem
The Password Reset Functionality throws an error, Using ubuntu msmtp works.
We have enabled the password reset functionality:
the sender username is noreply@mydomain.com
Logs from the management server:
2025-07-04 15:01:57,332 ERROR [o.a.c.u.m.SMTPMailSender] (qtp1404565079-345:[ctx-80979faa]) (logid:0e1f5dee) Unable to send mail [Password Reset Request] to the recipcients [[{"mailAddress":"tatay@mymail.com"}]]. javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587;
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
at javax.mail.Service.connect(Service.java:295)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at org.apache.cloudstack.utils.mailing.SMTPMailSender.sendMail(SMTPMailSender.java:175)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:527)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:332)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:234)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)
2025-07-04 15:01:57,336 DEBUG [o.a.c.u.UserPasswordResetManagerImpl] (qtp1404565079-345:[ctx-80979faa]) (logid:0e1f5dee) User password reset email for user UserAccount {"accountName":"domain1","id":5,"username":"tatay"}. account id: 5 domain id: 3 sent to tatay@mymail.com with token expiry at 2025-07-04T15:31:57.243+0000
2025-07-04 15:08:28,663 WARN [c.c.c.ConfigurationManagerImpl] (qtp1404565079-447:[ctx-7d09367d, ctx-af7db5cb]) (logid:37392271) Configuration user.password.reset.email.sender no found. Perhaps moved to ConfigDepot
2025-07-04 15:08:28,675 WARN [c.c.c.ConfigurationManagerImpl] (qtp1404565079-447:[ctx-7d09367d, ctx-af7db5cb]) (logid:37392271) Configuration user.password.reset.mail.template no found. Perhaps moved to ConfigDepot
We tested from the server and Works using the msmtp in Ubuntu
versions
ACS version 4.20.1
The steps to reproduce the bug
...
What to do about it?
No response