Logging into IMAP (Dovecot) server

I am attempting to login to my IMAP Dovecot server on my Amazon EC2 instance. I am attempting to login as root and I recieve this error in the mail log:

dovecot: imap: Error: user root: Invalid settings in userdb: userdb returned 0 as uid

What should I do? Thanks.


Don't login to IMAP as root ($10 says you're not using TLS either, so your root password just went across the Internet en-clair). Redirect mail destined for the root account to a non-privileged account, collect the mail from that account, change your root password, and setup TLS.