Redmine 4 Rake IMAP wont work
i recently upgraded from old server which had Redmine3 to new server with Redmine4. New redmine4 works fine, but i am having problems with rake IMAP server. We have feature so users can replly on open ticket via email. So we had cronjob with custom script:
export PATH ; PATH=/usr/local/rvm/gems/ruby-2.7.2/bin:/usr/local/rvm/gems/ruby-2.7.2@global/bin:/usr/local/rvm/rubies/ruby-2.7.2/bin:/usr/bin/java:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/root/bin
export GEM_HOME ; GEM_HOME='/usr/local/rvm/gems'
export GEM_PATH ; GEM_PATH='/usr/local/rvm/gems/ruby-2.7.2:/usr/local/rvm/gems/ruby-2.7.2/bin:/root/.gem/ruby:/usr/share/gems'
/usr/local/rvm/gems/ruby-2.7.2/bin/bundle exec rake -f /var/www/html/support.site.com/redmine4/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=192.168.236.10 firstname.lastname@example.org password=secret move_on_success=read move_on_failure=failed >> /var/www/html/support.site.com/redmine4/log/mail.log 2>&1
Script works but it always move all mails from INBOX to failed and mail.log is empty. have i forgot to set any additional settings which i forgot ?
Please for help
RE: Redmine 4 Rake IMAP wont work - Added by Rok Kotnik about 1 month ago
i have replaced Email-Handler.rb methond with one with Redmine3 and now it works.