The password is changed, but the UI shows error No such file or directory - /usr/sbin/sendmail. Email channel is not configured as Microsoft 365 channel is already configured successfully and expected to work as the default outbound channel
Expected behaviour
The email should be sent using the Microsoft 365 Channel and should not try to use local sendmail instead
Steps to reproduce the behaviour
Install from source
Skip SMTP setup in the browser setup flow
Login as admin and configure Microsoft 365 channel
Try changing password for the user
Suggestions:
On a quick review of the source code (6.3.1) it seems problem lies with lib/notification_factory/mailer.rb (line 165). Probably it should not use a hard coded value ‘Email::Notification’ for the area parameter. One quick fix can be use an environment variable and then use a fallback value.
e.g.
set env variable EMAIL_OUTBOUND_CHANNEL_AREA=Microsoft365::Account
Hi,
Thanks for the clarification. The initial SMTP setup will not work for Microsoft 365 as a (legacy) SMTP provider and hence will fail. This might force the administrators to have another provider to handle this part which does not sound convenient.
Maybe this can be picked up /reviewed by somebody who controls this area of codebase - I feel this is something which might become a priority soon.
@MrGeneration Just to add - I can submit pull request for this enhancement when I find some free time. Not sure about the process to join the repo and contribute.