Apple Mail does not seem to connect to my IMAP server
As a followup: I solved my problem by doing the following steps:


Delete the account from Mail.app
Quit Mail.app
Delete /Users/$USER/Library/Mail/V2/IMAP-yourmail@something.com, if it still exists
Start Mail.app and re-create the account


After that, I could use the IMAP account just fine.