Feature #1879

Mail-server: automatic subscription of group shared folders

Added by Davide Principi over 7 years ago. Updated about 7 years ago.

Status:CLOSEDStart date:06/06/2013
Priority:NormalDue date:06/06/2013
Assignee:-% Done:

100%

Category:nethserver-mail-server
Target version:v6.4-beta2
Resolution: NEEDINFO:No

Description

When a group has MailDeliveryType=shared each member of the group must automatically subscribe the shared folder.

The same must happen when a member is added to or removed from the group.


Related issues

Related to NethServer 6 - Enhancement #2003: Mail-server: enable Listescape plugin CLOSED 06/07/2013 06/07/2013
Related to NethServer 6 - Bug #2002: Sogo mysql password unescaped: connection fails CLOSED 06/07/2013 06/07/2013
Related to NethServer 6 - Bug #2151: group-create event fails on nethserver-mail-group-acl-adj... CLOSED 11/14/2013 11/14/2013
Related to NethServer 6 - Bug #2214: Group Shared Folder always shown CLOSED 11/14/2013 11/14/2013

Associated revisions

Revision d4d722d6
Added by Davide Principi about 7 years ago

/etc/dovecot/dovecot.conf template (20users,40namespaces): refactored settings. Refs #1879

Revision d53d77de
Added by Davide Principi about 7 years ago

/etc/dovecot/dovecot.conf (50shared_groups): declare shared group namespaces disabled. Shared groups are selectively enabled by dovecot-postlogin script. Refs #1879

Revision 16fa4045
Added by Davide Principi about 7 years ago

/etc/dovecot/dovecot.conf (40namespaces): mail_shared_explicit_inbox, shared INBOX be visible as "shared/user" or "shared/user/INBOX". Refs #1879

Revision c19733ee
Added by Davide Principi about 7 years ago

/etc/dovecot/dovecot.conf (40namespaces): configure IMAP SPECIAL-USE extension. Refs #1879

Revision af82f8f0
Added by Davide Principi about 7 years ago

/etc/dovecot/dovecot.conf template (40namespaces): automatically subscribe junkmail folder, if dovecot/SpamFolder prop is set. Refs #1879

Revision 703ff7d8
Added by Davide Principi about 7 years ago

/etc/dovecot/dovecot.conf template: Removed namespaces for shared groups. Refs #1879

Revision 39c66717
Added by Davide Principi about 7 years ago

nethserver-mail-group-acl-adjust action: Trigger an ACL change to update shared-mailboxes.db. Refs #1879

Revision 5c08cd83
Added by Davide Principi about 7 years ago

group-{create,modify,delete} events: automatically subscribe group shared folder for newly added/removed members. Refs #1879

Revision 20b09a3f
Added by Davide Principi about 7 years ago

nethserver-mail-group-acl-adjust action: be sure INBOX folder exists before setting ACL. Refs #1879

Revision ec069b33
Added by Davide Principi over 6 years ago

Show INBOX subfolder under Shared/ namespace. Refs #2214 #1879

This is dovecot default setting for mail_shared_explicit_inbox. TB17
seems to have problems with Shared/ subscriptions.

History

#1 Updated by Davide Principi about 7 years ago

  • Target version changed from ~FUTURE to v6.4-beta2

#2 Updated by Davide Principi about 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20
  • Estimated time set to 4.00

#3 Updated by Davide Principi about 7 years ago

  • Due date set to 06/06/2013
  • Assignee set to Davide Principi
  • Start date set to 06/06/2013

#4 Updated by Davide Principi about 7 years ago

  • Description updated (diff)
  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#5 Updated by Davide Principi about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 70

#6 Updated by Davide Principi about 7 years ago

Test case 1

  1. Install NethServer 6.4 beta1, then add nethserver-sogo package (see also #2002)
  2. Create user1, user2, group1, group2, enabling Email for all of them
  3. Add user1 to group1 and group2
  4. In server-manager, enable "Deliver the message into a shared folder" email option for group1
  5. Send some email messages from user2 to user1, group1 and group2
  6. In SOGo, log in as user1: you should see Shared/group1 mailbox
  7. Now, change also group2 mail settings to "Deliver the message into a shared folder", and send a message to group2
  8. Reload SOGo: user1 should see Shared/group2 mailbox

Test case 1b

  1. In SOGo, log in as user2: you should NOT see any Shared mailbox

Subscriptions of group shared mailbox must be automatic. Users cannot unsubscribe a group shared mailbox: more work is required to achieve this feature.

#7 Updated by Davide Principi about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 80

In nethserver-testing:
nethserver-mail-server-1.4.1-1.ns6.noarch.rpm

#8 Updated by Alessio Fattorini about 7 years ago

  • Assignee set to Alessio Fattorini

#9 Updated by Alessio Fattorini about 7 years ago

  1. rpm -q nethserver-mail-server
    nethserver-mail-server-1.3.1-1.ns6.noarch

Something strange, i verify test case 1 and test case 1b

Should i test on testing package too?
nethserver-mail-server-1.4.1-1.ns6.noarch.rpm

#10 Updated by Davide Principi about 7 years ago

  • Status changed from ON_QA to ON_DEV
  • % Done changed from 80 to 30

#11 Updated by Davide Principi about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 70

Test client notes

SOGo seems to subscribe automatically every listed mail folder. To verify subscriptions through raw IMAP commands, run this script on the testing machine:

( set -f; for CMD in "a LOGIN user1 S123crEt?" \
  'ns NAMESPACE * *' \
  'lst LIST "" *'  \
  'lsx LSUB * *'  \
  'lss LSUB Shared *'; \
  do echo $CMD; sleep 1; done ) | nc localhost 143

LSUB responses show folder subscriptions. See RFC3501 for details.

Please, verify also Thunderbird and any other possible IMAP client.

Test case update

Davide Principi wrote:

Subscriptions of group shared mailbox must be automatic. Users cannot unsubscribe a group shared mailbox: more work is required to achieve this feature.

This has been changed: now automatic subscribe/unsubscribe commands are executed on addition/removal of group members. Group members are free to unsubscribe and subscribe again the shared folder at any time.

#12 Updated by Davide Principi about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 70 to 80

#13 Updated by Davide Principi about 7 years ago

In nethserver-testing:
nethserver-mail-server-1.4.2-1.ns6.noarch.rpm

#14 Updated by Alessio Fattorini about 7 years ago

  • Assignee changed from Alessio Fattorini to Giacomo Sanchietti

#15 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Created users and groups:

[root@test ~]# db accounts show user1
user1=user
    City=
    Company=
    Department=
    FirstName=user1
    LastName=user1
    MailForwardStatus=disabled
    MailSpamRetentionStatus=disabled
    MailStatus=enabled
    PhoneNumber=
    Street=
    Uid=5000
    __state=active
[root@test ~]# db accounts show user2
user2=user
    City=
    Company=
    Department=
    FirstName=user2
    LastName=user2
    MailForwardStatus=disabled
    MailSpamRetentionStatus=disabled
    MailStatus=enabled
    PhoneNumber=
    Street=
    Uid=5001
    __state=active
[root@test ~]# db accounts show group1
group1=group
    Description=
    Gid=5002
    MailDeliveryType=shared
    MailStatus=enabled
    Members=user1
[root@test ~]# db accounts show group2
group2=group
    Description=
    Gid=5003
    MailDeliveryType=shared
    MailStatus=enabled
    Members=user1

User user1 in SOGo can view group1 and group2 shared folders, user2 has no access to shared folders.
After adding user2 to group2, user2 can view group2 shared folder.

Subscriptions for user1:

* LSUB () "/" "Shared/group1" 
* LSUB () "/" "Shared/group2" 

Subscriptions for user2:

* LSUB () "/" "Shared/group2" 

Subscription to group2 has been automatically added after group modification.

After removing user1 from group1, user1 can't access group1 shared folder anymore.

Marking VERIFIED

#16 Updated by Davide Principi about 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Moved to nethserver-updates repository

Also available in: Atom PDF