Content
Email config for Office 365 - authentication error
Added by Ron Meske over 8 years ago
Hello,
I am having a problem authenticating to Office365 to send emails. When trying to send a test email from the settings screen I received the error: 504 5.7.4 Unrecognized authentication type
I used the latest package installation to install version 5.0.16. Suggestions in the forums suggest editing the configuration.yml file. I found this in the /opt/openproject/config folder. When I open it, the settings look like they are getting their values from ENV variables. For example,
@ smtp_address: <%= ENV[‘SMTP_HOST’] %>@
I assumed these are being loaded correctly and could not find out to update the ENV variables, so I modified the setting smtp_enable_starttls_auto
manually to be set to “false” and restarted the server. That did not solve the problem, so I set it to “true” and restarted the server and that still did not fix it though I have a new error. With it set to true I receive the error: 535 5.7.3 Authentication unsuccessful
When I run openproject config
I noticed two things:
SMTP_PASSWORD=
has just the first two letters of the password. The third letter of the password is a special character and from that character on are missing.
SMTP_URL=
has the entire password except for the special character which has been encoded.
This account is used for our other online apps for sending out emails and therefore would prefer not to have to change the password unless I absolutely have to.
Is there some limitations on what characters can be used in a password?
Best,
Ron
PS Any suggestions on how to resolve?
Replies (1)
Instead of modifying configuration.yml file, use:
sudo openproject config:set SMTP_ENABLE_STARTTLS_AUTO=true
I’m not sure if a restart will work, but I ran the configure again:
sudo openproject configure
Having symbols in the password can be problematic. Do not use &, $, `, ’, "