[Dovecot] How to lock a user out?

Kai Wang kwang at ucalgary.ca
Wed Jun 29 20:28:45 EEST 2005


Good idea.

The INBOX is always a symbolic link. For a unlocked user, it points to a 
hidden file ~/.dovebox/mbox. For a locked user, it points to another 
hidden ~/.lockdir/mbox. Postfix/procmail always delivers messages to 
~/.dovebox/mbox.

Thank you very much
Kai

Geo Carncross wrote:

>1. tell dovecot to look for messages in ~/.dovebox/mbox using
>mailbox_env
>
>2. ln -s ~ ~/.dovebox for all users.
>
>3. to lock user, rm -f ~/.dovebox && ln -s ~/.lockdir ~/.dovebox
>
>4. to unlock user, rm -f ~/.dovebox && ln -s ~ ~/.dovebox
>
>
>
>On Tue, 2005-06-28 at 16:03 -0600, Kai Wang wrote:
>
>>Hi,
>>
>>We are considering to migrate to Dovecot. We can running uw-imap and 
>>have a local path which allow us to lock a user by creating a .lockdir 
>>directory in the user home directory and put our warning message to 
>>.lockdir/mbox. The locked user can still receive messages in ~/mbox. But 
>>can not access any messages except ~/.lockdir/mbox. I wonder if Dovecot 
>>has any similar feature which we can use to lock a user out without 
>>affecting the mail delivery?
>>
>>Kai Wang
>>University of Calgary
>>



More information about the dovecot mailing list