I have a requirement that we need to provide imap access only to some mailboxes All other users download the mails using pop Currently I am using an nginx proxy and checking for users in nginx , but that seems inefficient. Is there a better way ? Thanks Ram