Redmine is not able to receive emails and create issues using imap functionality of Redmine

Added by Chandni Naidu almost 3 years ago

Hi,
I recently upgraded from Redmine 3.2.1 to 4.0.4. Creating issues from emails using imap is not working in current upgrade, but it is working in the previous one.
The following is the error msg I get:
  • Invoke redmine:email:receive_imap (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:email:receive_imap
    rake aborted!
    IOError: closed stream
    /usr/local/lib/ruby/2.6.0/openssl/buffering.rb:322:in `syswrite'
    /usr/local/lib/ruby/2.6.0/openssl/buffering.rb:322:in `do_write'
    /usr/local/lib/ruby/2.6.0/openssl/buffering.rb:421:in `print'
    /usr/local/lib/ruby/2.6.0/net/imap.rb:1288:in `put_string'
    /usr/local/lib/ruby/2.6.0/net/imap.rb:1260:in `block in send_command'
    /usr/local/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
    /usr/local/lib/ruby/2.6.0/net/imap.rb:1255:in `send_command'
    /usr/local/lib/ruby/2.6.0/net/imap.rb:441:in `login'
    /opt/redmine/redmine-4.0.4/lib/redmine/imap.rb:34:in `check'
    /opt/redmine/redmine-4.0.4/lib/tasks/email.rake:121:in `block (4 levels) in <top (required)>'
    /opt/redmine/redmine-4.0.4/app/models/mailer.rb:612:in `with_synched_deliveries'
    /opt/redmine/redmine-4.0.4/lib/tasks/email.rake:120:in `block (3 levels) in <top (required)>'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/task.rb:280:in `block in execute'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/task.rb:280:in `each'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/task.rb:280:in `execute'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
    /usr/local/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/task.rb:198:in `invoke_with_call_chain'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/task.rb:187:in `invoke'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:160:in `invoke_task'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:116:in `block (2 levels) in top_level'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:116:in `each'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:116:in `block in top_level'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:125:in `run_with_threads'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:110:in `top_level'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:83:in `block in run'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:186:in `standard_exception_handling'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/lib/rake/application.rb:80:in `run'
    /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/exe/rake:27:in `<top (required)>'
    /usr/local/bin/rake:23:in `load'
    /usr/local/bin/rake:23:in `<main>'
    Tasks: TOP => redmine:email:receive_imap
[redmine]$rake -f /redmine/redmine-4.0.4/Rakefile  redmine:email:receive_imap RAILS_ENV="production" host=************ username=******** password=******** project=investigation-backlog starttls=true project_from_subaddress=************** --trace

Any help with respect to this will be helpful.

Thanks.

Replies (1)

RE: Redmine is not able to receive emails and create issues using imap functionality of Redmine - Added by Junyu Jiang over 1 year ago

While I am searching I found this issue.
Your server doesn't to imap, make sure your server responds to imap protocol.

(1-1/1)