I finally updated my IMAP server to the dovecot version in ports. Last time i tried to upgrade to a 1.0.alpha release, due to an mbox parsing bug, i had to downgrade to 0.99.
Now the releases are called 1.0-beta and it seems to work fine except some initial log messages “mbox sync: UID inserted in the middle of mailbox”.