Re: [Dovecot] Shared mailboxes with dovecot problem service=lib-storage

2012-03-28 Thread Timo Sirainen
On 28.3.2012, at 11.57, Tomislav Mihalicek wrote:

> Could someone explain what this strings mean in dovecot 2.1.3 debug log?
> 
> Mar 27 11:18:11 cartman dovecot: auth: Debug: master in: USER 1
> te...@example.net service=lib-storage
> Mar 27 11:18:11 cartman dovecot: auth: Debug: master in: USER 2
> te...@example.net service=lib-storage

Dovecot is asking a user's home directory via userdb lookup. Looks like your 
userdb isn't returning a home directory. There should be an error message about 
it?



[Dovecot] Shared mailboxes with dovecot problem service=lib-storage

2012-03-28 Thread Tomislav Mihalicek

Hi

Could someone explain what this strings mean in dovecot 2.1.3 debug log?

Mar 27 11:18:11 cartman dovecot: auth: Debug: master in: USER   1
te...@example.net   service=lib-storage
Mar 27 11:18:11 cartman dovecot: auth: Debug: master in: USER   2
te...@example.net   service=lib-storage

-- 
View this message in context: 
http://old.nabble.com/Shared-mailboxes-with-dovecot-problem-service%3Dlib-storage-tp33544816p33544816.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] Shared mailboxes with dovecot.

2010-09-01 Thread Timo Sirainen
On Thu, 2010-08-26 at 16:13 +0300, Mihajlin Evgenij wrote:
> 
> mail_location = maildir:/var/spool/vmail/domains/%d/%n/Maildir
> namespace {
>   location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u 

These don't match. You're now using home dir in one but not the other.

> user_attrs = 
> =home=/var/spool/vmail/domains/%d/%n,=mail=/var/spool/vmail/domains/%d/%n/Maildir

Also you're here overriding mail_location. To make this simple:

 - Remove "mail=.." from user_attrs
 - Set mail_location = maildir:~/Maildir




Re: [Dovecot] Shared mailboxes with dovecot.

2010-09-01 Thread Timo Sirainen
On Thu, 2010-08-26 at 16:13 +0300, Mihajlin Evgenij wrote:
> Hi, first of all for forgive me for my english.
> 
> I have several questions. 
> 1. There are 2 user/passwd databases in my setup - ldap and mysql. when i 
> login into one user with telnet 127.0.0.1 143 and share inbox to some users - 
> records in dict-file apears? but if i delete some acls  - records indict-file 
> stays same.

Probably a bug.

> 2. I see in error.log such errors. can somebody explain what do dovecot list 
> shared folder (what files is looking for, how it see variables %u and %%u, 
> ...)
> 
> Aug 26 15:44:19 imap(j...@badmltd.dn.ua): Error: Namespace 'shared//': 
> mkdir(/var/run/dovecot/user-not-found/@badmltd.dn.ua) failed: Permission 
> denied (euid=47(mailnull) egid=12(mail) missing +w perm: /var/run/dovecot, 
> euid is not dir owner)

It looks as if it's trying to access an empty user's ("@badmltd.dn.ua")
mailbox ("shared//", it typically should access shared/username/box" or
something).

One annoying thing here is that it even gives this error message when
client attempts to access invalid mailboxes. Should fix it some day.

> Aug 26 15:44:53 imap(ad...@badmltd.dn.ua): Error: Namespace 'shared/shared/': 
> mkdir(/var/run/dovecot/user-not-found/sha...@badmltd.dn.ua) failed: 
> Permission 
> denied (euid=47(mailnull) egid=12(mail) missing +w perm: /var/run/dovecot, 
> euid is not dir owner)

Again, it's trying to access "sha...@badmltd.dn.ua" user's mails. That
user probably doesn't exist either?

How are you trying to access these mailboxes? With an imap client? Try
testing first by talking IMAP protocol directly and only after that
works try IMAP clients.

http://wiki2.dovecot.org/TestInstallation gives some commands. Basically
you should get these working:

a select shared/username/mailbox
b list "" shared/*



Re: [Dovecot] Shared mailboxes with dovecot.

2010-08-26 Thread Mihajlin Evgenij

Again, what does mean this strings?

Aug 26 15:48:03 auth: Debug: master in: USER1   za...@badmltd.dn.ua 
service=lib-storage
Aug 26 15:48:03 auth: Debug: master in: USER2   t...@badmltd.dn.ua  
service=lib-storage
Aug 26 15:48:03 auth: Debug: master in: USER2   t...@badmltd.dn.ua  
service=lib-storage
Aug 26 15:48:03 auth: Debug: master out: USER   2   t...@badmltd.dn.ua   
 service=lib-storage
 Aug 26 15:48:03 auth: Debug: master in: USER3   @badmltd.dn.ua  
 service=lib-storage
Aug 26 15:48:03 auth: Debug: master out: NOTFOUND   3

Why does dovecot iterates it? 



[Dovecot] Shared mailboxes with dovecot.

2010-08-26 Thread Mihajlin Evgenij
Hi, first of all for forgive me for my english.

I have several questions. 
1. There are 2 user/passwd databases in my setup - ldap and mysql. when i 
login into one user with telnet 127.0.0.1 143 and share inbox to some users - 
records in dict-file apears? but if i delete some acls  - records indict-file 
stays same.

2. I see in error.log such errors. can somebody explain what do dovecot list 
shared folder (what files is looking for, how it see variables %u and %%u, ...)

Aug 26 15:44:19 imap(j...@badmltd.dn.ua): Error: Namespace 'shared//': 
mkdir(/var/run/dovecot/user-not-found/@badmltd.dn.ua) failed: Permission 
denied (euid=47(mailnull) egid=12(mail) missing +w perm: /var/run/dovecot, 
euid is not dir owner)
Aug 26 15:44:53 imap(ad...@badmltd.dn.ua): Error: Namespace 'shared/shared/': 
mkdir(/var/run/dovecot/user-not-found/sha...@badmltd.dn.ua) failed: Permission 
denied (euid=47(mailnull) egid=12(mail) missing +w perm: /var/run/dovecot, 
euid is not dir owner)
Aug 26 15:44:56 imap(t...@badmltd.dn.ua): Error: Namespace 'shared/shared/': 
mkdir(/var/run/dovecot/user-not-found/sha...@badmltd.dn.ua) failed: Permission 
denied (euid=47(mailnull) egid=12(mail) missing +w perm: /var/run/dovecot, 
euid is not dir owner)
Aug 26 15:46:36 imap(j...@badmltd.dn.ua): Error: Namespace 'shared//': 
mkdir(/var/run/dovecot/user-not-found/@badmltd.dn.ua) failed: Permission 
denied (euid=47(mailnull) egid=12(mail) missing +w perm: /var/run/dovecot, 
euid is not dir owner)
Aug 26 15:48:04 imap(j...@badmltd.dn.ua): Error: Namespace 'shared//': 
mkdir(/var/run/dovecot/user-not-found/@badmltd.dn.ua) failed: Permission 
denied (euid=47(mailnull) egid=12(mail) missing +w perm: /var/run/dovecot, 
euid is not dir owner)

*debug.log***

Aug 26 15:48:03 auth: Debug: master out: USER   1   j...@badmltd.dn.ua  
home=/var/spool/vmail/domains/badmltd.dn.ua/jack  uid=47  gid=12
Aug 26 15:48:03 imap: Debug: Loading modules from directory: /usr/lib/dovecot
Aug 26 15:48:03 imap: Debug: Module loaded: 
/usr/lib/dovecot/lib01_acl_plugin.so
Aug 26 15:48:03 imap: Debug: Module loaded: 
/usr/lib/dovecot/lib02_imap_acl_plugin.so
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: Effective uid=47, gid=12, 
home=/var/spool/vmail/domains/badmltd.dn.ua/jack
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: Namespace : type=private, 
prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: maildir++: 
root=/var/spool/vmail/domains/badmltd.dn.ua/jack/Maildir, index=, control=, 
inbox=/var/spool/vmail/domains/badmltd.dn.ua/jack/Maildir
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl: initializing backend 
with data: vfile
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl: acl username = 
j...@badmltd.dn.ua
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl: owner = 1
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl vfile: Global ACL 
directory: (null)
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: Namespace : type=shared, 
prefix=shared/%n/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: shared: 
root=/var/run/dovecot, index=, control=, inbox=
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl: initializing backend 
with data: vfile
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl: acl username = 
j...@badmltd.dn.ua
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl: owner = 0
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl vfile: Global ACL 
directory: (null)
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl vfile: file 
/var/spool/vmail/domains/badmltd.dn.ua/jack/Maildir/.Trash/dovecot-acl not 
found
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl vfile: file 
/var/spool/vmail/domains/badmltd.dn.ua/jack/Maildir/.&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-/dovecot-
acl not found
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl vfile: file 
/var/spool/vmail/domains/badmltd.dn.ua/jack/Maildir/.Sent/dovecot-acl not 
found
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl vfile: file 
/var/spool/vmail/domains/badmltd.dn.ua/jack/Maildir/.&BCcENQRABD0EPgQyBDgEOgQ4-/dovecot-
acl not found
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: acl vfile: file 
/var/spool/vmail/domains/badmltd.dn.ua/jack/Maildir/dovecot-acl not found
Aug 26 15:48:03 auth: Debug: master in: USER1   za...@badmltd.dn.ua 
service=lib-storage
Aug 26 15:48:03 auth: Debug: sql(za...@badmltd.dn.ua): SELECT home, uid, gid 
FROM users WHERE id = 'zakaz' AND active = 'Y'
Aug 26 15:48:03 auth: Debug: master out: USER   1   za...@badmltd.dn.ua 
home=/var/spool/vmail/domains/badmltd.dn.ua/zakaz uid=47  gid=12
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: auth input: 
za...@badmltd.dn.ua home=/var/spool/vmail/domains/badmltd.dn.ua/zakaz uid=47 
gid=12
Aug 26 15:48:03 imap(j...@badmltd.dn.ua): Debug: maildir++: 
root=/var/spool/vmail/domains/badmltd.dn.ua/zakaz/Maildir,