Can't view (other) users subfolders with imapd 3.0.6
| Newsgroups | gmane.mail.imap.cyrus |
|---|---|
| Organization | Nucleus s.r.l. |
| Message-ID | <[email protected]> |
Hi, after migrating from cyrus-imapd-2.4.17 to cyrus-imapd-3.0.6 we cannot view (other) users subfolders. Distro:Gentoo Cyrus version: cyrus-imapd-3.0.6 imapd-3.0.5.conf attached In the test environment we created a user named "aaa" and "bbb", then we created the folder "bbb/mytest/mysubtest". We set the acl for the user aaa to share the mailbox bbb/mytest/mysubtest user.aaa 0 default aaa lrswipkxtecdan anonymous p user.bbb 0 default bbb lrswipkxtecdan anonymous p aaa lrswipkxtecdan user.bbb.mytest 0 default bbb lrswipkxtecdan anonymous p aaa lrswipkxtecdan user.bbb.mytest.mysubtest 0 default bbb lrswipkxtecdan anonymous p aaa lrswipkxtecdan From whatever imap client, when we search for new folders, user.bbb appears, but neither user.bbb.mytest nor user.bbb.mytest.mysubtest. This is the capture from imapd 3.0.6: IMAP> 62 LIST "" "user/%" IMAP< * LIST (\HasChildren) "/" user/bbb IMAP< 62 OK Completed (0.001 secs 3 calls) IMAP> 63 LIST "" "user/bbb/%" IMAP< 63 OK Completed (0.000 secs) IMAP> 64 LSUB "" "user/bbb/%" IMAP< 64 OK Completed (0.000 secs) IMAP> 65 LSUB "" "user/%" IMAP< 65 OK Completed (0.000 secs) IMAP> 66 LSUB "" "%" IMAP< * LSUB (\Noselect \HasChildren) "/" INBOX IMAP< 66 OK Completed (0.000 secs 4 calls) IMAP> 16 NOOP IMAP< 16 OK Success IMAP> 67 SUBSCRIBE "user/bbb" IMAP< 67 OK Completed IMAP> 68 LSUB "" "%" IMAP< * LSUB (\Noselect \HasChildren) "/" INBOX IMAP< * LSUB (\Noselect \HasChildren) "/" user IMAP< 68 OK Completed (0.001 secs 5 calls) IMAP> 69 LSUB "" "INBOX/%" IMAP< * LSUB () "/" INBOX/Drafts ... IMAP> 74 LSUB "" "user/%" IMAP< * LSUB () "/" user/bbb IMAP< 74 OK Completed (0.001 secs 1 calls) IMAP> 75 LSUB "" "user/bbb/%" IMAP< 75 OK Completed (0.001 secs) Refreshing only the user.bbb folders nothing changed IMAP> 83 LIST "" "user/%" IMAP< * LIST (\HasChildren) "/" user/bbb IMAP< 83 OK Completed (0.001 secs 3 calls) IMAP> 84 LIST "" "user/bbb/%" IMAP< 84 OK Completed (0.001 secs) IMAP> 85 LSUB "" "user/bbb/%" IMAP< 85 OK Completed (0.001 secs) IMAP> 86 LSUB "" "user/%" IMAP< * LSUB () "/" user/bbb IMAP< 86 OK Completed (0.001 secs 1 calls) With net-mail/cyrus-imapd-2.4.17 all is working fine imapd-2.4.17.conf attached user.aaa 0 default aaa lrswipkxtecda anonymous p user.bbb 0 default bbb lrswipkxtecda anonymous p aaa lrswipkxtecda user.bbb.mytest 0 default bbb lrswipkxtecda anonymous p aaa lrswipkxtecda user.bbb.mytest.mysubtest 0 default bbb lrswipkxtecda anonymous p aaa lrswipkxtecda if we search for new folders to subscribe user/bbb and all the subfolders appeared IMAP> 57 LIST "" "user/%" IMAP< * LIST (\HasChildren) "/" user/bbb IMAP< 57 OK Completed (0.000 secs 3 calls) IMAP> 58 LIST "" "user/bbb/%" IMAP< * LIST (\HasChildren) "/" user/bbb/mytest IMAP< 58 OK Completed (0.000 secs 2 calls) IMAP> 59 LIST "" "user/bbb/mytest/%" IMAP< * LIST (\HasNoChildren) "/" user/bbb/mytest/mysubtest IMAP< 59 OK Completed (0.000 secs 2 calls) IMAP> 60 LIST "" "user/bbb/mytest/mysubtest/%" IMAP< 60 OK Completed (0.000 secs) IMAP> 61 LSUB "" "user/bbb/mytest/mysubtest/%" IMAP< 61 OK Completed (0.000 secs) IMAP> 62 LSUB "" "user/bbb/mytest/%" IMAP< 62 OK Completed (0.000 secs) IMAP> 63 LSUB "" "user/bbb/%" IMAP< 63 OK Completed (0.000 secs) IMAP> 64 LSUB "" "user/%" IMAP< 64 OK Completed (0.000 secs) IMAP> 65 LSUB "" "%" IMAP< * LSUB (\Noselect \HasChildren) "/" INBOX IMAP< 65 OK Completed (0.000 secs 4 calls) IMAP> 66 NOOP IMAP< 66 OK Completed IMAP> 67 SUBSCRIBE "user/bbb" IMAP< 67 OK Completed IMAP> 68 SUBSCRIBE "user/bbb/mytest/mysubtest" IMAP< 68 OK Completed IMAP> 69 SUBSCRIBE "user/bbb/mytest" IMAP< 69 OK Completed Any suggestion? Thanks for the support Marco ---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
imapd-2.4.17.conf
(application/octet-stream, 1.8 KB)
# Nucleus config nucleus_configurations-1.0_p1284 # $Id$ # Don't forget to use chattr +S (if you are using ext[23]) # when you change these directories (read the docs). configdirectory: /var/imap partition-default: /var/spool/imap sievedir: /var/imap/sieve #tls_ca_path: /etc/ssl/certs #tls_cert_file: /etc/ssl/cyrus/server.crt #tls_key_file: /etc/ssl/cyrus/server.key # Don't use an everyday user as admin. admins: cyrus #hashimapspool: yes hashimapspool: no allowanonymouslogin: no #allowplaintext: no # Allow renaming of top-level mailboxes. #allowusermoves: yes # Use this if sieve-scripts could be in ~user/.sieve. #sieveusehomedir: yes # Use saslauthd if you want to use pam for imap. # But be warned: login with DIGEST-MD5 or CRAM-MD5 # is not possible using pam. #sasl_pwcheck_method: saslauthd #################################################### ## This is a recommended authentication method if you ## emerge cyrus-sasl with 'postgres' or 'mysql' ## To use with mysql database uncomment those lines below. #sasl_pwcheck_method: auxprop #sasl_auxprop_plugin: sql ## possible values for sasl_auxprop_plugin 'mysql', 'pgsql', 'sqlite'. #sasl_sql_engine: mysql ## all possible values. #sasl_mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5 NTLM ## or limit to CRAM-MD5 only #sasl_mech_list: CRAM-MD5 ## change below to suit your setup. #sasl_sql_user: mailsqluser #sasl_sql_passwd: password #sasl_sql_database: mailsqldb #sasl_sql_hostnames: localhost #sasl_sql_select: SELECT clear FROM users WHERE email = '%u@%r' # BEGIN Nucleus configurations allowplaintext: yes allowplainwithouttls: yes unixhierarchysep: yes sendmail: /usr/sbin/sendmail mech_list: plain login sasl_pwcheck_method: saslauthd sasl_mech_list: plain login lmtp_downcase_rcpt: yes # END Nucleus configurations
imapd-3.0.5.conf
(application/octet-stream, 4.5 KB)
# Nucleus config nucleus_configurations-1.0_p1374 # Suggested minimal imapd.conf # See imapd.conf(5) for more information and more options # Space-separated users who have admin rights for all services. # NB: THIS MUST BE CONFIGURED admins: cyrus ################################################################### ## File, socket and DB location settings. ################################################################### # Configuration directory configdirectory: /var/imap # Directories for proc and lock files proc_path: /run/cyrus/proc mboxname_lockpath: /run/cyrus/lock # Locations for DB files # The following DB are recreated upon initialization, so should live in # ephemeral storage for best performance. duplicate_db_path: /run/cyrus/deliver.db ptscache_db_path: /run/cyrus/ptscache.db statuscache_db_path: /run/cyrus/statuscache.db tls_sessions_db_path: /run/cyrus/tls_sessions.db # Which partition to use for default mailboxes defaultpartition: default partition-default: /var/spool/imap # If sieveusehomedir is false (the default), this directory is searched # for Sieve scripts. sievedir: /var/imap/sieve ################################################################### ## Important: KEEP THESE IN SYNC WITH cyrus.conf ################################################################### lmtpsocket: /run/cyrus/socket/lmtp idlesocket: /run/cyrus/socket/idle notifysocket: /run/cyrus/socket/notify # Syslog prefix. Defaults to cyrus (so logging is done as cyrus/imap # etc.) syslog_prefix: cyrus ################################################################### ## Server behaviour settings ################################################################### # Space-separated list of HTTP modules that will be enabled in # httpd(8). This option has no effect on modules that are disabled at # compile time due to missing dependencies (e.g. libical). # # Allowed values: caldav, carddav, domainkey, ischedule, rss httpmodules: caldav carddav # If enabled, the partitions will also be hashed, in addition to the # hashing done on configuration directories. This is recommended if one # partition has a very bushy mailbox tree. #hashimapspool: true # Enable virtual domains # and set default domain to localhost #virtdomains: yes #defaultdomain: localhost ################################################################### ## User experience settings ################################################################### # Minimum time between POP mail fetches in minutes #popminpoll: 1 ################################################################### ## User Authentication settings ################################################################### # Allow plaintext logins by default (SASL PLAIN) #allowplaintext: yes ################################################################### ## SASL library options (these are handled directly by the SASL ## libraries, refer to SASL documentation for an up-to-date list of ## these) ################################################################### # The mechanism(s) used by the server to verify plaintext passwords. # Possible values are "saslauthd", "auxprop", "pwcheck" and # "alwaystrue". They are tried in order, you can specify more than one, # separated by spaces. sasl_pwcheck_method: saslauthd # If enabled, the SASL library will automatically create authentication # secrets when given a plaintext password. Refer to SASL documentation sasl_auto_transition: no ################################################################### ## SSL/TLS Options ################################################################### # File containing the global certificate used for ALL services (imap, # pop3, lmtp, sieve) #tls_server_cert: /etc/ssl/certs/ssl-cert-snakeoil.pem # File containing the private key belonging to the global server # certificate. #tls_server_key: /etc/ssl/private/ssl-cert-snakeoil.key # File containing one or more Certificate Authority (CA) certificates. #tls_client_ca_file: /etc/ssl/certs/cyrus-imapd-ca.pem # Path to directory with certificates of CAs. tls_client_ca_dir: /etc/ssl/certs # The length of time (in minutes) that a TLS session will be cached for # later reuse. The maximum value is 1440 (24 hours), the default. A # value of 0 will disable session caching. tls_session_timeout: 1440 # BEGIN Nucleus configurations altnamespace: no hashimapspool: false allowanonymouslogin: no allowplaintext: yes unixhierarchysep: yes sendmail: /usr/sbin/sendmail sasl_mech_list: plain login lmtp_downcase_rcpt: yes virtdomains: no popminpoll: 0 search_engine: squat # END Nucleus configurations
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQRgs4moDz/kAc8JPxco+KAxdHlzYQUCWvqcLwAKCRAo+KAxdHlz Yfq2AJ9NVHxawpca9TEN5xcqoB8iKB0thQCfRUkI4xg676SY5HN4zj4rUPqJl6M= =RLJ9 -----END PGP SIGNATURE-----