Our imap server has been acting a little funny and despite my attempts to ignore it until it got better, it just kept acting funny. It would undelete messages and not let them be moved to other folders at times. At other times, it would work fine. So, I decided to go with the RedHat provided dovecot package.

The config file is /etc/dovecot.conf. It had a few lines that needed to be edited.

protocols = imaps (we only allow secure connections)
ssl_cert_file
ssl_key_file
first_valid_uid = 200 (the default is 500)
auth_passdb = shadow

Once these were changed, I just had to turn off imaps with chkconfig and restart xinetd. Then start dovecot.