On 09/13/2010 06:25 PM, Timo Sirainen wrote:
On Wed, 2010-09-08 at 09:47 +0300, alex wrote:

Now user2 can see the inbox of user1, can read his emails...but:

- in user2 inbox I have (in sq, but also in tb) :
        + shared
                - INBOX (don't now what represents, on click :                  
ERROR:  Could not
complete request.
                        Query: SELECT "shared//INBOX"
                        Reason Given: Mailbox doesn't exist: INBOX)
                - INBOX (user1 inbox - OK)

Show this as IMAP traffic logs (e.g. use
http://wiki.dovecot.org/Debugging/Rawlog or wireshark or something).

- on the first login of user2 , in /home/sites/domain.tld/mail/ , is
creating a orphan folder Maildir , and on select of a first "INBOX"
shared folder , in /home/sites/domain.tld/mail/ is creating a orphan
folder shared.

I don't understand. Your use of "folder" here seems to mean sometimes
filesystem directories and sometimes not. Show full paths for where the
mails are supposed to be, and what is created that isn't supposed to be
created.


Hi Timo

Thank you for answer me.

I'm sorry if I wasn't clear.I have add rawlog settings to my config and test again.

This is how filesystem directory looks:

#ls -l /home/sites/domain.tld/mail/
drwx------ 2 vmail vmail 4096 Sep 14 12:21 Maildir
drwxr-xr-x 3 vmail vmail 4096 Dec 18  2007 admin
drwxr-xr-x 3 vmail vmail 4096 Sep  7 11:03 user1
drwxr-xr-x 3 vmail vmail 4096 Aug  4  2008 user2
drwx------ 3 vmail vmail 4096 Sep 14 12:21 shared
-rw------- 1 vmail vmail  555 Sep 14 10:01 shared-mailboxes.db

Folders "Maildir" and "shared" are not suppose to be here.


For the "/home/sites/domain.tld/mail/shared" and "/home/sites/domain.tld/mail/Maildir" filesystem folders , the one way I reproduce their creation : I have delete "/home/sites/domain.tld/mail/shared" and "/home/sites/domain.tld/mail/Maildir", open TB, select user2 account and open the "Subscribe..." option. The result : both folders appear under the /home/sites/domain.tld.

Here are the raw logs:

# cat 20100914-122107-4370.in
2 ENABLE CONDSTORE
3 select "Sent" (CONDSTORE)
4 getquotaroot "Sent"
5 UID fetch 616:* (FLAGS)
6 IDLE
DONE
7 lsub "" "*"
8 list "" "%"
9 list "" "%/%"
10 lsub "" "shared/*"
11 list "" "shared/%"
12 list "" "shared/%/%"
13 IDLE


# cat 20100914-122107-4370.out
* OK [RAWLOG TIMESTAMP] 2010-09-14 12:21:07
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk QUOTA] Logged in
* ENABLED CONDSTORE
2 OK Enabled.
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 614 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1196870006] UIDs valid
* OK [UIDNEXT 616] Predicted next UID
* OK [HIGHESTMODSEQ 51] Highest
3 OK [READ-WRITE] Select completed.
* QUOTAROOT "Sent" "user"
* QUOTA "user" (STORAGE 336948 976562)
4 OK Getquotaroot completed.
* 614 FETCH (UID 615 FLAGS (\Seen))
5 OK Fetch completed.
+ idling
6 OK Idle completed.
* LSUB () "/" "Trash"
* LSUB () "/" "Sent"
* LSUB () "/" "Drafts"
* LSUB () "/" "INBOX"
* LSUB () "/" "Spam"
* LSUB () "/" "shared/user1/INBOX"
* LSUB () "/" "shared/user1/Spam"
7 OK Lsub completed.
* LIST (\HasNoChildren) "/" "Spam"

* LIST (\Noselect \HasChildren) "/" "dovecot"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Trash"

* LIST (\HasNoChildren) "/" "Drafts"
* LIST (\HasChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "shared"
8 OK List completed.
* LIST (\HasNoChildren) "/" "dovecot/sieve"
* LIST (\Noselect \HasChildren) "/" "shared/"
* LIST (\Noselect \HasChildren) "/" "shared/user1"
9 OK List completed.
* LSUB () "/" "shared//INBOX"
* LSUB () "/" "shared/user1/INBOX"
* LSUB () "/" "shared/user1/Spam"
10 OK Lsub completed.
* LIST (\Noselect \HasChildren) "/" "shared/"
* LIST (\Noselect \HasChildren) "/" "shared/user1"
11 OK List completed.
* LIST (\HasNoChildren) "/" "shared/user1/Spam"
* LIST (\HasNoChildren) "/" "shared/user1/INBOX"
12 OK List completed.
+ idling
* OK Still here


The user2 TB account look like this:

(-) Inbox
    Drafts
    Sent
    Trash
   (-)shared
      (-)user1
         INBOX(12)
         Spam   
    Spam

If I click on "(-)shared" folder I get "The current command did not succeed. The mail server responded:Mailbox doesn't exist"


This is how filesystem directories looks for the user1 and user2 :


# ls -al /home/sites/domain.tld/mail/user2/Maildir/
drwx------ 18 vmail vmail    4096 Sep 14 10:10 .
drwxr-xr-x  3 vmail vmail    4096 Sep  7 11:03 ..
drwx------  6 vmail vmail    4096 Sep 12 08:54 .Drafts
drwx------  6 vmail vmail    4096 Sep  9 17:58 .Sent
drwx------  5 vmail vmail    4096 Sep  8 14:43 .Spam
drwx------  6 vmail vmail    4096 Sep  7 14:21 .Trash
lrwxrwxrwx 1 root root 21 Sep 7 18:24 .dovecot.sieve -> sieve/phpscript.sieve
-rw-------  1 vmail vmail     430 Sep  7 18:57 .dovecot.svbin
drwxr-xr-x  2 vmail vmail    4096 Oct 14  2009 courierimaphieracl
drwx------  2 vmail vmail    4096 May  6 13:35 courierimapkeywords
-rw-r--r--  1 vmail vmail      84 Jan  5  2010 courierimapsubscribed
-rw-r--r--  1 vmail vmail   68632 May  6 13:31 courierimapuiddb
drwx------  2 vmail vmail  159744 Sep 13 13:49 cur
-rw-------  1 vmail vmail       0 Sep  8 14:44 dovecot-acl-list
-rw-------  1 vmail vmail      81 May 12 18:11 dovecot-keywords
-rw-------  1 vmail vmail   88049 Sep 13 12:44 dovecot-uidlist
-rw-------  1 vmail vmail       8 Jun  1 17:05 dovecot-uidvalidity
-rw-------  1 vmail vmail       0 May 14 13:24 dovecot-uidvalidity.4bed24f5
-rw-------  1 vmail vmail       0 Sep  7 17:38 dovecot-uidvalidity.4c864e7b
-rw-------  1 vmail vmail   22072 Sep  8 08:50 dovecot.index
-rw-------  1 vmail vmail  976896 Sep 13 14:43 dovecot.index.cache
-rw-------  1 vmail vmail   12548 Sep 13 13:49 dovecot.index.log
-rw-------  1 vmail vmail 2928895 Jul 27 23:09 dovecot.index.search
-rw-------  1 vmail vmail 1398552 Jul 27 23:09 dovecot.index.search.uids
drwxr-xr-x  2 vmail vmail    4096 Sep 14 10:10 dovecot.rawlog
-rw-r--r--  1 vmail vmail    4952 May  6 13:31 maildirsize
drwx------  2 vmail vmail    4096 Sep 13 12:44 new
drwx------  3 vmail vmail    4096 Sep  8 17:08 shared
drwx------  3 vmail vmail    4096 May 19 09:54 sieve
-rw-------  1 vmail vmail     108 Sep  8 17:10 subscriptions
drwx------  2 vmail vmail    4096 Sep 13 12:44 tmp


# ls -al /home/sites/domain.tld/mail/user1/Maildir/
drwx------ 14 vmail vmail    4096 Sep 14 10:07 .
drwxr-xr-x  3 vmail vmail    4096 Nov 22  2007 ..
drwx------  6 vmail vmail    4096 Sep  3 08:26 .Drafts
drwx------  6 vmail vmail    4096 May  6 14:40 .Queue
drwx------  6 vmail vmail    4096 Sep  8 17:22 .Sent
drwx------  5 vmail vmail    4096 Sep  8 17:16 .Spam
drwx------  6 vmail vmail    4096 May 18 20:12 .Templates
drwx------  6 vmail vmail    4096 Sep  6 13:50 .Trash
drwx------  2 vmail vmail   12288 May  6 12:30 courierimapkeywords
-rw-r--r--  1 vmail vmail      82 Sep 15  2008 courierimapsubscribed
-rw-r--r--  1 vmail vmail  635986 May  6 12:22 courierimapuiddb
-rw-r--r--  1 vmail vmail   31928 Nov 22  2007 courierpop3dsizelist
drwx------  2 vmail vmail 1478656 Sep 14 10:06 cur
-rw-------  1 vmail vmail     106 Sep 13 13:21 dovecot-acl
-rw-------  1 vmail vmail      33 Sep 13 13:21 dovecot-acl-list
-rw-r--r--  1 vmail vmail      80 May  6 14:08 dovecot-keywords
-rw-------  1 vmail vmail  770277 Sep 14 09:58 dovecot-uidlist
-rw-------  1 vmail vmail       8 May  6 14:40 dovecot-uidvalidity
-rw-------  1 vmail vmail       0 May  6 14:40 dovecot-uidvalidity.4be2aaa3
-rw-------  1 vmail vmail       0 Sep  7 17:39 dovecot-uidvalidity.4c864e85
-rw-------  1 vmail vmail  201424 Sep 14 09:58 dovecot.index
-rw-------  1 vmail vmail 6241280 Sep 14 09:58 dovecot.index.cache
-rw-------  1 vmail vmail   18016 Sep 14 10:07 dovecot.index.log
-rw-------  1 vmail vmail 5203359 Jul 28 11:29 dovecot.index.search
-rw-------  1 vmail vmail 7321688 Jul 28 11:29 dovecot.index.search.uids
-rw-r-----  1 vmail vmail    1884 May  6 13:17 maildirsize
drwx------  2 vmail vmail    4096 Sep 14 09:58 new
drwx------  3 vmail vmail    4096 Sep  8 16:57 sieve
-rw-------  1 vmail vmail      51 May 14 18:13 subscriptions
drwx------  2 vmail vmail    4096 Sep 14 09:58 tmp



# ls -l /home/sites/domain.tld/mail/Maildir/
total 0
-rw------- 1 vmail vmail 0 Sep 14 12:21 dovecot-acl-list

# ls -l /home/sites/domain.tld/mail/shared
total 12
drwx------  2 vmail vmail 4096 Sep 14 12:21 Maildir


Thank you
Alex

Reply via email to