[Dovecot] Shared folders and home directories
Christian Lerrahn
lists at penpal4u.net
Thu Jul 21 18:24:21 EEST 2011
Hi,
I've recently migrated a server from a Qmail/VPOPMail setup to a
Postfix/system accounts setup. Everything worked pretty much out of the
box after just changing the passdb and userdb to pam and passwd.
However, I cannot get my shared folders to work. In the logs I will
always see something like
Jul 21 07:24:10 mybox dovecot: IMAP(foobar): Namespace 'shared/':
Could not lookup home for user bla
Jul 21 07:24:11 mybox dovecot: IMAP(foobar): userdb
lookup: connect(/var/run/dovecot/auth-master) failed: No such file or
directory
Now, I don't understand why I need auth-master to find the home
directory of user "bla" (who owns the shared folder). However, even if
I configure auth-master, only the error messages will go away but I
still can't see the shared folders.
The configuration (as shown below) worked fine with vpopmail and is
just taken from http://wiki.dovecot.org/SharedMailboxes/Shared . What
do I have to change to make this work with passwd instead? Do I really
need auth-master? If yes, how do I need to set it up to do the job
properly?
Cheers,
Christian
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-xen-686 i686 Debian 6.0.2
protocols: imaps pop3s
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): acl imap_acl
mail_plugins(imap): acl imap_acl
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
namespace:
type: private
separator: /
inbox: yes
list: yes
subscriptions: yes
namespace:
type: shared
separator: /
prefix: shared/%%n/
location: maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
list: children
lda:
mail_plugins: acl
auth default:
username_chars:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@%
passdb: driver: pam
userdb:
driver: passwd
plugin:
acl: vfile
acl_anyone: allow
acl_shared_dict: file:/var/lib/dovecot/shared-mailboxes
More information about the dovecot
mailing list