Re: Shared folders not listed by IMAP

2014-07-04 Thread Bambero
I made another socket in my chroot (/var/mail) and now I can see shared
folders.

Now my config looks like this:
service auth {
 unix_listener auth-userdb {
#mode = 0660
#user = _exim
#group =.
  }
  unix_listener /var/mail/var/dovecot/auth-userdb {
mode = 0666
  }

  unix_listener auth-client {
mode = 0660
user = _exim
  }
}

But why this is necessary ?
In my previous version of dovecot 2.0.13 auth-userdb socket was in default
location (outside chroot) and everything worked well.




On Wed, Jul 2, 2014 at 8:03 PM, Giedrius Liubavičius giedr...@su.lt wrote:

 OK,
 This is the problem why your configuration is not working. My shared
 folder did not work up until I fixed auth-userdb permissions in a way
  so that user my A (not dovecot user) [t...@mydomain.pl in your
 case] could connect to it and get info about user B [te...@mydomain.pl
 in your case]

 Just change the auth-userdb file location (and probably permissions)
 or duplicate it to real root location.
 either from within configuration files or just as a plain symlink
 (maybe pre-login script ?)

 2014.07.02 19:03, Bambero rašė:
  But the problem is that I can't see shared folders to subscribe (shared
 by
  other users) while connecting via IMAP.
 
  There is also an error:
  Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such
  file or directory
 
  Probably becouse of chroot (/var/mail).
 
 
  On Wed, Jul 2, 2014 at 1:29 PM, Giedrius Liubavičius giedr...@su.lt
 wrote:
 
  Hi,
  doveadm mailbox subscribe -u t...@mydomain.pl Shared/
 te...@mydomain.pl
  doveadm mailbox subscribe -u t...@mydomain.pl
  Shared/te...@mydomain.pl/Sent
 
  2014.07.02 14:04, Bambero rašė:
  Hello
 
  I just upgraded my system and there is a problem with shared mailboxes.
 
  When I use the doveadm command I can see shared folders:
 
  doveadm mailbox list -u 't...@mydomain.pl'
  Drafts
  Sent
  Spam
  Trash
  Shared
  Virtuals
  Virtuals/all
  Shared/te...@mydomain.pl
  Shared/te...@mydomain.pl/Sent
  INBOX
 
  But I can't see them over IMAP protocol.
 
  Some config opts:
 
  valid_chroot_dirs = /var/mail
  mail_chroot = /var/mail
 
  namespace {
type = shared
separator = /
prefix = Shared/%%u/
location = maildir:/%%u/Maildir:INDEX=~/Maildir/Shared/%%u
subscriptions = yes
list = yes
  }
 
  plugin {
acl = vfile:cache_secs=5
  }
 
  plugin {
acl_shared_dict = file:/var/mail/%i.db
  }
 
  protocol imap {
mail_plugins = $mail_plugins imap_quota imap_acl imap_zlib
  }
 
 
  My version of dovecot is 2.2.10.
 
  Regards
  Bambero
 
 
 





Re: Shared folders not listed by IMAP

2014-07-02 Thread Giedrius Liubavičius
Hi,
doveadm mailbox subscribe -u t...@mydomain.pl Shared/te...@mydomain.pl
doveadm mailbox subscribe -u t...@mydomain.pl
Shared/te...@mydomain.pl/Sent

2014.07.02 14:04, Bambero rašė:
 Hello

 I just upgraded my system and there is a problem with shared mailboxes.

 When I use the doveadm command I can see shared folders:

 doveadm mailbox list -u 't...@mydomain.pl'
 Drafts
 Sent
 Spam
 Trash
 Shared
 Virtuals
 Virtuals/all
 Shared/te...@mydomain.pl
 Shared/te...@mydomain.pl/Sent
 INBOX

 But I can't see them over IMAP protocol.

 Some config opts:

 valid_chroot_dirs = /var/mail
 mail_chroot = /var/mail

 namespace {
   type = shared
   separator = /
   prefix = Shared/%%u/
   location = maildir:/%%u/Maildir:INDEX=~/Maildir/Shared/%%u
   subscriptions = yes
   list = yes
 }

 plugin {
   acl = vfile:cache_secs=5
 }

 plugin {
   acl_shared_dict = file:/var/mail/%i.db
 }

 protocol imap {
   mail_plugins = $mail_plugins imap_quota imap_acl imap_zlib
 }


 My version of dovecot is 2.2.10.

 Regards
 Bambero



attachment: giedrius.vcf

Re: Shared folders not listed by IMAP

2014-07-02 Thread Bambero
But the problem is that I can't see shared folders to subscribe (shared by
other users) while connecting via IMAP.

There is also an error:
Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such
file or directory

Probably becouse of chroot (/var/mail).


On Wed, Jul 2, 2014 at 1:29 PM, Giedrius Liubavičius giedr...@su.lt wrote:

 Hi,
 doveadm mailbox subscribe -u t...@mydomain.pl Shared/te...@mydomain.pl
 doveadm mailbox subscribe -u t...@mydomain.pl
 Shared/te...@mydomain.pl/Sent

 2014.07.02 14:04, Bambero rašė:
  Hello
 
  I just upgraded my system and there is a problem with shared mailboxes.
 
  When I use the doveadm command I can see shared folders:
 
  doveadm mailbox list -u 't...@mydomain.pl'
  Drafts
  Sent
  Spam
  Trash
  Shared
  Virtuals
  Virtuals/all
  Shared/te...@mydomain.pl
  Shared/te...@mydomain.pl/Sent
  INBOX
 
  But I can't see them over IMAP protocol.
 
  Some config opts:
 
  valid_chroot_dirs = /var/mail
  mail_chroot = /var/mail
 
  namespace {
type = shared
separator = /
prefix = Shared/%%u/
location = maildir:/%%u/Maildir:INDEX=~/Maildir/Shared/%%u
subscriptions = yes
list = yes
  }
 
  plugin {
acl = vfile:cache_secs=5
  }
 
  plugin {
acl_shared_dict = file:/var/mail/%i.db
  }
 
  protocol imap {
mail_plugins = $mail_plugins imap_quota imap_acl imap_zlib
  }
 
 
  My version of dovecot is 2.2.10.
 
  Regards
  Bambero
 





Re: Shared folders not listed by IMAP

2014-07-02 Thread Giedrius Liubavičius
OK,
This is the problem why your configuration is not working. My shared
folder did not work up until I fixed auth-userdb permissions in a way
 so that user my A (not dovecot user) [t...@mydomain.pl in your
case] could connect to it and get info about user B [te...@mydomain.pl
in your case]

Just change the auth-userdb file location (and probably permissions)
or duplicate it to real root location.
either from within configuration files or just as a plain symlink
(maybe pre-login script ?)
   
2014.07.02 19:03, Bambero rašė:
 But the problem is that I can't see shared folders to subscribe (shared by
 other users) while connecting via IMAP.

 There is also an error:
 Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such
 file or directory

 Probably becouse of chroot (/var/mail).


 On Wed, Jul 2, 2014 at 1:29 PM, Giedrius Liubavičius giedr...@su.lt wrote:

 Hi,
 doveadm mailbox subscribe -u t...@mydomain.pl Shared/te...@mydomain.pl
 doveadm mailbox subscribe -u t...@mydomain.pl
 Shared/te...@mydomain.pl/Sent

 2014.07.02 14:04, Bambero rašė:
 Hello

 I just upgraded my system and there is a problem with shared mailboxes.

 When I use the doveadm command I can see shared folders:

 doveadm mailbox list -u 't...@mydomain.pl'
 Drafts
 Sent
 Spam
 Trash
 Shared
 Virtuals
 Virtuals/all
 Shared/te...@mydomain.pl
 Shared/te...@mydomain.pl/Sent
 INBOX

 But I can't see them over IMAP protocol.

 Some config opts:

 valid_chroot_dirs = /var/mail
 mail_chroot = /var/mail

 namespace {
   type = shared
   separator = /
   prefix = Shared/%%u/
   location = maildir:/%%u/Maildir:INDEX=~/Maildir/Shared/%%u
   subscriptions = yes
   list = yes
 }

 plugin {
   acl = vfile:cache_secs=5
 }

 plugin {
   acl_shared_dict = file:/var/mail/%i.db
 }

 protocol imap {
   mail_plugins = $mail_plugins imap_quota imap_acl imap_zlib
 }


 My version of dovecot is 2.2.10.

 Regards
 Bambero





attachment: giedrius.vcf

Re: Shared folders not listed by IMAP

2014-07-02 Thread john.j.rowan...@gmail.com


Sent from my Verizon Wireless 4GLTE smartphone

- Reply message -
From: Giedrius Liubavičius giedr...@su.lt
To: dovecot@dovecot.org
Subject: Shared folders not listed by IMAP
Date: Wed, Jul 2, 2014 14:03


OK,
This is the problem why your configuration is not working. My shared
folder did not work up until I fixed auth-userdb permissions in a way
 so that user my A (not dovecot user) [t...@mydomain.pl in your
case] could connect to it and get info about user B [te...@mydomain.pl
in your case]

Just change the auth-userdb file location (and probably permissions)
or duplicate it to real root location.
either from within configuration files or just as a plain symlink
(maybe pre-login script ?)
   
2014.07.02 19:03, Bambero rašė:
 But the problem is that I can't see shared folders to subscribe (shared by
 other users) while connecting via IMAP.

 There is also an error:
 Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such
 file or directory

 Probably becouse of chroot (/var/mail).


 On Wed, Jul 2, 2014 at 1:29 PM, Giedrius Liubavičius giedr...@su.lt wrote:

 Hi,
 doveadm mailbox subscribe -u t...@mydomain.pl Shared/te...@mydomain.pl
 doveadm mailbox subscribe -u t...@mydomain.pl
 Shared/te...@mydomain.pl/Sent

 2014.07.02 14:04, Bambero rašė:
 Hello

 I just upgraded my system and there is a problem with shared mailboxes.

 When I use the doveadm command I can see shared folders:

 doveadm mailbox list -u 't...@mydomain.pl'
 Drafts
 Sent
 Spam
 Trash
 Shared
 Virtuals
 Virtuals/all
 Shared/te...@mydomain.pl
 Shared/te...@mydomain.pl/Sent
 INBOX

 But I can't see them over IMAP protocol.

 Some config opts:

 valid_chroot_dirs = /var/mail
 mail_chroot = /var/mail

 namespace {
   type = shared
   separator = /
   prefix = Shared/%%u/
   location = maildir:/%%u/Maildir:INDEX=~/Maildir/Shared/%%u
   subscriptions = yes
   list = yes
 }

 plugin {
   acl = vfile:cache_secs=5
 }

 plugin {
   acl_shared_dict = file:/var/mail/%i.db
 }

 protocol imap {
   mail_plugins = $mail_plugins imap_quota imap_acl imap_zlib
 }


 My version of dovecot is 2.2.10.

 Regards
 Bambero







Re: Shared folders not listed by IMAP

2014-07-02 Thread john.j.rowan...@gmail.com
 . t,yV e

Sent from my Verizon Wireless 4GLTE smartphone

- Reply message -
From: Giedrius Liubavičius giedr...@su.lt
To: dovecot@dovecot.org
Subject: Shared folders not listed by IMAP
Date: Wed, Jul 2, 2014 14:03


OK,
This is the problem why your configuration is not working. My shared
folder did not work up until I fixed auth-userdb permissions in a way
 so that user my A (not dovecot user) [t...@mydomain.pl in your
case] could connect to it and get info about user B [te...@mydomain.pl
in your case]

Just change the auth-userdb file location (and probably permissions)
or duplicate it to real root location.
either from within configuration files or just as a plain symlink
(maybe pre-login script ?)
   
2014.07.02 19:03, Bambero rašė:
 But the problem is that I can't see shared folders to subscribe (shared by
 other users) while connecting via IMAP.

 There is also an error:
 Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such
 file or directory

 Probably becouse of chroot (/var/mail).


 On Wed, Jul 2, 2014 at 1:29 PM, Giedrius Liubavičius giedr...@su.lt wrote:

 Hi,
 doveadm mailbox subscribe -u t...@mydomain.pl Shared/te...@mydomain.pl
 doveadm mailbox subscribe -u t...@mydomain.pl
 Shared/te...@mydomain.pl/Sent

 2014.07.02 14:04, Bambero rašė:
 Hello

 I just upgraded my system and there is a problem with shared mailboxes.

 When I use the doveadm command I can see shared folders:

 doveadm mailbox list -u 't...@mydomain.pl'
 Drafts
 Sent
 Spam
 Trash
 Shared
 Virtuals
 Virtuals/all
 Shared/te...@mydomain.pl
 Shared/te...@mydomain.pl/Sent
 INBOX

 But I can't see them over IMAP protocol.

 Some config opts:

 valid_chroot_dirs = /var/mail
 mail_chroot = /var/mail

 namespace {
   type = shared
   separator = /
   prefix = Shared/%%u/
   location = maildir:/%%u/Maildir:INDEX=~/Maildir/Shared/%%u
   subscriptions = yes
   list = yes
 }

 plugin {
   acl = vfile:cache_secs=5
 }

 plugin {
   acl_shared_dict = file:/var/mail/%i.db
 }

 protocol imap {
   mail_plugins = $mail_plugins imap_quota imap_acl imap_zlib
 }


 My version of dovecot is 2.2.10.

 Regards
 Bambero