[Dovecot] Shared folder doesn't work!

Brian Lavender brian at brie.com
Tue Jan 16 23:19:56 UTC 2007


I can't seem to get a shared folder working properly. I am authenticating
using pam, and the users have a shell account on the system. Problem is,
the permissions on the messages moved into the folder don't maintain
properly, and other users can't read the share.

I have the following in /etc/dovecot/dovecot.conf

namespace public {
  separator = /
  prefix = Public/
  location = maildir:/var/mail/public
}

# If you create a "namespace public" section, then you need to create
# a "namespace private" section
namespace private {
   separator = /
   prefix =
   location = maildir:/home/%u/Maildir
   # There can be only one INBOX, and this setting defines
   # which namespace has it.
   inbox = yes
}

umask = 0007

I am running rc15 from backports on Debian stable.


dovecot (1.0.rc15-1~bpo1) sarge-backports; urgency=low

  * Rebuilt for sarge.
  * Only changes needed were build dependency on libpq-dev changed back to
    postgresql-dev, libmysqlclient15-dev changed back to libmysqlclient12-dev,
    kernel-headers versioned build-dependency removed and debhelper version
    relaxed to 4.

 -- Jaldhar H. Vyas <jaldhar at debian.org>  Mon,  4 Dec 2006 00:48:28 -0500

And here is the share. Two users are accessing it: brian and fred which
are both in the colab group. See how the one message doesn't have group
read or write.

# cd /var/mail
# find public -ls
232465    1 drwxrws---   6 fred     colab        1024 Jan 16 00:50 public/
232466    1 drwxrws---   2 fred     colab        1024 Jan 16 00:13 public/cur
232467    1 drwxrws---   2 fred     colab        1024 Jan 16 00:13 public/new
232468    1 drwxrws---   2 fred     colab        1024 Jan 16 00:13 public/tmp
228051    1 drwxrws---   5 fred     colab        1024 Jan 16 04:32 public/.notices
228100    1 drwxrws---   2 fred     colab        1024 Jan 16 04:30 public/.notices/cur
228104    1 -rw-rw----   1 fred     colab         477 Jan 15 23:05 public/.notices/cur/1168937439.P1214Q0M467971.debian:2,S
228262    1 -rw-rw----   1 brian    colab         812 Jan 15 22:58 public/.notices/cur/1168949589.P1006Q0M317215.debian:2,S
228105    1 -rw-rw----   1 fred     colab         819 Jan 15 21:22 public/.notices/cur/1168950176.P1101Q0M673976.debian:2,S
228263    1 -rw-------   1 fred     colab         620 Jan 15 22:57 public/.notices/cur/1168950649.P1171Q0M862818.debian:2,RS
228101    1 drwxrws---   2 fred     colab        1024 Jan 16 00:20 public/.notices/new
228102    1 drwxrws---   2 fred     colab        1024 Jan 16 04:30 public/.notices/tmp
228103    1 -rw-rwx---   1 fred     colab         636 Jan 16 04:30 public/.notices/dovecot.index.log
228266    0 -rw-------   1 brian    colab           0 Jan 16 04:32 public/.notices/dovecot-uidlist.lock
228107    1 -rw-rwx---   1 fred     colab         192 Jan 16 04:30 public/.notices/dovecot.index
228106   17 -rw-rwx---   1 fred     colab       16384 Jan 16 04:30 public/.notices/dovecot.index.cache
228265    1 -rw-------   1 fred     colab         172 Jan 16 04:30 public/.notices/dovecot-uidlist
232470    1 -rw-rw----   1 fred     colab           8 Jan 16 00:50 public/subscriptions
-- 
Brian Lavender
http://www.brie.com/brian/


More information about the dovecot mailing list