[Dovecot] Read-only account through INDEX=MEMORY:CONTROL=MEMORY and non-writable Unix-permissions

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Mon Sep 9 14:52:48 EEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

my goal is to provide a special mailbox for some mail accounts. The user 
should get the information, to look somewhere else. The user must not 
change anything at all. I also don't want to provide a mailbox for each 
user.

I got the setup below, which seems to run with Dovecot v2.2; however, 
"CONTROL=MEMORY" is not documented. Is the setup stable for next versions 
of Dovecot or is CONTROL=MEMORY not a feature, but a bug?

======

user settings:

home=/home/nomailbox 
mail=maildir:/home/nomailbox/Maildir:INDEX=MEMORY:CONTROL=MEMORY
uid=vmail
gid=vmail

The structure of the directory:

/home/nomailbox/:
total 12
drwxr-xr-x  3 root root 4096 Oct 24  2007 ./
drwxr-xr-x 18 root root 4096 Sep  9 10:36 ../
dr-xr-xr-x  5 root root 4096 Oct 24  2007 Maildir/

/home/nomailbox/Maildir:
total 20
dr-xr-xr-x 5 root root 4096 Oct 24  2007 ./
drwxr-xr-x 3 root root 4096 Oct 24  2007 ../
dr-xr-xr-x 2 root root 4096 Oct 24  2007 cur/
dr-xr-xr-x 2 root root 4096 Sep  9 08:23 new/
dr-xr-xr-- 2 root root 4096 Oct 24  2007 tmp/

/home/nomailbox/Maildir/cur:
total 8
dr-xr-xr-x 2 root root 4096 Oct 24  2007 ./
dr-xr-xr-x 5 root root 4096 Oct 24  2007 ../
- -rw-r--r-- 1 root root    0 Oct 24  2007 .placeholder

/home/nomailbox/Maildir/new:
total 12
dr-xr-xr-x 2 root root 4096 Sep  9 08:23 ./
dr-xr-xr-x 5 root root 4096 Oct 24  2007 ../
- -r--r--r-- 1 root root  804 Sep  9 08:24 no-mailbox-for-you

/home/nomailbox/Maildir/tmp:
total 8
dr-xr-xr-- 2 root root 4096 Oct 24  2007 ./
dr-xr-xr-x 5 root root 4096 Oct 24  2007 ../


- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUi22kF3r2wJMiz2NAQLJEAf/WM0jXqVmZ6HtEvoKTB4grE2xFfN4Ylig
imhPVf/yufYLzQw+w98fhrozEcm7UK0mUWpiJQzMowYyLNdF8tVwhgTdAfFa6fhK
+L0+GxVcCuvRq/YjIivhgQ7gwZlhjLWa43Fo65HAqude4nnuyb5/RuVb0aPBlB73
1V5nMB5f9PSrlAjtK4kLOq1VRNp2SCVfBem/ESqhYSZ+O51gGZ8JRm7skWr82GmZ
tdeYDa52h8CWm67S1lzNK42yNoElkLrH5MZJLCBmjg/hLjD99aMCAdgWRL5zyg/h
bZzoOZNztQq0CwBHTB+KY9YBkfMmXzFtse3C0a2Eg9m5bmJmNblPGw==
=iYWU
-----END PGP SIGNATURE-----


More information about the dovecot mailing list