With no changes having been done from our side to the configuration in either Zammad or MS365, Zammad stopped fetching emails from Microsoft this morning.
I tried to re-authenticate but to no avail - the final message remains AUTHENTICATE failed
even though I was clearly able to log in to Microsoft with these credentials.
I also tried rebooting the server and updating to the latest package (I’m on Ubuntu 20.04 and installed Zammad by package) but that didn’t help either.
This is what I could find in production.log about it.
(eval):1:in `eval_job_method'
lib/background_services/service/process_scheduled_jobs/job_executor.rb:48:in `eval'
lib/background_services/service/process_scheduled_jobs/job_executor.rb:48:in `eval_job_method'
lib/background_services/service/process_scheduled_jobs/job_executor.rb:23:in `execute'
lib/background_services/service/process_scheduled_jobs/job_executor/continuous.rb:16:in `block in run_loop'
lib/background_services/service/process_scheduled_jobs/job_executor/continuous.rb:15:in `times'
lib/background_services/service/process_scheduled_jobs/job_executor/continuous.rb:15:in `run_loop'
lib/background_services/service/process_scheduled_jobs/job_executor/continuous.rb:8:in `run'
lib/background_services/service/process_scheduled_jobs/job_executor.rb:10:in `run'
lib/background_services/service/process_scheduled_jobs/manager.rb:84:in `block in start_in_thread'
lib/application_handle_info.rb:19:in `use'
lib/background_services/service/process_scheduled_jobs/manager.rb:82:in `start_in_thread'
lib/background_services/service/process_scheduled_jobs/manager.rb:73:in `block (2 levels) in start'
lib/background_services/service/process_scheduled_jobs/manager.rb:72:in `block in start'
I, [2023-08-11T08:38:32.364638#22585-112600] INFO -- : fetching imap (outlook.office365.com/acct1@example.ch port=993,ssl=true,starttls=false,folder=INBOX,keep_on_server=true,auth_type=XOAUTH2)
I, [2023-08-11T08:38:32.374614#22585-112080] INFO -- : ProcessScheduledJobs running...
I, [2023-08-11T08:38:32.388123#22585-112080] INFO -- : Running job thread for 'Check 'Channel' streams.' (Channel.stream) status is: sleep
I, [2023-08-11T08:38:32.394982#22585-112080] INFO -- : Running job thread for 'Generate 'Session' data.' (Sessions.jobs) status is: sleep
I, [2023-08-11T08:38:32.395074#22585-112080] INFO -- : Running job thread for 'Process ticket escalations.' (Ticket.process_escalation) status is: sleep
I, [2023-08-11T08:38:32.395146#22585-112080] INFO -- : Running job thread for 'Check channels.' (Channel.fetch) status is: sleep
I, [2023-08-11T08:38:32.396463#22585-112080] INFO -- : Running job thread for 'Execute planned jobs.' (Job.run) status is: sleep
I, [2023-08-11T08:38:32.477893#22589-230700] INFO -- : Started POST "/api/v1/integration/smime" for 87.239.202.134 at 2023-08-11 08:38:32 +0000
I, [2023-08-11T08:38:32.487364#22589-230700] INFO -- : Processing by Integration::SMIMEController#search as JSON
I, [2023-08-11T08:38:32.487457#22589-230700] INFO -- : Parameters: {"ticket"=>{"group_id"=>"1", "owner_id"=>"1259", "state_id"=>"4", "priority_id"=>"2", "my_task"=>""}, "article"=>{"body"=>"[FILTERED]", "type"=>"note", "internal"=>true, "form_id"=>"657730717", "shared_draft_id"=>"", "subtype"=>"", "in_reply_to"=>"", "to"=>"", "cc"=>"", "subject"=>""}}
I, [2023-08-11T08:38:32.505806#22589-230700] INFO -- : Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 7.6ms | Allocations: 5576)
E, [2023-08-11T08:38:32.792716#22585-112600] ERROR -- : Can't use Channel::Driver::Imap: #<Net::IMAP::NoResponseError: AUTHENTICATE failed.>
E, [2023-08-11T08:38:32.792820#22585-112600] ERROR -- : AUTHENTICATE failed. (Net::IMAP::NoResponseError)
app/models/channel/driver/imap.rb:124:in `block in fetch'
app/models/channel/driver/imap.rb:582:in `timeout'
app/models/channel/driver/imap.rb:122:in `fetch'
app/models/channel.rb:56:in `fetch'
app/models/channel.rb:30:in `fetch'
Because of the “NoResponseError”, I assume this is an issue with Microsoft that will go away by itself at some point but I can’t say for sure. Maybe someone here has a recommendation.