[Dovecot] doveadm doesn't subscribe to public folders
Hi,
I'd like to subscribe folder with doveadm:
doveadm mailbox subscribe -u rago public.Conferences
This command doesn't work, while it works with an ordinary folder. However it's possible to subscribe to the folder with an imap connection:
1 login rago "mypasswd" 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORTSORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPCE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES ITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 2 LSUB "" *
- LSUB () "." "INBOX" 2 OK Lsub completed. 3 SUBSCRIBE "public.Conferences" 3 OK Subscribe completed. 4 LSUB "" *
- LSUB () "." "INBOX"
- LSUB () "." "public.Conferences" 4 OK Lsub completed.
Am I doing anything wrong?
This is my conf, thx for help, Emiliano
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-220.4.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 5 (Tikanga) ext4 auth_cache_size = 128 M auth_master_user_separator = * auth_mechanisms = plain cram-md5 mail_location = maildir:/data/MAIL/MAILDIR/%u:INBOX=/data/MAIL/INBOX/%u:INDEX=/data/MAIL/METADATA/%u maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:/data/MAIL/MAILDIR/%%u:INDEX=/data/MAIL/METADATA/SHARED/%u/%%u prefix = shared.%%u. separator = . subscriptions = no type = shared } namespace { list = children location = maildir:/data/MAIL/PUBLIC:INDEX=/data/MAIL/METADATA/PUBLIC prefix = public. separator = . subscriptions = no type = public } passdb { args = scheme=cram-md5 /data/PWDDB/cram_dovecot.txt driver = passwd-file } passdb { args = /etc/dovecot/master-shared driver = passwd-file master = yes } passdb { args = /etc/dovecot/master-shared driver = passwd-file } plugin { acl = vfile:/etc/dovecot/global-acls:cache_secs=300 acl_anyone = allow acl_shared_dict = file:/data/MAIL/SHAREDDB/shared-mailboxes.db sieve = /data/MAIL/SIEVE/%u/dovecot.sieve sieve_dir = /data/MAIL/SIEVE/%u } postmaster_address = root protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = mailreader mode = 0600 user = mailreader } } service imap-login { process_min_avail = 8 service_count = 0 vsz_limit = 512 M } service imap-postlogin { executable = script-login /etc/dovecot/postlogin.sh user = $default_internal_user } service imap { executable = imap imap-postlogin } ssl_cert =
Hi,
what it's happening with the doveadm command below is that the file modified is /data/MAIL/PUBLIC/subscriptions while I'd like to modify the file /data/MAIL/rago/subscriptions
With subscriptions=no every user can subscribe to public folder, so perhaps this behaviour is inappropriate; suggestions?
Thanks, Emiliano Rago
On 06/12/2012 02:08 PM, Emiliano Rago wrote:
Hi,
I'd like to subscribe folder with doveadm:
doveadm mailbox subscribe -u rago public.Conferences
This command doesn't work, while it works with an ordinary folder. However it's possible to subscribe to the folder with an imap connection:
1 login rago "mypasswd" 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORTSORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPCE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES ITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 2 LSUB "" *
- LSUB () "." "INBOX" 2 OK Lsub completed. 3 SUBSCRIBE "public.Conferences" 3 OK Subscribe completed. 4 LSUB "" *
- LSUB () "." "INBOX"
- LSUB () "." "public.Conferences" 4 OK Lsub completed.
Am I doing anything wrong?
This is my conf, thx for help, Emiliano
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-220.4.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 5 (Tikanga) ext4 auth_cache_size = 128 M auth_master_user_separator = * auth_mechanisms = plain cram-md5 mail_location = maildir:/data/MAIL/MAILDIR/%u:INBOX=/data/MAIL/INBOX/%u:INDEX=/data/MAIL/METADATA/%u
maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:/data/MAIL/MAILDIR/%%u:INDEX=/data/MAIL/METADATA/SHARED/%u/%%u prefix = shared.%%u. separator = . subscriptions = no type = shared } namespace { list = children location = maildir:/data/MAIL/PUBLIC:INDEX=/data/MAIL/METADATA/PUBLIC prefix = public. separator = . subscriptions = no type = public } passdb { args = scheme=cram-md5 /data/PWDDB/cram_dovecot.txt driver = passwd-file } passdb { args = /etc/dovecot/master-shared driver = passwd-file master = yes } passdb { args = /etc/dovecot/master-shared driver = passwd-file } plugin { acl = vfile:/etc/dovecot/global-acls:cache_secs=300 acl_anyone = allow acl_shared_dict = file:/data/MAIL/SHAREDDB/shared-mailboxes.db sieve = /data/MAIL/SIEVE/%u/dovecot.sieve sieve_dir = /data/MAIL/SIEVE/%u } postmaster_address = root protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = mailreader mode = 0600 user = mailreader } } service imap-login { process_min_avail = 8 service_count = 0 vsz_limit = 512 M } service imap-postlogin { executable = script-login /etc/dovecot/postlogin.sh user = $default_internal_user } service imap { executable = imap imap-postlogin } ssl_cert =
Does it work if you do it via imap?
echo "a subscribe public.Conferences" | /usr/local/libexec/dovecot/imap -u rago
On Wed, 2012-06-13 at 11:59 +0200, Emiliano Rago wrote:
Hi,
what it's happening with the doveadm command below is that the file modified is /data/MAIL/PUBLIC/subscriptions while I'd like to modify the file /data/MAIL/rago/subscriptions
With subscriptions=no every user can subscribe to public folder, so perhaps this behaviour is inappropriate; suggestions?
Thanks, Emiliano Rago
On 06/12/2012 02:08 PM, Emiliano Rago wrote:
Hi,
I'd like to subscribe folder with doveadm:
doveadm mailbox subscribe -u rago public.Conferences
This command doesn't work, while it works with an ordinary folder. However it's possible to subscribe to the folder with an imap connection:
1 login rago "mypasswd" 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORTSORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPCE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES ITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 2 LSUB "" *
- LSUB () "." "INBOX" 2 OK Lsub completed. 3 SUBSCRIBE "public.Conferences" 3 OK Subscribe completed. 4 LSUB "" *
- LSUB () "." "INBOX"
- LSUB () "." "public.Conferences" 4 OK Lsub completed.
Am I doing anything wrong?
This is my conf, thx for help, Emiliano
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-220.4.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 5 (Tikanga) ext4 auth_cache_size = 128 M auth_master_user_separator = * auth_mechanisms = plain cram-md5 mail_location = maildir:/data/MAIL/MAILDIR/%u:INBOX=/data/MAIL/INBOX/%u:INDEX=/data/MAIL/METADATA/%u
maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:/data/MAIL/MAILDIR/%%u:INDEX=/data/MAIL/METADATA/SHARED/%u/%%u prefix = shared.%%u. separator = . subscriptions = no type = shared } namespace { list = children location = maildir:/data/MAIL/PUBLIC:INDEX=/data/MAIL/METADATA/PUBLIC prefix = public. separator = . subscriptions = no type = public } passdb { args = scheme=cram-md5 /data/PWDDB/cram_dovecot.txt driver = passwd-file } passdb { args = /etc/dovecot/master-shared driver = passwd-file master = yes } passdb { args = /etc/dovecot/master-shared driver = passwd-file } plugin { acl = vfile:/etc/dovecot/global-acls:cache_secs=300 acl_anyone = allow acl_shared_dict = file:/data/MAIL/SHAREDDB/shared-mailboxes.db sieve = /data/MAIL/SIEVE/%u/dovecot.sieve sieve_dir = /data/MAIL/SIEVE/%u } postmaster_address = root protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = mailreader mode = 0600 user = mailreader } } service imap-login { process_min_avail = 8 service_count = 0 vsz_limit = 512 M } service imap-postlogin { executable = script-login /etc/dovecot/postlogin.sh user = $default_internal_user } service imap { executable = imap imap-postlogin } ssl_cert =
It works! Thanks!
Emiliano
On 06/13/2012 02:50 PM, Timo Sirainen wrote:
Does it work if you do it via imap?
echo "a subscribe public.Conferences" | /usr/local/libexec/dovecot/imap -u rago
On Wed, 2012-06-13 at 11:59 +0200, Emiliano Rago wrote:
Hi,
what it's happening with the doveadm command below is that the file modified is /data/MAIL/PUBLIC/subscriptions while I'd like to modify the file /data/MAIL/rago/subscriptions
With subscriptions=no every user can subscribe to public folder, so perhaps this behaviour is inappropriate; suggestions?
Thanks, Emiliano Rago
On 06/12/2012 02:08 PM, Emiliano Rago wrote:
Hi,
I'd like to subscribe folder with doveadm:
doveadm mailbox subscribe -u rago public.Conferences
This command doesn't work, while it works with an ordinary folder. However it's possible to subscribe to the folder with an imap connection:
1 login rago "mypasswd" 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORTSORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPCE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES ITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 2 LSUB "" *
- LSUB () "." "INBOX" 2 OK Lsub completed. 3 SUBSCRIBE "public.Conferences" 3 OK Subscribe completed. 4 LSUB "" *
- LSUB () "." "INBOX"
- LSUB () "." "public.Conferences" 4 OK Lsub completed.
Am I doing anything wrong?
This is my conf, thx for help, Emiliano
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-220.4.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 5 (Tikanga) ext4 auth_cache_size = 128 M auth_master_user_separator = * auth_mechanisms = plain cram-md5 mail_location = maildir:/data/MAIL/MAILDIR/%u:INBOX=/data/MAIL/INBOX/%u:INDEX=/data/MAIL/METADATA/%u
maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:/data/MAIL/MAILDIR/%%u:INDEX=/data/MAIL/METADATA/SHARED/%u/%%u prefix = shared.%%u. separator = . subscriptions = no type = shared } namespace { list = children location = maildir:/data/MAIL/PUBLIC:INDEX=/data/MAIL/METADATA/PUBLIC prefix = public. separator = . subscriptions = no type = public } passdb { args = scheme=cram-md5 /data/PWDDB/cram_dovecot.txt driver = passwd-file } passdb { args = /etc/dovecot/master-shared driver = passwd-file master = yes } passdb { args = /etc/dovecot/master-shared driver = passwd-file } plugin { acl = vfile:/etc/dovecot/global-acls:cache_secs=300 acl_anyone = allow acl_shared_dict = file:/data/MAIL/SHAREDDB/shared-mailboxes.db sieve = /data/MAIL/SIEVE/%u/dovecot.sieve sieve_dir = /data/MAIL/SIEVE/%u } postmaster_address = root protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = mailreader mode = 0600 user = mailreader } } service imap-login { process_min_avail = 8 service_count = 0 vsz_limit = 512 M } service imap-postlogin { executable = script-login /etc/dovecot/postlogin.sh user = $default_internal_user } service imap { executable = imap imap-postlogin } ssl_cert =
OK. v2.1 should have fixed this also for doveadm subscribe.
On Wed, 2012-06-13 at 15:24 +0200, Emiliano Rago wrote:
It works! Thanks!
Emiliano
On 06/13/2012 02:50 PM, Timo Sirainen wrote:
Does it work if you do it via imap?
echo "a subscribe public.Conferences" | /usr/local/libexec/dovecot/imap -u rago
On Wed, 2012-06-13 at 11:59 +0200, Emiliano Rago wrote:
Hi,
what it's happening with the doveadm command below is that the file modified is /data/MAIL/PUBLIC/subscriptions while I'd like to modify the file /data/MAIL/rago/subscriptions
With subscriptions=no every user can subscribe to public folder, so perhaps this behaviour is inappropriate; suggestions?
Thanks, Emiliano Rago
On 06/12/2012 02:08 PM, Emiliano Rago wrote:
Hi,
I'd like to subscribe folder with doveadm:
doveadm mailbox subscribe -u rago public.Conferences
This command doesn't work, while it works with an ordinary folder. However it's possible to subscribe to the folder with an imap connection:
1 login rago "mypasswd" 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORTSORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPCE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES ITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 2 LSUB "" *
- LSUB () "." "INBOX" 2 OK Lsub completed. 3 SUBSCRIBE "public.Conferences" 3 OK Subscribe completed. 4 LSUB "" *
- LSUB () "." "INBOX"
- LSUB () "." "public.Conferences" 4 OK Lsub completed.
Am I doing anything wrong?
This is my conf, thx for help, Emiliano
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-220.4.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 5 (Tikanga) ext4 auth_cache_size = 128 M auth_master_user_separator = * auth_mechanisms = plain cram-md5 mail_location = maildir:/data/MAIL/MAILDIR/%u:INBOX=/data/MAIL/INBOX/%u:INDEX=/data/MAIL/METADATA/%u
maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:/data/MAIL/MAILDIR/%%u:INDEX=/data/MAIL/METADATA/SHARED/%u/%%u prefix = shared.%%u. separator = . subscriptions = no type = shared } namespace { list = children location = maildir:/data/MAIL/PUBLIC:INDEX=/data/MAIL/METADATA/PUBLIC prefix = public. separator = . subscriptions = no type = public } passdb { args = scheme=cram-md5 /data/PWDDB/cram_dovecot.txt driver = passwd-file } passdb { args = /etc/dovecot/master-shared driver = passwd-file master = yes } passdb { args = /etc/dovecot/master-shared driver = passwd-file } plugin { acl = vfile:/etc/dovecot/global-acls:cache_secs=300 acl_anyone = allow acl_shared_dict = file:/data/MAIL/SHAREDDB/shared-mailboxes.db sieve = /data/MAIL/SIEVE/%u/dovecot.sieve sieve_dir = /data/MAIL/SIEVE/%u } postmaster_address = root protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = mailreader mode = 0600 user = mailreader } } service imap-login { process_min_avail = 8 service_count = 0 vsz_limit = 512 M } service imap-postlogin { executable = script-login /etc/dovecot/postlogin.sh user = $default_internal_user } service imap { executable = imap imap-postlogin } ssl_cert =
participants (2)
-
Emiliano Rago
-
Timo Sirainen