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 = </etc/dovecot/ssl/imaps.lal.in2p3.fr.crt
> ssl_key = </etc/dovecot/ssl/imaps.lal.in2p3.fr.key
> userdb {
> args = /etc/dovecot/master-shared
> driver = passwd-file
> }
> userdb {
> args = uid=mailreader gid=mailreader home=/data/MAIL/SIEVE/%u
> allow_all_users=yes
> driver = static
> }
> protocol lda {
> mail_plugins = acl sieve
> }
> protocol imap {
> mail_max_userip_connections = 128
> mail_plugins = acl imap_acl
> }