Command received in Invalid state


  • Used Zammad version: 5.0.x
  • Used Zammad installation type: docker-compose
  • Operating system: Ubuntu 20.04
  • Browser + version: 112.0.5615.49

Expected behavior:

  • Able to receive Emails

Actual behavior:

Steps to reproduce the behavior:

  • Configurate exchange imap without SSL/TLS on standard Port 143 resulting to this Error Message:

I also checked for the Exchange IMAP service status with:
nc 143
* OK The Microsoft Exchange IMAP4 service is ready.

Is this now a Issue with zammad or a issue with using non SSL/TLS for imap?

Additional Informations:
I have also checked the zammad logs:

[2023-04-06T12:06:41.464957 xxxx]  INFO -- :   Parameters: {"adapter"=>"imap", "options"=>{"realname"=>"My-Team", "email"=>"", "group_id"=>"1", "host"=>"outlook.xxxx", "user"=>"", "password"=>"[FILTERED]", "ssl"=>false, "port"=>"143", "folder"=>"", "keep_on_server"=>true}}
I, [2023-04-06T12:06:41.488093 #1-182760]  INFO -- : fetching imap ( port=143,ssl=false,starttls=false,folder=INBOX,keep_on_server=true,auth_type=LOGIN)
I, [2023-04-06T12:06:41.511825 #1-182760]  INFO -- : Completed 200 OK in 47ms (Views: 0.3ms | ActiveRecord: 9.2ms | Allocations: 9711)

And Nginx Logs:
xxx.x.x.x - - [06/Apr/2023:12:10:01 +0000] "POST /api/v1/channels_email_inbound HTTP/1.1" 200 295 "https://xxxxx/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36"

without finding any errors and exceptions

I’m not aware of any issues with Exchange connections based on POP3 nor IMAP.
Double checking via e.g. Thunderbird might help to pin point an issue on Zammad side or Exchange side.

That being said I would use encrypted and thus Port 993 but that’s just me.