Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I attempt to login to my Dovecot IMAP server I get this error:

 dovecot: imap(ec2-user): Error: user *theuser*: Couldn't drop privileges: Mail access for users with UID 222 not permitted 

What is going on? HELP!

share|improve this question
up vote 2 down vote accepted

Dovecot restricts the users that can login via the first_valid_uid setting -- the assumption is that system users (which should not be logging in to an IMAP server) all have UIDs below a certain threshold, and regular users (who should be the ones logging in to an IMAP server) have UIDs above a certain threshold.

So, first make sure you're not logging in as a system user (like postmaster). If you are logging in as a regular user, check your Dovecot config and make sure that the first_valid_uid setting accurately reflects your policies (or that of your distribution) for the UID range that represents regular users.

share|improve this answer
Thanks got it working, I am able to connect to IMAP and read the messages in the inbox now. The only problem I have now is I have no clue how to set up the TLS security encryption. I guess I'll start a new question. – john Jul 19 '11 at 2:00
Excellent idea to start a new question for a separate topic. Thanks for asking this one though as its answer was extremely useful for me just now! – Tony Adams Nov 3 '15 at 2:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.