Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Email config for Office 365 - authentication error

Email config for Office 365 - authentication error

Added by Ron Meske about 9 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)

RE: Email config for Office 365 - authentication error [SOLVED] - Added by Ron Meske over 8 years ago

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 &, $, `, ’, "

  • (1 - 1/1)
Loading...