[Dovecot] How to lock a user out?

Kai Wang kwang at ucalgary.ca
Wed Jun 29 22:54:35 EEST 2005


Excellent idea. You are right.

Thanks more :-D

Geo Carncross wrote:

>No.
>
>The idea is that:
>
>1. mail is delivered normally. to ~/mbox
>2. dovecot looks in ~/.dovebox which is NORMALLY a symlink to ~
>but when you want to lock someone out, ~/.dovebox is a symlink to that
>directory.
>
>
>Consider: what if they have multiple mailboxes/folders? Should those be
>visible? If so, do what you suggest, otherwise do what I suggest :)
>
>On Wed, 2005-06-29 at 11:28 -0600, Kai Wang wrote:
>
>>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