Our marketing team started reporting that the 'forgot password' link on the Sitecore login window seemed to have stopped working. This functionality had been working properly for a long time, so it seemed strange that it would start to have problems.
Investigation
When looking through the logs on the content authoring server, I was able to see errors like the below:
6728 12:13:25 ERROR SMTP client email sending failed.
Exception: System.Net.Mail.SmtpException
Message: Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail [DB9PR01CA0026.eurprd01.prod.exchangelabs.com 2024-07-03T12:13:25.533Z 08DC9AFF4E85A3E9]
Source: System
at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)
I reviewed Sitecore documentation for configuring 'Forgot your password' link, to see if something had changed, or some setting was missing but nothing seemed to be jumping out.Seems that something must have changed either in the configuration of our mail server (we are using office 365) or our version of Sitecore.
Having ran out of ideas, I logged a ticket with Sitecore support and they made the following suggestion which fixed the issue:
As a quick test, please try adding the following setting to the configuration of your test instance and let us know the result:
<setting name="MailServerUseSsl" value="true" />Alexey Tupkalo
Not sure how what or when that setting became important in our specific configuration. There is certainly no mention of it in the guide I linked to above. But I am grateful to Alexey for pointing it out. Hopefully this port might help anyone else facing the same issue.