Hello,
having followed the instructions on the zammad website for Microsoft 365 I encountered following problem, displayed in the zammad 365 mask:
Can’t use Channel::Driver::Imap: #<Net::IMAP::ResponseParseError: unexpected token EOF (expected CRLF)>
ThecConfiguration in Azure and Zammad worked fine, until the afore-mentioned message.
I am using Ubuntu 20.04 and a native installation of zammad with a PostgreSQL DB. The Version shows as 4.1.x, and I am using the current version from https://dl.packager.io/srv/deb/zammad/zammad/stable/ubuntu 20.04/main amd64 Packages.
The production.log states:
/opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
I, [2021-09-03T12:47:46.997376 #18027-46986317754600] INFO -- : ended Channel.fetch took: 0.220261112 seconds.
I, [2021-09-03T12:48:17.003343 #18027-46986317754600] INFO -- : execute Channel.fetch (try_count 0)...
I, [2021-09-03T12:48:17.015166 #18027-46986317754600] INFO -- : fetching imap (outlook.office365.com/confidential@confidential port=993,ssl=true,starttls=false,folder=INBOX,keep_on_server=true,auth_type=XOAUTH2)
E, [2021-09-03T12:48:17.198235 #18027-46986317754600] ERROR -- : Can't use Channel::Driver::Imap: #<Net::IMAP::ResponseParseError: unexpected token EOF (expected CRLF)>
E, [2021-09-03T12:48:17.198306 #18027-46986317754600] ERROR -- : unexpected token EOF (expected CRLF) (Net::IMAP::ResponseParseError)
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:3497:in `parse_error'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:3349:in `match'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:2265:in `response'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:2183:in `parse'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:1246:in `get_response'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:1147:in `receive_responses'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:1120:in `block in initialize'
/opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
I, [2021-09-03T12:48:17.213189 #18027-46986317754600] INFO -- : ended Channel.fetch took: 0.213704685 seconds.
I, [2021-09-03T12:48:31.759739 #18027-46986245609900] INFO -- : Scheduler running...
I, [2021-09-03T12:48:31.766143 #18027-46986245609900] INFO -- : Running job thread for 'Import OTRS diff load' (Import::OTRS.diff_worker) status is: sleep
I, [2021-09-03T12:48:31.766314 #18027-46986245609900] INFO -- : Running job thread for 'Check Channels' (Channel.fetch) status is: sleep
I, [2021-09-03T12:48:31.766410 #18027-46986245609900] INFO -- : Running job thread for 'Generate Session data' (Sessions.jobs) status is: sleep
I, [2021-09-03T12:48:31.766443 #18027-46986245609900] INFO -- : Running job thread for 'Process escalation tickets' (Ticket.process_escalation) status is: sleep
I, [2021-09-03T12:48:31.766471 #18027-46986245609900] INFO -- : Running job thread for 'Check streams for Channel' (Channel.stream) status is: sleep
I, [2021-09-03T12:48:31.766866 #18027-46986245609900] INFO -- : Running job thread for 'Execute jobs' (Job.run) status is: sleep
I, [2021-09-03T12:48:47.218092 #18027-46986317754600] INFO -- : execute Channel.fetch (try_count 0)...
I, [2021-09-03T12:48:47.228141 #18027-46986317754600] INFO -- : fetching imap (outlook.office365.com/confidential@confidential port=993,ssl=true,starttls=false,folder=INBOX,keep_on_server=true,auth_type=XOAUTH2)
E, [2021-09-03T12:48:47.425457 #18027-46986317754600] ERROR -- : Can't use Channel::Driver::Imap: #<Net::IMAP::ResponseParseError: unexpected token EOF (expected CRLF)>
E, [2021-09-03T12:48:47.425544 #18027-46986317754600] ERROR -- : unexpected token EOF (expected CRLF) (Net::IMAP::ResponseParseError)
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:3497:in `parse_error'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:3349:in `match'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:2265:in `response'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:2183:in `parse'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:1246:in `get_response'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:1147:in `receive_responses'
/opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/net/imap.rb:1120:in `block in initialize'
/opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
I, [2021-09-03T12:48:47.443392 #18027-46986317754600] INFO -- : ended Channel.fetch took: 0.228381488 seconds.
Thank you.