Redmine 4 Rake IMAP wont work
Added by Rok Kotnik over 3 years ago
Hi,
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'
cd /var/www/html/support.site.com/redmine4
/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 username=support@site.com 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
BR RK
Replies (1)
RE: Redmine 4 Rake IMAP wont work - Added by Rok Kotnik over 3 years ago
Hi,
i have replaced Email-Handler.rb methond with one with Redmine3 and now it works.