tatay188 opened a new issue, #11159:
URL: https://github.com/apache/cloudstack/issues/11159

   ### problem
   
   The Password Reset Functionality throws an error, Using ubuntu msmtp works.
   
   We have enabled the password reset functionality:
   
   the sender username is nore...@mydomain.com
   
   
![Image](https://github.com/user-attachments/assets/391c2dd0-79bd-46ed-8b47-aa8c275ec27f)
   
   
![Image](https://github.com/user-attachments/assets/9b6531b4-0f15-4b61-bc21-1e9ce89b402a)
   
   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":"[ta...@mymail.com](mailto:ta...@mymail.com)"}]]. 
javax.mail.MessagingException: Could not connect to SMTP host: 
[smtp.office365.com](http://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 [ta...@mymail.com](mailto:ta...@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
   
   1. create an email account in Microsoft, with TLS and and AUTH port 587
   2. Fill the information in the CS management servers
   3. test.
   ...
   
   
   ### What to do about it?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to