As soon as you are verifiying your mail setup on the Zammad server, move the received mail message to the folder you want to synchronize, otherwise the verification will fail.(most of the time with a login error)
The IMAP-Folder notation is /Inbox/Zammad(or whatever you named it) -> It is capital sensitive!!