Office 365 mailbox connection

What is correct setting to connect to Office 365 mailbox by IMAP protocol?
I’m trying the string:;ssl=True;port=993;;
But I receive the error message:

2018-10-17 22:05:18,455 [4648] ERROR CZ.Advantages.Asap.Workflow.WorkQueue.WorkQueueService [(null)] <origam_server> - Failed to load queue IMAP
System.NullReferenceException: Object reference not set to an instance of an object.
at cz.advantages.asap.workflow.mail.WorkQueueImapLoaderAdapter.Connect(IWorkQueueService service, Guid queueId, String workQueueClass, String connection, String userName, String password, String transactionId)
at CZ.Advantages.Asap.Workflow.WorkQueue.WorkQueueService.ProcessExternalQueue(WorkQueueRow q)