[Dovecot] Dovecot + vpopmail + shared folders

qmail at top-consulting.net qmail at top-consulting.net
Tue Nov 16 20:27:36 EET 2010


Maybe I'm missing some part of the configuration. I don't have a  
service auth { part and the auth_socket_path is commented out. Here is  
my full config:




# 1.2.14: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.0-RELEASE i386
protocols: imap pop3 imaps pop3s
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(pop3): *:995
ssl_ca_file: /usr/local/gtech/certs/gd_bundle.crt
ssl_cert_file: /usr/local/gtech/certs/pop.crt
ssl_key_file: /usr/local/gtech/certs/rsa.pop.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting: Emailarray ready.
mail_max_userip_connections(default): 100
mail_max_userip_connections(imap): 100
mail_max_userip_connections(pop3): 10
verbose_proctitle: yes
first_valid_uid: 89
first_valid_gid: 89
mail_privileged_group: mail
mail_uid: 89
mail_gid: 89
mail_location: maildir:~/Maildir
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
lock_method: dotlock
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota fts fts_solr virtual acl imap_acl
mail_plugins(imap): quota imap_quota fts fts_solr virtual acl imap_acl
mail_plugins(pop3): virtual
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh  
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
   type: private
   separator: .
   inbox: yes
   list: yes
   subscriptions: yes
namespace:
   type: private
   separator: .
   prefix: INBOX.
   hidden: yes
   list: no
   subscriptions: yes
namespace:
   type: private
   separator: .
   prefix: Labels.
   location: virtual:~/Maildir/Labels:INDEX=MEMORY
   list: yes
   subscriptions: yes
namespace:
   type: shared
   separator: .
   prefix: shared.%%n.
   location: maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
   list: children
lda:
   sendmail_path: /usr/sbin/sendmail
auth default:
   mechanisms: plain login
   username_format: %Lu
   verbose: yes
   passdb:
     driver: vpopmail
     args: webmail=192.168.1.4
   userdb:
     driver: vpopmail
     args: quota_template=quota_rule=*:backend=%q
plugin:
   fts: solr
   fts_solr: break-imap-search url=http://192.168.1.4:8983/solr/
   quota: maildir
   quota_rule: ?:storage=0
   acl: vfile
   acl_shared_dict: proxy::acl
dict:
   acl: mysql:/usr/local/etc/dovecot-dict-sql.conf



Here are also the files that exist in /var/run/dovecot:

ls -laR /var/run/dovecot/
total 8
drwxr-xr-x  3 root  wheel     512 Nov 16 13:07 .
drwxr-xr-x  8 root  wheel    1024 Nov 16 13:07 ..
srw-------  1 root  wheel       0 Nov 16 13:07 auth-worker.86474
srwxrwxrwx  1 root  wheel       0 Nov 16 13:07 dict-server
lrwx------  1 root  wheel      27 Nov 16 13:07 dovecot.conf ->  
/usr/local/etc/dovecot.conf
drwxr-x---  2 root  dovecot   512 Nov 16 13:07 login
-rw-------  1 root  wheel       6 Nov 16 13:07 master.pid

/var/run/dovecot/login:
total 6
drwxr-x---  2 root  dovecot  512 Nov 16 13:07 .
drwxr-xr-x  3 root  wheel    512 Nov 16 13:07 ..
srw-rw----  1 root  dovecot    0 Nov 16 13:07 default
-rw-r--r--  2 root  wheel    230 Nov 15 06:18 ssl-parameters.dat

Thanks!

Quoting Timo Sirainen <tss at iki.fi>:

> On Tue, 2010-11-16 at 13:16 -0500, qmail at top-consulting.net wrote:
>> Nov 16 13:07:35 pop dovecot: IMAP(sheken at top-consulting.net): userdb
>> lookup: connect(/var/run/dovecot/auth-master) failed: No
>> such file or directory
>
> It should be connecting to auth-userdb. You probably have
> auth_socket_path changed. You could just comment it out.
>
> The second part is that you most likely have to change auth-userdb
> socket's permissions as well. From example 10-master.conf:
>
> service auth {
>   # auth_socket_path points to this userdb socket by default. It's typically
>   # used by dovecot-lda, doveadm, possibly imap process, etc. Its default
>   # permissions make it readable only by root, but you may need to  
> relax these
>   # permissions. Users that have access to this socket are able to get a list
>   # of all usernames and get results of everyone's userdb lookups.
>   unix_listener auth-userdb {
>     #mode = 0600
>     #user =
>     #group =
>   }
>
> So probably just set "user = vmail" there.
>
>






More information about the dovecot mailing list