Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0002387SOGoWeb Mailpublic2013-09-27 17:32
Reporterdeeptibaghel Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
Summary0002387: Shared folders not showing using postfix+courier imap
Description

I have installed sogo-2.0.7-1 on Centos6. My mail server comprises of postfix
courier-imap-4.11.0-1 and postfix-2.6.6-2.2.
I am able to share the folder on webclient but it doesn't show to the user to whom it is shared.
I saw the old thread on this which says courier is having the issue, does this version of courier also have the issue ?

Pl. guide how to solve this problem. Our main reason for adopting Sogo is to have share and delegation and both seems to be not working on web client.

The screesnshot of sharied folder is attached.

TagsNo tags attached.

Activities

2013-08-07 06:03

 

Capture1.JPG (66,519 bytes)   
Capture1.JPG (66,519 bytes)   
ludovic

ludovic

2013-08-07 12:42

administrator   ~0005791

Do you have Preferences > Mail Options > Show subscribed mailboxes only

unchecked?

deeptibaghel

deeptibaghel

2013-08-07 16:03

reporter   ~0005793

If i uncheck , it starts showing another set of Inbox -> Draft,Sent, Trash Inside Main Inbox which is empty as well but it doesn't still show the shared folder of other user.

deeptibaghel

deeptibaghel

2013-08-09 04:18

reporter   ~0005802

Any suggestion to solve this problem ?

ludovic

ludovic

2013-08-09 12:57

administrator   ~0005804

Sniff using tcpflow the traffic between your IMAP server and SOGo when opening the mail feature of SOGo. Do it with only one user and send us the full trace.

2013-08-10 05:11

 

capture3 (7,273 bytes)   
010.145.010.035.00143-010.145.011.013.39404: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.

010.145.011.013.39404-010.145.010.035.00143: 1 login "singhmp" {9}
010.145.011.013.39404-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39404: + OK

010.145.011.013.39404-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39404: 1 OK LOGIN Ok.

010.145.011.013.39404-010.145.010.035.00143: 2 capability
010.145.011.013.39404-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39404: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
2 OK CAPABILITY completed

010.145.011.013.39404-010.145.010.035.00143: 3 namespace
010.145.011.013.39404-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39404: * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
3 OK NAMESPACE completed.

010.145.011.013.39404-010.145.010.035.00143: 4 LIST "" ""
010.145.011.013.39404-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39404: * LIST (\Noselect) "." ""
4 OK LIST completed

010.145.011.013.39404-010.145.010.035.00143: 5 select "INBOX"
010.145.011.013.39404-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39404: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1346599960] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
5 OK [READ-WRITE] Ok

010.145.011.013.39404-010.145.010.035.00143: 6 UID SORT (REVERSE DATE) US-ASCII NOT DELETED
010.145.011.013.39404-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39404: * SORT
6 OK SORT done.

010.145.011.013.39404-010.145.010.035.00143: 7 getquotaroot "INBOX"
010.145.010.035.00143-010.145.011.013.39404: * QUOTAROOT "INBOX" "ROOT"
* QUOTA "ROOT" (STORAGE 49137 307200)
7 OK GETQUOTAROOT Ok.

010.145.011.013.39404-010.145.010.035.00143: 

010.145.011.013.39404-010.145.010.035.00143: 8 logout

010.145.010.035.00143-010.145.011.013.39404: * BYE Courier-IMAP server shutting down
8 OK LOGOUT completed

010.145.010.035.00143-010.145.011.013.39407: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.

010.145.011.013.39407-010.145.010.035.00143: 1 login "singhmp" {9}
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: + OK

010.145.011.013.39407-010.145.010.035.00143: aishwarya

010.145.010.035.00143-010.145.011.013.39407: 1 OK LOGIN Ok.

010.145.011.013.39407-010.145.010.035.00143: 2 capability
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
2 OK CAPABILITY completed

010.145.011.013.39407-010.145.010.035.00143: 3 namespace
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
3 OK NAMESPACE completed.

010.145.011.013.39407-010.145.010.035.00143: 4 LIST "" ""
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: * LIST (\Noselect) "." ""
4 OK LIST completed

010.145.011.013.39407-010.145.010.035.00143: 5 LSUB "" "*"
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: * LSUB (\HasNoChildren) "." "INBOX.Trash.subscriptions"
* LSUB (\HasNoChildren) "." "INBOX.Trash.Mines-old1"
* LSUB (\HasNoChildren) "." "INBOX.Trash.test"
* LSUB (\HasNoChildren) "." "INBOX.Trash.Sent"
* LSUB (\HasNoChildren) "." "INBOX.Trash.test2"
* LSUB (\HasNoChildren) "." "INBOX.Drafts"
* LSUB (\HasChildren) "." "INBOX.Trash"
* LSUB (\Noselect \HasChildren) "." "INBOX"
5 OK LSUB completed

010.145.011.013.39407-010.145.010.035.00143: 6 LSUB "" "INBOX.*"
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: * LSUB (\HasNoChildren) "." "INBOX.Trash.subscriptions"
* LSUB (\HasNoChildren) "." "INBOX.Trash.Mines-old1"
* LSUB (\HasNoChildren) "." "INBOX.Trash.test"
* LSUB (\HasNoChildren) "." "INBOX.Trash.Sent"
* LSUB (\HasNoChildren) "." "INBOX.Trash.test2"
* LSUB (\HasNoChildren) "." "INBOX.Drafts"
* LSUB (\HasChildren) "." "INBOX.Trash"
6 OK LSUB completed

010.145.011.013.39407-010.145.010.035.00143: 7 LSUB "" "#shared.*"
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: 7 OK LSUB completed

010.145.011.013.39407-010.145.010.035.00143: 8 LSUB "" "shared.*"
010.145.011.013.39407-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39407: 8 OK LSUB completed

010.145.011.013.39407-010.145.010.035.00143: 9 logout

010.145.010.035.00143-010.145.011.013.39407: * BYE Courier-IMAP server shutting down
9 OK LOGOUT completed

010.145.010.035.00143-010.145.011.013.39410: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.

010.145.011.013.39410-010.145.010.035.00143: 1 login "singhmp" {9}
010.145.011.013.39410-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39410: + OK

010.145.011.013.39410-010.145.010.035.00143: aishwarya

010.145.010.035.00143-010.145.011.013.39410: 1 OK LOGIN Ok.

010.145.011.013.39410-010.145.010.035.00143: 2 capability
010.145.011.013.39410-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39410: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
2 OK CAPABILITY completed

010.145.011.013.39410-010.145.010.035.00143: 3 namespace
010.145.011.013.39410-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39410: * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
3 OK NAMESPACE completed.

010.145.011.013.39410-010.145.010.035.00143: 4 LIST "" ""
010.145.011.013.39410-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39410: * LIST (\Noselect) "." ""
4 OK LIST completed

010.145.011.013.39410-010.145.010.035.00143: 5 select "INBOX"
010.145.011.013.39410-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39410: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1346599960] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
5 OK [READ-WRITE] Ok

010.145.011.013.39410-010.145.010.035.00143: 6 UID SEARCH (UNSEEN) (NOT DELETED)
010.145.011.013.39410-010.145.010.035.00143: 

010.145.010.035.00143-010.145.011.013.39410: * SEARCH
6 OK SEARCH done.

010.145.011.013.39410-010.145.010.035.00143: 7 logout

010.145.010.035.00143-010.145.011.013.39410: * BYE Courier-IMAP server shutting down
7 OK LOGOUT completed

capture3 (7,273 bytes)   
deeptibaghel

deeptibaghel

2013-08-10 05:23

reporter   ~0005875

I have attached the capture file capture3 above. Also could you pl. guide why does it show the folder names twice in mail client.

deeptibaghel

deeptibaghel

2013-08-14 04:08

reporter   ~0005896

Waiting eagerly for any suggestion on the issue..

ismith78

ismith78

2013-08-25 09:13

reporter   ~0005927

I'm also having the same problem. I can share and get emails on the various accounts that everything is set up. Just nothing appears in the list of folders.

ismith78

ismith78

2013-08-28 20:36

reporter   ~0005930

Got this working. My problem was a typo in the /var/lib/sogo/GNUstep/Defaults/.GNUstepDefaults file

It had

<key>SOGoForwardEnabeled</key>
<string>YES</string>

Correct the spelling to

<key>SOGoForwardEnabled</key>
<string>YES</string>

Then suddenly my shares started working. Also need to ensure that the dovecot.conf share is set correctly and, if using a database for ACL, that all the tables are correct.

In my case everything was correct - even using telnet to access the IMAP server confirmed the ACL was right. It was just that typo that was the missing chain.

Useful sites I found were

http://www.cbjck.de/2013/06/setting-up-shared-mailboxes-in-dovecot/
http://wiki2.dovecot.org/ACL
https://wikit.firewall-services.com/doku.php/smedev/dovecot#shared_mailboxes
http://wiki.dovecot.org/SharedMailboxes/Public

I hope this helps you to resolve your problem.

ismith78

ismith78

2013-08-28 23:29

reporter   ~0005931

The other thing to check, which has also caught me out, is if the ACL for the folder you are sharing is not supplying the domain.

If you look at http://www.cbjck.de/2013/06/setting-up-shared-mailboxes-in-dovecot/ at the section about using telnet I would check that the ACL value contains the domain for the share.

e.g. if you have user1@domain sharing Inbox with user2@domain then do

telnet localhost 143
. login user1@domain user1password
. GETACL Inbox

If you get back * ACL "Inbox" "user2@domain" akxeilprwtscd "user1@domain" lrwstipekxacd

then dovecot is correctly settign the domain. If instead you get

  • ACL "Inbox" "user2" akxeilprwtscd "user1@domain" lrwstipekxacd

Then without the domain the match fails and the shared folder doesn't appear. To workaround that, and prove that is the issue, do

. SETACL Inbox user2@domain akxeilprwtscd

Doing a GETACL afterwards will then show user1@domain, user2 and user2@domain. Not ideal but should then make the folder appear in your user2 account.

I think this may be a %u vs %%u issue in the dovecot configuration, or a bug in the version of dovecot I have. At the moment I've sorted out the folders I need with this workaround so looking at this issue in detail is now lowering in my list of things to do.

I hope something in these two posts helps you to resolve your issue.

jraby

jraby

2013-08-29 17:41

viewer   ~0005932

Not too sure for your namespace problem, but what is the value of the NGImap4ConnectionStringSeparator in sogo.conf?

It should be set to a dot (.)
You might also want to check the value of these parameters: SOGoDraftsFolderName SOGoSentFolderName SOGoTrashFolderName (see the configuration guide about that)

deeptibaghel

deeptibaghel

2013-08-30 04:40

reporter   ~0005933

We are using courier-imap, so I think dovecot settings are not useful for my setup.
I conformed from the config doc, my imap settings are as below:

SOGoDraftsFolderName = INBOX/Drafts;
SOGoSentFolderName = INBOX/Sent;
SOGoTrashFolderName = INBOX/Trash;
SOGoIMAPServer = 10.145.10.35;
//SOGoSieveServer = sieve://127.0.0.1:4190;
SOGoSMTPServer = 10.145.10.35;
SOGoMailDomain = sail-bhilaisteel.com;
SOGoMailingMechanism = smtp;
//SOGoForceExternalLoginWithEmail = NO;
SOGoMailSpoolPath = /var/spool/sogo;
NGImap4ConnectionStringSeparator = ".";
SOGoSMTPAuthenticationType = plain;

SOGoMailShowSubscribedFoldersOnly = NO;
SOGoIMAPAclStyle = rfc2086;

When I did
telnet 10.145.10.35 143
. login deeptibaghel pwd
. GETACL Inbox
I got the outputs as below :

  • OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
    . login deeptibaghel pwd
    . OK LOGIN Ok.
    . GETACL Inbox
  • ACL "Inbox" "owner" "acdilrsw" "administrators" "acdilrsw" "singhmp" "ilprsw"
    . OK GETACL completed.

Still i can not see the shared folders. IS there anything i missed ?

Deepti

deeptibaghel

deeptibaghel

2013-09-07 04:43

reporter   ~0005948

Has anybody done it with courier imap earlier, do i need to configure something at imap server also ? i am getting absolutely no clue to resolve the issue.

deeptibaghel

deeptibaghel

2013-09-07 05:11

reporter   ~0005949

This link has some info on virtual shared folders of courier imap, do we need to do it ?
http://www.courier-mta.org/imap/README.sharedfolders.html#newshared

deeptibaghel

deeptibaghel

2013-09-16 07:22

reporter   ~0006002

So I did
telnet myserverip 143
0 login userid password
0 LIST "" "*"

  • LIST (\HasNoChildren) "." "INBOX.subscriptions"
  • LIST (\HasNoChildren) "." "INBOX.INBOX.Drafts"
  • LIST (\HasNoChildren) "." "INBOX.Drafts"
  • LIST (\HasNoChildren) "." "INBOX.INBOX.Trash"
  • LIST (\HasNoChildren) "." "INBOX.Sent"
  • LIST (\Marked \HasChildren) "." "INBOX"
  • LIST (\HasNoChildren) "." "INBOX.Trash"
  • LIST (\HasNoChildren) "." "INBOX.customflags"
  • LIST (\HasNoChildren) "." "INBOX.INBOX.Sent"
  • LIST (\HasChildren) "." "INBOX.INBOX"
    0 OK LIST completed

So there are no shared folders obviously.

Next i tried to build shared index in imap server using command and i got response as below :

#sharedindexinstall
/usr/lib/courier-imap/etc/shared.tmp is empty!

So I doubt Sogo is able to setup shares on courier imap server.

I am losing hope that I will be ever able to set it up as no one seems to have done it earlier and there is no help on Sogo documentation.

ludovic

ludovic

2013-09-27 17:32

administrator   ~0006062

Obviously, from your last comment, even LIST doesn't return the shared IMAP namespace.

Fix your IMAP server before blaming SOGo. It's not a SOGo problem, it's a configuration problem with Courier.

You should look at Dovecot as a modern drop-in replacement.

Issue History

Date Modified Username Field Change
2013-08-07 06:03 deeptibaghel New Issue
2013-08-07 06:03 deeptibaghel File Added: Capture1.JPG
2013-08-07 12:42 ludovic Note Added: 0005791
2013-08-07 16:03 deeptibaghel Note Added: 0005793
2013-08-09 04:18 deeptibaghel Note Added: 0005802
2013-08-09 12:57 ludovic Note Added: 0005804
2013-08-10 05:11 deeptibaghel File Added: capture3
2013-08-10 05:23 deeptibaghel Note Added: 0005875
2013-08-14 04:08 deeptibaghel Note Added: 0005896
2013-08-25 09:13 ismith78 Note Added: 0005927
2013-08-28 20:36 ismith78 Note Added: 0005930
2013-08-28 23:29 ismith78 Note Added: 0005931
2013-08-29 17:41 jraby Note Added: 0005932
2013-08-30 04:40 deeptibaghel Note Added: 0005933
2013-09-07 04:43 deeptibaghel Note Added: 0005948
2013-09-07 05:11 deeptibaghel Note Added: 0005949
2013-09-16 07:22 deeptibaghel Note Added: 0006002
2013-09-27 17:32 ludovic Note Added: 0006062
2013-09-27 17:32 ludovic Status new => closed
2013-09-27 17:32 ludovic Resolution open => won't fix