Content
Inbound Email configuration not working
I am trying to configure inbound email on openproject. I am using below command from the official documentation:
openproject run bundle exec rake redmine:email:receive_imap host='myimaphostdomainename' username='openprojectemailaddress' password='emailpassword' port=993 ssl=true allow_override=type,project project=openproject
Note that openproject is deployed on Ubuntu server in /opt/openproject and that's why I named the project parameter in the command as openproject (project=openproject). However this did not work and gives below error message. Note that the email account is normally working very well.
Then I also tried to remove allow_override and project attributes and rerun the command but still it fails. Below is the command:
openproject run bundle exec rake redmine:email:receive_imap host='myimaphostdomainename' username='openprojectemailaddress' password='emailpassword' port=993 ssl=true
Someone who knows what is going on can help me please. Your help is appreciated.
Best regards,
Sorry, below is the error message that come when running both commands:
* * * * * * * * * * * * * * * * * * * * * * * * *
* OpenProject requires UTF-8 encoding set on MySQL < 5.7 *
and UTF-8mb4 beyond that. Please ensure having set
* *
production:
* encoding: utf8mb4 *
* in config/database.yml. *
Otherwise, you WILL run into encoding issue when using 4 byte
* UTF-8 characters since utf8 encoding in MySQL doesn't support them. *
* If you have been running utf8 in the past, please see this guide *
on how to convert your database:
* https://mathiasbynens.be/notes/mysql-utf8mb4 *
* * * * * * * * * * * * * * * * * * * * * * * * *
W, [2019-06-07T12:39:44.068857 #13134] WARN -- : [auth_saml] Missing settings from '/opt/openproject/config/plugins/auth_saml/settings.yml', skipping omniauth registration.
W, [2019-06-07T12:39:44.260392 #13134] WARN -- : hook registered
rake aborted!
Net::IMAP::NoResponseError: Authentication failed.
/opt/openproject/lib/redmine/imap.rb:55:in `connect_imap'
/opt/openproject/lib/redmine/imap.rb:37:in `check'
/opt/openproject/lib/tasks/email.rake:151:in `block (3 levels) in <top (required)>'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/cli/exec.rb:74:in `load'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/cli/exec.rb:28:in `run'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/cli.rb:463:in `exec'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/cli.rb:27:in `dispatch'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/cli.rb:18:in `start'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/exe/bundle:30:in `block in <top (required)>'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/exe/bundle:22:in `<top (required)>'
/opt/openproject/bin/bundle:3:in `load'
/opt/openproject/bin/bundle:3:in `<main>'
Tasks: TOP => redmine:email:receive_imap
(See full trace by running task with --trace)
It is giving authentication failure yet the email account works very well.