Re: doveadm mailbox delete not working

2018-08-15 Thread Aki Tuomi
Actually you are using separator /, so making folder

INBOX/[Test / Test] => 

"INBOX" sep "[Test " sep " Test]" 

but it will not create "INBOX/[ Test " (it will be noselect folder, parent for 
"INBOX/[Test / Test]")

and thus will be deleted once you delete INBOX/[Test / Test]

"doveadm(testuser1): Error: Can't delete mailbox INBOX/[Test : Mailbox has 
children, delete them first"

also mailbox list has feature that it will always list whatever folder you give 
it, so even if you do

doveadm mailbox list "This Does Not Exist"

you will still see it. A feature, not a bug. =)

you could try

doveadm exec imap -u victim
LIST "INBOX/" "*"

to see which are the select, and which are the noselect parent ones, they 
should go away once you delete the children.

Aki

> On 15 August 2018 at 19:37 Ralf Becker  wrote:
> 
> 
> One more update, I tried renaming that "[Test " folder to just "Test",
> which creates an also not deletable folder "Test".
> 
> Good news is, if I delete these folders on both replication nodes from
> mdbox/mailboxes and mdbox/subscriptions they seem to be really gone.
> I can event create the folder "Test" again and it behaves normal aka. I
> can delete it afterwards via IMAP.
> 
> Any objections againts that workaround (deleting the folder in
> mdbox/mailboxes and from mdbox/subscriptions)?
> 
> Ralf
> 
> Am 15.08.18 um 18:23 schrieb Ralf Becker:
> > I found a way to reproduce the problem :)
> >
> > Use an arbitrary mailbox (maybe my Dovecot config with mdbox etc. required).
> > Then use Thunderbird (52.9.1 on Mac) to create eg. the following folder
> > (without the quotes!):
> >
> >     "[Test / Test]"
> >
> > This is a space, a slash and a space between the Test in square brackets.
> >
> > TB now creates the following two folders:
> >
> > 1. "INBOX/[Test " (not subscribed)
> > 2. "INBOX/[Test / Test]" (subscribed)
> >
> > I can delete the 2. one, but the 1. one is not deletable, neither via TB
> > nor doveadm command:
> >
> > / # doveadm mailbox status -u b...@bb-trunk.egroupware.de all 'INBOX/[Test '
> > doveadm(b...@bb-trunk.egroupware.de): Error: Mailbox INBOX/[Test : Failed
> > to lookup mailbox status: Mailbox doesn't exist: INBOX/[Test
> > / # doveadm mailbox delete -u b...@bb-trunk.egroupware.de 'INBOX/[Test '
> > doveadm(b...@bb-trunk.egroupware.de): Info: Mailbox deleted: INBOX/[Test
> > / # doveadm mailbox list -u b...@bb-trunk.egroupware.de 'INBOX/[Test '
> > INBOX/[Test
> >
> > I can see the folder under mdbox/mailboxes and in mdbox/subscriptions.
> >
> > I hope that allows you to reproduce it.
> >
> > Ralf
> >
> > Am 14.08.18 um 15:13 schrieb Ralf Becker:
> >> I have a user who has several folders in his mailbox, which we can not
> >> delete, neither via IMAP nor via doveadm:
> >>
> >> root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
> >> | cat -v
> >> INBOX/[Fachbereiche ^M
> >> INBOX/Fachbereiche ^M
> >> INBOX/hbereiche^M
> >> INBOX/hbereiche/LAGen]^M
> >> INBOX/hbereiche/LAG^M
> >> INBOX/[Fachbereiche^M
> >> INBOX/[Fachbereiche/LAGen]^M
> >> INBOX/[Fachbereiche]^M
> >> INBOX/[Fachbereiche]/LAGen]^M
> >> INBOX/[Fachbereiche]/LAGe^M
> >> root@ka-nfs-mail:~# doveadm mailbox delete  -u 
> >> 'INBOX/Fachbereiche '
> >> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
> >> root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
> >> cat -v
> >> INBOX/[Fachbereiche ^M
> >> INBOX/Fachbereiche ^M
> >> INBOX/hbereiche^M
> >> INBOX/hbereiche/LAGen]^M
> >> INBOX/hbereiche/LAG^M
> >> INBOX/[Fachbereiche^M
> >> INBOX/[Fachbereiche/LAGen]^M
> >> INBOX/[Fachbereiche]^M
> >> INBOX/[Fachbereiche]/LAGen]^M
> >> INBOX/[Fachbereiche]/LAGe^M
> >>
> >> As far as I tried none of these folders can be deleted (I added single
> >> quotes for trailing space and tried to delete subfolders first).
> >>
> >> Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36
> >> and I tried both nodes of the replication with same result.
> >>
> >> Any ideas?
> >>
> >> Ralf
> >>
> 
> -- 
> Ralf Becker
> EGroupware GmbH [www.egroupware.org]
> Handelsregister HRB Kaiserslautern 3587
> Geschäftsführer Birgit und Ralf Becker
> Leibnizstr. 17, 67663 Kaiserslautern, Germany
> Telefon +49 631 31657-0
> 
>


Re: doveadm mailbox delete not working

2018-08-15 Thread Ralf Becker
One more update, I tried renaming that "[Test " folder to just "Test",
which creates an also not deletable folder "Test".

Good news is, if I delete these folders on both replication nodes from
mdbox/mailboxes and mdbox/subscriptions they seem to be really gone.
I can event create the folder "Test" again and it behaves normal aka. I
can delete it afterwards via IMAP.

Any objections againts that workaround (deleting the folder in
mdbox/mailboxes and from mdbox/subscriptions)?

Ralf

Am 15.08.18 um 18:23 schrieb Ralf Becker:
> I found a way to reproduce the problem :)
>
> Use an arbitrary mailbox (maybe my Dovecot config with mdbox etc. required).
> Then use Thunderbird (52.9.1 on Mac) to create eg. the following folder
> (without the quotes!):
>
>     "[Test / Test]"
>
> This is a space, a slash and a space between the Test in square brackets.
>
> TB now creates the following two folders:
>
> 1. "INBOX/[Test " (not subscribed)
> 2. "INBOX/[Test / Test]" (subscribed)
>
> I can delete the 2. one, but the 1. one is not deletable, neither via TB
> nor doveadm command:
>
> / # doveadm mailbox status -u b...@bb-trunk.egroupware.de all 'INBOX/[Test '
> doveadm(b...@bb-trunk.egroupware.de): Error: Mailbox INBOX/[Test : Failed
> to lookup mailbox status: Mailbox doesn't exist: INBOX/[Test
> / # doveadm mailbox delete -u b...@bb-trunk.egroupware.de 'INBOX/[Test '
> doveadm(b...@bb-trunk.egroupware.de): Info: Mailbox deleted: INBOX/[Test
> / # doveadm mailbox list -u b...@bb-trunk.egroupware.de 'INBOX/[Test '
> INBOX/[Test
>
> I can see the folder under mdbox/mailboxes and in mdbox/subscriptions.
>
> I hope that allows you to reproduce it.
>
> Ralf
>
> Am 14.08.18 um 15:13 schrieb Ralf Becker:
>> I have a user who has several folders in his mailbox, which we can not
>> delete, neither via IMAP nor via doveadm:
>>
>> root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
>> | cat -v
>> INBOX/[Fachbereiche ^M
>> INBOX/Fachbereiche ^M
>> INBOX/hbereiche^M
>> INBOX/hbereiche/LAGen]^M
>> INBOX/hbereiche/LAG^M
>> INBOX/[Fachbereiche^M
>> INBOX/[Fachbereiche/LAGen]^M
>> INBOX/[Fachbereiche]^M
>> INBOX/[Fachbereiche]/LAGen]^M
>> INBOX/[Fachbereiche]/LAGe^M
>> root@ka-nfs-mail:~# doveadm mailbox delete  -u 
>> 'INBOX/Fachbereiche '
>> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
>> root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
>> cat -v
>> INBOX/[Fachbereiche ^M
>> INBOX/Fachbereiche ^M
>> INBOX/hbereiche^M
>> INBOX/hbereiche/LAGen]^M
>> INBOX/hbereiche/LAG^M
>> INBOX/[Fachbereiche^M
>> INBOX/[Fachbereiche/LAGen]^M
>> INBOX/[Fachbereiche]^M
>> INBOX/[Fachbereiche]/LAGen]^M
>> INBOX/[Fachbereiche]/LAGe^M
>>
>> As far as I tried none of these folders can be deleted (I added single
>> quotes for trailing space and tried to delete subfolders first).
>>
>> Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36
>> and I tried both nodes of the replication with same result.
>>
>> Any ideas?
>>
>> Ralf
>>

-- 
Ralf Becker
EGroupware GmbH [www.egroupware.org]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 631 31657-0




signature.asc
Description: OpenPGP digital signature


Re: doveadm mailbox delete not working

2018-08-15 Thread Ralf Becker
I found a way to reproduce the problem :)

Use an arbitrary mailbox (maybe my Dovecot config with mdbox etc. required).
Then use Thunderbird (52.9.1 on Mac) to create eg. the following folder
(without the quotes!):

    "[Test / Test]"

This is a space, a slash and a space between the Test in square brackets.

TB now creates the following two folders:

1. "INBOX/[Test " (not subscribed)
2. "INBOX/[Test / Test]" (subscribed)

I can delete the 2. one, but the 1. one is not deletable, neither via TB
nor doveadm command:

/ # doveadm mailbox status -u b...@bb-trunk.egroupware.de all 'INBOX/[Test '
doveadm(b...@bb-trunk.egroupware.de): Error: Mailbox INBOX/[Test : Failed
to lookup mailbox status: Mailbox doesn't exist: INBOX/[Test
/ # doveadm mailbox delete -u b...@bb-trunk.egroupware.de 'INBOX/[Test '
doveadm(b...@bb-trunk.egroupware.de): Info: Mailbox deleted: INBOX/[Test
/ # doveadm mailbox list -u b...@bb-trunk.egroupware.de 'INBOX/[Test '
INBOX/[Test

I can see the folder under mdbox/mailboxes and in mdbox/subscriptions.

I hope that allows you to reproduce it.

Ralf

Am 14.08.18 um 15:13 schrieb Ralf Becker:
> I have a user who has several folders in his mailbox, which we can not
> delete, neither via IMAP nor via doveadm:
>
> root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
> | cat -v
> INBOX/[Fachbereiche ^M
> INBOX/Fachbereiche ^M
> INBOX/hbereiche^M
> INBOX/hbereiche/LAGen]^M
> INBOX/hbereiche/LAG^M
> INBOX/[Fachbereiche^M
> INBOX/[Fachbereiche/LAGen]^M
> INBOX/[Fachbereiche]^M
> INBOX/[Fachbereiche]/LAGen]^M
> INBOX/[Fachbereiche]/LAGe^M
> root@ka-nfs-mail:~# doveadm mailbox delete  -u 
> 'INBOX/Fachbereiche '
> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
> root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
> cat -v
> INBOX/[Fachbereiche ^M
> INBOX/Fachbereiche ^M
> INBOX/hbereiche^M
> INBOX/hbereiche/LAGen]^M
> INBOX/hbereiche/LAG^M
> INBOX/[Fachbereiche^M
> INBOX/[Fachbereiche/LAGen]^M
> INBOX/[Fachbereiche]^M
> INBOX/[Fachbereiche]/LAGen]^M
> INBOX/[Fachbereiche]/LAGe^M
>
> As far as I tried none of these folders can be deleted (I added single
> quotes for trailing space and tried to delete subfolders first).
>
> Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36
> and I tried both nodes of the replication with same result.
>
> Any ideas?
>
> Ralf
>

-- 
Ralf Becker
EGroupware GmbH [www.egroupware.org]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 631 31657-0




signature.asc
Description: OpenPGP digital signature


Re: doveadm mailbox delete not working

2018-08-15 Thread Ralf Becker
Hi Steffen,

Am 15.08.18 um 15:58 schrieb Steffen Kaiser:
> On Tue, 14 Aug 2018, Ralf Becker wrote:
>
> > Date: Tue, 14 Aug 2018 15:13:12 +0200
> > From: Ralf Becker 
> > To: dovecot@dovecot.org
> > Subject: doveadm mailbox delete not working
>
> > I have a user who has several folders in his mailbox, which we can not
> > delete, neither via IMAP nor via doveadm:
>
> > root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
> > | cat -v
> > INBOX/[Fachbereiche ^M
>
> > Any ideas?
>
> I haven't seen this idea and you've wrote nothing about the ^M:

The ^M is the regular CR from the doveadm output converted by cat -v and
I used it to show there is a trailing space.

> The ^M means that there is a "\015" / \r at the end of the output.
> Where does this char come from? In "normal" output, this char is
> almost invisible, esp. at the end of a line. I don't know how Dovecot
> handles this char internally.
>
> The char should show up in the JSON formatted list, Aki suggested, too:
>
> doveadm -fjson mailbox list -u user INBOX/*
>
> But I haven't seen the output in your replies.
>
> Can you verify in the filesystem, if the char is there, too? E.g.
> ls -1 | cat -v

root@ka-nfs-mail:/poolN/dovecot/imap///mdbox/mailboxes# ls
-1|cat -v|grep hbereich
[Fachbereiche
[Fachbereiche
[Fachbereiche]
Fachbereiche
hbereiche

So there is no ^M/CR in the filename itself.

Ralf

> Maybe
>
> doveadm mailbox delete  -u  'INBOX/Fachbereiche '"\015"
> Would help?
>
> -- Steffen Kaiser

-- 
Ralf Becker
EGroupware GmbH [www.egroupware.org]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 631 31657-0




signature.asc
Description: OpenPGP digital signature


Re: doveadm mailbox delete not working

2018-08-15 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 14 Aug 2018, Ralf Becker wrote:


Date: Tue, 14 Aug 2018 15:13:12 +0200
From: Ralf Becker 
To: dovecot@dovecot.org
Subject: doveadm mailbox delete not working

I have a user who has several folders in his mailbox, which we can not
delete, neither via IMAP nor via doveadm:

root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
| cat -v
INBOX/[Fachbereiche ^M



Any ideas?


I haven't seen this idea and you've wrote nothing about the ^M:

The ^M means that there is a "\015" / \r at the end of the output. Where 
does this char come from? In "normal" output, this char is almost 
invisible, esp. at the end of a line. I don't know how Dovecot handles 
this char internally.


The char should show up in the JSON formatted list, Aki suggested, too:

doveadm -fjson mailbox list -u user INBOX/*

But I haven't seen the output in your replies.

Can you verify in the filesystem, if the char is there, too? E.g.
ls -1 | cat -v

Maybe

doveadm mailbox delete  -u  'INBOX/Fachbereiche '"\015" Would 
help?


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBW3QxbcQnQQNheMxiAQJ1vggAmYnlV4xnMJmec34RnpkQpHlz+NK+JnPY
JYB3HsI4RwShJwFp7kDpa8GQDub4Hml249v2Hy2TAd270j7QYJn258vyLMJjrIzy
Gi82Q/M65mF6seYtOXsR6sl9qqXcEZaVPsSUmHTpP+JfNEGye1RCfuqoaoV0pSuu
Kdv8naUDtdTvXVqJfe3McPRbx/+PZouMGLk1AuH3ol0fM+K4SMM65eZDp4VlbZvb
ZBklQleH7K8bz2p1rV6yhsJ/1KooS/QgaGz4Ejfm5U2FVFb2dpuAkVFNMu1LpJP9
gD9Y5cH6CbuPYlp2t/8xrozIUpZ/q7CBfdRZVdm3DsaiEnRtq4g4Lg==
=OaBM
-END PGP SIGNATURE-

Re: doveadm mailbox delete not working

2018-08-15 Thread Ralf Becker
Hi Sami,

Am 15.08.18 um 11:29 schrieb Sami Ketola:
>
>
>> On 15 Aug 2018, at 9.29, Ralf Becker > > wrote:
>>
>> Am 14.08.18 um 18:51 schrieb Aki Tuomi:
>>> Try 
>>>
>>> doveadm mailbox list -u user INBOX/*
>>
>> Hmm, posted that before, it lists all these undeletable mailboxes:
>
>
> Can you also post your doveconf -n to be sure that the folder is just
> not autocreated after delete.

We are autocreating (and subscribing) some folders, but not the ones
this thread is about, just the standard folders like Sent, Drafts,
Trash, ...

Output from doveadm config -n is attached. It's from one of the
replication node, the other one has identical config, apart from the
things which need to be different for the replication. There is also a
director pair in front of them, just for your info.

Ralf

-- 
Ralf Becker
EGroupware GmbH [www.egroupware.org]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 631 31657-0

# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.24 (124e06aa)
# OS: Linux 4.15.0-23-generic x86_64  
# Hostname: 8f18f1de92f7
auth_cache_negative_ttl = 2 mins
auth_cache_size = 10 M
auth_cache_ttl = 5 mins
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_chars = 
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@#"
default_client_limit = 3500
default_process_limit = 512
disable_plaintext_auth = no
doveadm_password =  # hidden, use -P to show it
doveadm_port = 12345
first_valid_uid = 90
listen = *
log_path = /dev/stderr
mail_access_groups = dovecot
mail_gid = dovecot
mail_location = mdbox:~/mdbox
mail_log_prefix = "%s(%u %p): "
mail_max_userip_connections = 200
mail_plugins = acl quota notify replication mail_log
mail_uid = dovecot
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 ihave vnd.dovecot.debug
mbox_min_index_size = 1000 B
mbox_write_locks = fcntl
mdbox_rotate_size = 50 M
namespace inboxes {
  inbox = yes
  location = 
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Junk {
auto = subscribe
special_use = \Junk
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Templates {
auto = subscribe
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  prefix = INBOX/
  separator = /
  subscriptions = no
}
namespace subs {
  hidden = yes
  list = no
  location = 
  prefix = 
  separator = /
}
namespace users {
  location = mdbox:%%h/mdbox:INDEXPVT=~/shared/%%u
  prefix = user/%%n/
  separator = /
  subscriptions = no
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-dict-master-auth.conf
  driver = dict
  master = yes
}
passdb {
  args = /etc/dovecot/dovecot-dict-auth.conf
  driver = dict
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/dovecot/imap/%d/shared-mailboxes.db
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
  mail_replica = tcp:10.44.88.1
  quota = dict:User quota::ns=INBOX/:file:%h/dovecot-quota
  quota_rule = *:storage=100GB
  sieve = ~/sieve/dovecot.sieve
  sieve_after = /var/dovecot/sieve/after.d/
  sieve_before = /var/dovecot/sieve/before.d/
  sieve_dir = ~/sieve
  sieve_extensions = +editheader
  sieve_user_log = ~/.sieve.log
}
postmaster_address = adm...@egroupware.org
protocols = imap pop3 lmtp sieve
quota_full_tempfail = yes
replication_dsync_parameters = -d -n INBOX -l 30 -U
service aggregator {
  fifo_listener replication-notify-fifo {
user = dovecot
  }
  unix_listener replication-notify {
user = dovecot
  }
}
service auth-worker {
  user = $default_internal_user
}
service auth {
  drop_priv_before_exec = no
  inet_listener {
port = 113
  }
}
service doveadm {
  inet_listener {
port = 12345
  }
  inet_listener {
port = 26
  }
  vsz_limit = 640 M
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_min_avail = 5
  service_count = 1
  vsz_limit = 64 M
}
service imap {
  executable = imap
  process_limit = 2048
  vsz_limit = 640 M
}
service lmtp {
  inet_listener lmtp {
port = 24
  }
  unix_listener lmtp {
mode = 0666
  }
  vsz_limit = 512 M
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
  inet_listener sieve_deprecated {
port = 2000
  }
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
service pop3 {
  executable = pop3
}
service postlogin {
  executable = script-login -d rawlog -b -t
}
service replicator {
  process_min_avail = 1
  unix_listener replicator-doveadm {
group = dovecot

mode = 0660
user = dovecot
  }
}
ssl

Re: doveadm mailbox delete not working

2018-08-15 Thread Ralf Becker
Hi Aki,

Am 15.08.18 um 11:31 schrieb Aki Tuomi:
> Such fun folders. Can you try doveadm -Dv mailbox delete -u username
> folder and post it to the list?

root@ka-nfs-mail:~# doveadm -Dv mailbox delete -u 
'INBOX/Fachbereiche '
Debug: Loading modules from directory: /usr/lib/dovecot
Debug: Module loaded: /usr/lib/dovecot/lib01_acl_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib10_quota_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib15_notify_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib20_mail_log_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib20_replication_plugin.so
Debug: Loading modules from directory: /usr/lib/dovecot/doveadm
Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:
Error relocating
/usr/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so:
expire_set_lookup: symbol not found (this is usually intentional, so
just ignore this message)
Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed:
Error relocating /usr/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so:
fts_backend_rescan: symbol not found (this is usually intentional, so
just ignore this message)
Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen()
failed: Error relocating
/usr/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so:
mail_crypt_box_get_public_key: symbol not found (this is usually
intentional, so just ignore this message)
doveadm( 46922): Debug: Added userdb setting:
plugin/master_user=
doveadm( 46922): Debug: Added userdb setting:
plugin/userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
2017@,lgs@
doveadm( 46922): Debug: Added userdb setting:
plugin/userdb_quota_rule=*:bytes=1572864
doveadm(): Debug: Effective uid=90, gid=101,
home=/var/dovecot/imap//
doveadm(): Debug: Quota root: name=User quota backend=dict
args=:ns=INBOX/:file:/var/dovecot/imap///dovecot-quota
doveadm(): Debug: Quota rule: root=User quota mailbox=*
bytes=107374182400 messages=0
doveadm(): Debug: Quota grace: root=User quota
bytes=10737418240 (10%)
doveadm(): Debug: dict quota: user=,
uri=file:/var/dovecot/imap///dovecot-quota, noenforcing=0
doveadm(): Debug: Namespace inboxes: type=private,
prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=no
location=mdbox:~/mdbox
doveadm(): Debug: fs:
root=/var/dovecot/imap///mdbox, index=, indexpvt=,
control=, inbox=, alt=
doveadm(): Debug: acl: initializing backend with data: vfile
doveadm(): Debug: acl: acl username = 
doveadm(): Debug: acl: owner = 1
doveadm(): Debug: acl vfile: Global ACLs disabled
doveadm(): Debug: Namespace users: type=shared,
prefix=user/%n/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no
location=mdbox:%h/mdbox:INDEXPVT=~/shared/%u
doveadm(): Debug: shared: root=/run/dovecot, index=,
indexpvt=, control=, inbox=, alt=
doveadm(): Debug: acl: initializing backend with data: vfile
doveadm(): Debug: acl: acl username = 
doveadm(): Debug: acl: owner = 0
doveadm(): Debug: acl vfile: Global ACLs disabled
doveadm(): Debug: Namespace subs: type=private, prefix=,
sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
location=mdbox:~/mdbox
doveadm(): Debug: fs:
root=/var/dovecot/imap///mdbox, index=, indexpvt=,
control=, inbox=, alt=
doveadm(): Debug: acl: initializing backend with data: vfile
doveadm(): Debug: acl: acl username = 
doveadm(): Debug: acl: owner = 1
doveadm(): Debug: acl vfile: Global ACLs disabled
doveadm(): Debug: quota: quota_over_flag check:
quota_over_script unset - skipping
doveadm(): Debug: INBOX/Fachbereiche : Mailbox opened because:
mailbox delete
doveadm(): Debug: acl vfile: file
/var/dovecot/imap///mdbox/mailboxes/Fachbereiche
/dbox-Mails/dovecot-acl not found
doveadm(): Debug: Namespace INBOX/: Using permissions from
/var/dovecot/imap///mdbox: mode=0700 gid=default
doveadm(): Debug: replication: Replication requested by
'mailbox delete', priority=1
doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche

Event doveadm reporting the folder is deleted, it is not:

root@ka-nfs-mail:~# doveadm mailbox list  -u 
'INBOX/Fachbereiche '
INBOX/Fachbereiche

But it can not get a status of it:

root@ka-nfs-mail:~# doveadm mailbox status  -u  all
'INBOX/Fachbereiche '
doveadm(): Error: Mailbox INBOX/Fachbereiche : Failed to
lookup mailbox status: Mailbox doesn't exist: INBOX/Fachbereiche

Really wired

Ralf

> Aki
>
> On 15.08.2018 11:03, Ralf Becker wrote:
>> Hi Aki,
>>
>> I respond to you only on purpose, as the a dont want to show all folders
>> public, please remove them when you reply to the list.
>>
>> This is the folder my previous examples where about:
>>
>>     "mailbox": "INBOX/[Fachbereiche "  <-- trailing space
>>
>>
>> Am 15.08.18 um 08:33 schrieb Aki Tuomi:
>>> Can you try
>>>
>>> doveadm -fjson mailbox list -u user INBOX/*

-- 
Ralf Becker
EGr

Re: doveadm mailbox delete not working

2018-08-15 Thread Sami Ketola


> On 15 Aug 2018, at 9.29, Ralf Becker  wrote:
> 
> Am 14.08.18 um 18:51 schrieb Aki Tuomi:
>> Try 
>> 
>> doveadm mailbox list -u user INBOX/*
> 
> Hmm, posted that before, it lists all these undeletable mailboxes:


Can you also post your doveconf -n to be sure that the folder is just not 
autocreated after delete.

Sami

Re: doveadm mailbox delete not working

2018-08-14 Thread Aki Tuomi
serdb_quota_rule=*:bytes=1572864
>>>>> doveadm(): Debug: Effective uid=90, gid=101,
>>>>> home=/var/dovecot/imap//
>>>>> doveadm(): Debug: Quota root: name=User quota backend=dict
>>>>> args=:ns=INBOX/:file:/var/dovecot/imap///dovecot-quota
>>>>> doveadm(): Debug: Quota rule: root=User quota mailbox=*
>>>>> bytes=107374182400 messages=0
>>>>> doveadm(): Debug: Quota grace: root=User quota
>>>>> bytes=10737418240 (10%)
>>>>> doveadm(): Debug: dict quota: user=,
>>>>> uri=file:/var/dovecot/imap///dovecot-quota, noenforcing=0
>>>>> doveadm(): Debug: Namespace inboxes: type=private,
>>>>> prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=no
>>>>> location=mdbox:~/mdbox
>>>>> doveadm(): Debug: fs:
>>>>> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
>>>>> control=, inbox=, alt=
>>>>> doveadm(): Debug: acl: initializing backend with data: vfile
>>>>> doveadm(): Debug: acl: acl username = 
>>>>> doveadm(): Debug: acl: owner = 1
>>>>> doveadm(): Debug: acl vfile: Global ACLs disabled
>>>>> doveadm(): Debug: Namespace users: type=shared,
>>>>> prefix=user/%n/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no
>>>>> location=mdbox:%h/mdbox:INDEXPVT=~/shared/%u
>>>>> doveadm(): Debug: shared: root=/run/dovecot, index=,
>>>>> indexpvt=, control=, inbox=, alt=
>>>>> doveadm(): Debug: acl: initializing backend with data: vfile
>>>>> doveadm(): Debug: acl: acl username = 
>>>>> doveadm(): Debug: acl: owner = 0
>>>>> doveadm(): Debug: acl vfile: Global ACLs disabled
>>>>> doveadm(): Debug: Namespace subs: type=private, prefix=,
>>>>> sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
>>>>> location=mdbox:~/mdbox
>>>>> doveadm(): Debug: fs:
>>>>> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
>>>>> control=, inbox=, alt=
>>>>> doveadm(): Debug: acl: initializing backend with data: vfile
>>>>> doveadm(): Debug: acl: acl username = 
>>>>> doveadm(): Debug: acl: owner = 1
>>>>> doveadm(): Debug: acl vfile: Global ACLs disabled
>>>>> doveadm(): Debug: quota: quota_over_flag check:
>>>>> quota_over_script unset - skipping
>>>>> doveadm(): Debug: INBOX/Fachbereiche : Mailbox opened because:
>>>>> mailbox delete
>>>>> doveadm(): Debug: acl vfile: file
>>>>> /var/dovecot/imap///mdbox/mailboxes/Fachbereiche
>>>>> /dbox-Mails/dovecot-acl not found
>>>>> doveadm(): Debug: Namespace INBOX/: Using permissions from
>>>>> /var/dovecot/imap///mdbox: mode=0700 gid=default
>>>>> doveadm(): Debug: replication: Replication requested by
>>>>> 'mailbox delete', priority=1
>>>>> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
>>>>>
>>>>> Output and logs are from the (less loaded) standby/backup node. I can
>>>>> get the logs from the active node tonight.
>>>>>
>>>>> I had to remove some folder-names for privacy reasons, but they all have
>>>>> the same output in the logs.
>>>>>
>>>>> Ralf
>>>>>
>>>>>> ---
>>>>>> Aki Tuomi
>>>>>> Dovecot oy
>>>>>>
>>>>>>  Original message 
>>>>>> From: Ralf Becker 
>>>>>> Date: 14/08/2018 16:13 (GMT+02:00)
>>>>>> To: dovecot@dovecot.org
>>>>>> Subject: doveadm mailbox delete not working
>>>>>>
>>>>>> I have a user who has several folders in his mailbox, which we can not
>>>>>> delete, neither via IMAP nor via doveadm:
>>>>>>
>>>>>> root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
>>>>>> | cat -v
>>>>>> INBOX/[Fachbereiche ^M
>>>>>> INBOX/Fachbereiche ^M
>>>>>> INBOX/hbereiche^M
>>>>>> INBOX/hbereiche/LAGen]^M
>>>>>> INBOX/hbereiche/LAG^M
>>>>>> INBOX/[Fachbereiche^M
>>>>>> INBOX/[Fachbereiche/LAGen]^M
>>>>>> INBOX/[Fachbereiche]^M
>>>>>> INBOX/[Fachbereiche]/LAGen]^M
>>>>>> INBOX/[Fachbereiche]/LAGe^M
>>>>>> root@ka-nfs-mail:~# doveadm mailbox delete  -u 
>>>>>> 'INBOX/Fachbereiche '
>>>>>> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
>>>>>> root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
>>>>>> cat -v
>>>>>> INBOX/[Fachbereiche ^M
>>>>>> INBOX/Fachbereiche ^M
>>>>>> INBOX/hbereiche^M
>>>>>> INBOX/hbereiche/LAGen]^M
>>>>>> INBOX/hbereiche/LAG^M
>>>>>> INBOX/[Fachbereiche^M
>>>>>> INBOX/[Fachbereiche/LAGen]^M
>>>>>> INBOX/[Fachbereiche]^M
>>>>>> INBOX/[Fachbereiche]/LAGen]^M
>>>>>> INBOX/[Fachbereiche]/LAGe^M
>>>>>>
>>>>>> As far as I tried none of these folders can be deleted (I added single
>>>>>> quotes for trailing space and tried to delete subfolders first).
>>>>>>
>>>>>> Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36
>>>>>> and I tried both nodes of the replication with same result.
>>>>>>
>>>>>> Any ideas?
>>>>>>
>>>>>> Ralf
>>>>>>
>>>>>> -- 
>>>>>> Ralf Becker
>>>>>> EGroupware GmbH [www.egroupware.org]
>>>>>> Handelsregister HRB Kaiserslautern 3587
>>>>>> Geschäftsführer Birgit und Ralf Becker
>>>>>> Leibnizstr. 17, 67663 Kaiserslautern, Germany
>>>>>> Telefon +49 631 31657-0
>>>>>>
>>>>>>
>>>>> -- 
>>>>> Ralf Becker
>>>>> EGroupware GmbH [www.egroupware.org]
>>>>> Handelsregister HRB Kaiserslautern 3587
>>>>> Geschäftsführer Birgit und Ralf Becker
>>>>> Leibnizstr. 17, 67663 Kaiserslautern, Germany
>>>>> Telefon +49 631 31657-0
>>>>>
>>> -- 
>>> Ralf Becker
>>> EGroupware GmbH [www.egroupware.org]
>>> Handelsregister HRB Kaiserslautern 3587
>>> Geschäftsführer Birgit und Ralf Becker
>>> Leibnizstr. 17, 67663 Kaiserslautern, Germany
>>> Telefon +49 631 31657-0
>>>
>>>




signature.asc
Description: OpenPGP digital signature


Re: doveadm mailbox delete not working

2018-08-14 Thread Ralf Becker
s: type=private, prefix=,
>> sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
>> location=mdbox:~/mdbox
>> doveadm(): Debug: fs:
>> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
>> control=, inbox=, alt=
>> doveadm(): Debug: acl: initializing backend with data: vfile
>> doveadm(): Debug: acl: acl username = 
>> doveadm(): Debug: acl: owner = 1
>> doveadm(): Debug: acl vfile: Global ACLs disabled
>> doveadm(): Debug: quota: quota_over_flag check:
>> quota_over_script unset - skipping
>> INBOX/Fachbereiche
>>
>> Is there some kind of index for existing mailboxes which needs rebuilding?
>>
>> Ralf
>>
>>> Aki
>>>
>>>> On 14 August 2018 at 17:18 Ralf Becker  wrote:
>>>>
>>>>
>>>> Hi Aki,
>>>>
>>>> thanks for looking into this :)
>>>>
>>>> Am 14.08.18 um 15:15 schrieb Aki Tuomi:
>>>>> can you turn on mail_debug=yes and run doveadm -Dv mailbox delete and
>>>>> provide output and logs from both servers?
>>>> root@ka-nfs-mail:~# doveadm -Dv mailbox delete  -u h 'INBOX/Fachbereiche '
>>>> Debug: Loading modules from directory: /usr/lib/dovecot
>>>> Debug: Module loaded: /usr/lib/dovecot/lib01_acl_plugin.so
>>>> Debug: Module loaded: /usr/lib/dovecot/lib10_quota_plugin.so
>>>> Debug: Module loaded: /usr/lib/dovecot/lib15_notify_plugin.so
>>>> Debug: Module loaded: /usr/lib/dovecot/lib20_mail_log_plugin.so
>>>> Debug: Module loaded: /usr/lib/dovecot/lib20_replication_plugin.so
>>>> Debug: Loading modules from directory: /usr/lib/dovecot/doveadm
>>>> Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
>>>> Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:
>>>> Error relocating
>>>> /usr/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so:
>>>> expire_set_lookup: symbol not found (this is usually intentional, so
>>>> just ignore this message)
>>>> Debug: Module loaded: 
>>>> /usr/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
>>>> Debug: Module loaded: 
>>>> /usr/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
>>>> Debug: Skipping module doveadm_fts_plugin, because dlopen() failed:
>>>> Error relocating /usr/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so:
>>>> fts_backend_rescan: symbol not found (this is usually intentional, so
>>>> just ignore this message)
>>>> Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen()
>>>> failed: Error relocating
>>>> /usr/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so:
>>>> mail_crypt_box_get_public_key: symbol not found (this is usually
>>>> intentional, so just ignore this message)
>>>> doveadm(): Debug: auth PASS input:
>>>> doveadm( 32679): Debug: auth USER input: 
>>>> userdb_quota_rule=*:bytes=1572864 master_user=
>>>> userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
>>>> 2017@,lgs@ home=/var/dovecot/imap//
>>>> doveadm( 32679): Debug: Added userdb setting:
>>>> plugin/master_user=
>>>> doveadm( 32679): Debug: Added userdb setting:
>>>> plugin/userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
>>>> 2017@,lgs@
>>>> doveadm( 32679): Debug: Added userdb setting:
>>>> plugin/userdb_quota_rule=*:bytes=1572864
>>>> doveadm(): Debug: Effective uid=90, gid=101,
>>>> home=/var/dovecot/imap//
>>>> doveadm(): Debug: Quota root: name=User quota backend=dict
>>>> args=:ns=INBOX/:file:/var/dovecot/imap///dovecot-quota
>>>> doveadm(): Debug: Quota rule: root=User quota mailbox=*
>>>> bytes=107374182400 messages=0
>>>> doveadm(): Debug: Quota grace: root=User quota
>>>> bytes=10737418240 (10%)
>>>> doveadm(): Debug: dict quota: user=,
>>>> uri=file:/var/dovecot/imap///dovecot-quota, noenforcing=0
>>>> doveadm(): Debug: Namespace inboxes: type=private,
>>>> prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=no
>>>> location=mdbox:~/mdbox
>>>> doveadm(): Debug: fs:
>>>> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
>>>> control=, inbox=, alt=
>>>> doveadm(): Debug: acl: initializing backend with data: vfile
>>>> doveadm(): Debug: acl: acl username = 
>>>> doveadm(): Debug: acl: owner = 1
>>>> doveadm(): Debug: acl vfile: Globa

Re: doveadm mailbox delete not working

2018-08-14 Thread Aki Tuomi
ion_plugin.so
> >> Debug: Loading modules from directory: /usr/lib/dovecot/doveadm
> >> Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
> >> Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:
> >> Error relocating
> >> /usr/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so:
> >> expire_set_lookup: symbol not found (this is usually intentional, so
> >> just ignore this message)
> >> Debug: Module loaded: 
> >> /usr/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
> >> Debug: Module loaded: 
> >> /usr/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
> >> Debug: Skipping module doveadm_fts_plugin, because dlopen() failed:
> >> Error relocating /usr/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so:
> >> fts_backend_rescan: symbol not found (this is usually intentional, so
> >> just ignore this message)
> >> Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen()
> >> failed: Error relocating
> >> /usr/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so:
> >> mail_crypt_box_get_public_key: symbol not found (this is usually
> >> intentional, so just ignore this message)
> >> doveadm(): Debug: auth PASS input:
> >> doveadm( 32679): Debug: auth USER input: 
> >> userdb_quota_rule=*:bytes=1572864 master_user=
> >> userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
> >> 2017@,lgs@ home=/var/dovecot/imap//
> >> doveadm( 32679): Debug: Added userdb setting:
> >> plugin/master_user=
> >> doveadm( 32679): Debug: Added userdb setting:
> >> plugin/userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
> >> 2017@,lgs@
> >> doveadm( 32679): Debug: Added userdb setting:
> >> plugin/userdb_quota_rule=*:bytes=1572864
> >> doveadm(): Debug: Effective uid=90, gid=101,
> >> home=/var/dovecot/imap//
> >> doveadm(): Debug: Quota root: name=User quota backend=dict
> >> args=:ns=INBOX/:file:/var/dovecot/imap///dovecot-quota
> >> doveadm(): Debug: Quota rule: root=User quota mailbox=*
> >> bytes=107374182400 messages=0
> >> doveadm(): Debug: Quota grace: root=User quota
> >> bytes=10737418240 (10%)
> >> doveadm(): Debug: dict quota: user=,
> >> uri=file:/var/dovecot/imap///dovecot-quota, noenforcing=0
> >> doveadm(): Debug: Namespace inboxes: type=private,
> >> prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=no
> >> location=mdbox:~/mdbox
> >> doveadm(): Debug: fs:
> >> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
> >> control=, inbox=, alt=
> >> doveadm(): Debug: acl: initializing backend with data: vfile
> >> doveadm(): Debug: acl: acl username = 
> >> doveadm(): Debug: acl: owner = 1
> >> doveadm(): Debug: acl vfile: Global ACLs disabled
> >> doveadm(): Debug: Namespace users: type=shared,
> >> prefix=user/%n/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no
> >> location=mdbox:%h/mdbox:INDEXPVT=~/shared/%u
> >> doveadm(): Debug: shared: root=/run/dovecot, index=,
> >> indexpvt=, control=, inbox=, alt=
> >> doveadm(): Debug: acl: initializing backend with data: vfile
> >> doveadm(): Debug: acl: acl username = 
> >> doveadm(): Debug: acl: owner = 0
> >> doveadm(): Debug: acl vfile: Global ACLs disabled
> >> doveadm(): Debug: Namespace subs: type=private, prefix=,
> >> sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
> >> location=mdbox:~/mdbox
> >> doveadm(): Debug: fs:
> >> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
> >> control=, inbox=, alt=
> >> doveadm(): Debug: acl: initializing backend with data: vfile
> >> doveadm(): Debug: acl: acl username = 
> >> doveadm(): Debug: acl: owner = 1
> >> doveadm(): Debug: acl vfile: Global ACLs disabled
> >> doveadm(): Debug: quota: quota_over_flag check:
> >> quota_over_script unset - skipping
> >> doveadm(): Debug: INBOX/Fachbereiche : Mailbox opened because:
> >> mailbox delete
> >> doveadm(): Debug: acl vfile: file
> >> /var/dovecot/imap///mdbox/mailboxes/Fachbereiche
> >> /dbox-Mails/dovecot-acl not found
> >> doveadm(): Debug: Namespace INBOX/: Using permissions from
> >> /var/dovecot/imap///mdbox: mode=0700 gid=default
> >> doveadm(): Debug: replication: Replication requested by
> >> 'mailbox delete', priority=1
> >> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
> >>
> >> Output and logs are from

Re: doveadm mailbox delete not working

2018-08-14 Thread Ralf Becker
ail_crypt_box_get_public_key: symbol not found (this is usually
>> intentional, so just ignore this message)
>> doveadm(): Debug: auth PASS input:
>> doveadm( 32679): Debug: auth USER input: 
>> userdb_quota_rule=*:bytes=1572864 master_user=
>> userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
>> 2017@,lgs@ home=/var/dovecot/imap//
>> doveadm( 32679): Debug: Added userdb setting:
>> plugin/master_user=
>> doveadm( 32679): Debug: Added userdb setting:
>> plugin/userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
>> 2017@,lgs@
>> doveadm( 32679): Debug: Added userdb setting:
>> plugin/userdb_quota_rule=*:bytes=1572864
>> doveadm(): Debug: Effective uid=90, gid=101,
>> home=/var/dovecot/imap//
>> doveadm(): Debug: Quota root: name=User quota backend=dict
>> args=:ns=INBOX/:file:/var/dovecot/imap///dovecot-quota
>> doveadm(): Debug: Quota rule: root=User quota mailbox=*
>> bytes=107374182400 messages=0
>> doveadm(): Debug: Quota grace: root=User quota
>> bytes=10737418240 (10%)
>> doveadm(): Debug: dict quota: user=,
>> uri=file:/var/dovecot/imap///dovecot-quota, noenforcing=0
>> doveadm(): Debug: Namespace inboxes: type=private,
>> prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=no
>> location=mdbox:~/mdbox
>> doveadm(): Debug: fs:
>> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
>> control=, inbox=, alt=
>> doveadm(): Debug: acl: initializing backend with data: vfile
>> doveadm(): Debug: acl: acl username = 
>> doveadm(): Debug: acl: owner = 1
>> doveadm(): Debug: acl vfile: Global ACLs disabled
>> doveadm(): Debug: Namespace users: type=shared,
>> prefix=user/%n/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no
>> location=mdbox:%h/mdbox:INDEXPVT=~/shared/%u
>> doveadm(): Debug: shared: root=/run/dovecot, index=,
>> indexpvt=, control=, inbox=, alt=
>> doveadm(): Debug: acl: initializing backend with data: vfile
>> doveadm(): Debug: acl: acl username = 
>> doveadm(): Debug: acl: owner = 0
>> doveadm(): Debug: acl vfile: Global ACLs disabled
>> doveadm(): Debug: Namespace subs: type=private, prefix=,
>> sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
>> location=mdbox:~/mdbox
>> doveadm(): Debug: fs:
>> root=/var/dovecot/imap///mdbox, index=, indexpvt=,
>> control=, inbox=, alt=
>> doveadm(): Debug: acl: initializing backend with data: vfile
>> doveadm(): Debug: acl: acl username = 
>> doveadm(): Debug: acl: owner = 1
>> doveadm(): Debug: acl vfile: Global ACLs disabled
>> doveadm(): Debug: quota: quota_over_flag check:
>> quota_over_script unset - skipping
>> doveadm(): Debug: INBOX/Fachbereiche : Mailbox opened because:
>> mailbox delete
>> doveadm(): Debug: acl vfile: file
>> /var/dovecot/imap///mdbox/mailboxes/Fachbereiche
>> /dbox-Mails/dovecot-acl not found
>> doveadm(): Debug: Namespace INBOX/: Using permissions from
>> /var/dovecot/imap///mdbox: mode=0700 gid=default
>> doveadm(): Debug: replication: Replication requested by
>> 'mailbox delete', priority=1
>> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
>>
>> Output and logs are from the (less loaded) standby/backup node. I can
>> get the logs from the active node tonight.
>>
>> I had to remove some folder-names for privacy reasons, but they all have
>> the same output in the logs.
>>
>> Ralf
>>
>>>
>>>
>>> ---
>>> Aki Tuomi
>>> Dovecot oy
>>>
>>>  Original message 
>>> From: Ralf Becker 
>>> Date: 14/08/2018 16:13 (GMT+02:00)
>>> To: dovecot@dovecot.org
>>> Subject: doveadm mailbox delete not working
>>>
>>> I have a user who has several folders in his mailbox, which we can not
>>> delete, neither via IMAP nor via doveadm:
>>>
>>> root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
>>> | cat -v
>>> INBOX/[Fachbereiche ^M
>>> INBOX/Fachbereiche ^M
>>> INBOX/hbereiche^M
>>> INBOX/hbereiche/LAGen]^M
>>> INBOX/hbereiche/LAG^M
>>> INBOX/[Fachbereiche^M
>>> INBOX/[Fachbereiche/LAGen]^M
>>> INBOX/[Fachbereiche]^M
>>> INBOX/[Fachbereiche]/LAGen]^M
>>> INBOX/[Fachbereiche]/LAGe^M
>>> root@ka-nfs-mail:~# doveadm mailbox delete  -u 
>>> 'INBOX/Fachbereiche '
>>> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
>>> root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
>>> cat -v
>>> INBOX/[Fachbereiche ^M
>>> 

Re: doveadm mailbox delete not working

2018-08-14 Thread Aki Tuomi
le: file
> /var/dovecot/imap///mdbox/mailboxes/Fachbereiche
> /dbox-Mails/dovecot-acl not found
> doveadm(): Debug: Namespace INBOX/: Using permissions from
> /var/dovecot/imap///mdbox: mode=0700 gid=default
> doveadm(): Debug: replication: Replication requested by
> 'mailbox delete', priority=1
> doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
> 
> Output and logs are from the (less loaded) standby/backup node. I can
> get the logs from the active node tonight.
> 
> I had to remove some folder-names for privacy reasons, but they all have
> the same output in the logs.
> 
> Ralf
> 
> >
> >
> >
> > ---
> > Aki Tuomi
> > Dovecot oy
> >
> >  Original message 
> > From: Ralf Becker 
> > Date: 14/08/2018 16:13 (GMT+02:00)
> > To: dovecot@dovecot.org
> > Subject: doveadm mailbox delete not working
> >
> > I have a user who has several folders in his mailbox, which we can not
> > delete, neither via IMAP nor via doveadm:
> >
> > root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
> > | cat -v
> > INBOX/[Fachbereiche ^M
> > INBOX/Fachbereiche ^M
> > INBOX/hbereiche^M
> > INBOX/hbereiche/LAGen]^M
> > INBOX/hbereiche/LAG^M
> > INBOX/[Fachbereiche^M
> > INBOX/[Fachbereiche/LAGen]^M
> > INBOX/[Fachbereiche]^M
> > INBOX/[Fachbereiche]/LAGen]^M
> > INBOX/[Fachbereiche]/LAGe^M
> > root@ka-nfs-mail:~# doveadm mailbox delete  -u 
> > 'INBOX/Fachbereiche '
> > doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
> > root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
> > cat -v
> > INBOX/[Fachbereiche ^M
> > INBOX/Fachbereiche ^M
> > INBOX/hbereiche^M
> > INBOX/hbereiche/LAGen]^M
> > INBOX/hbereiche/LAG^M
> > INBOX/[Fachbereiche^M
> > INBOX/[Fachbereiche/LAGen]^M
> > INBOX/[Fachbereiche]^M
> > INBOX/[Fachbereiche]/LAGen]^M
> > INBOX/[Fachbereiche]/LAGe^M
> >
> > As far as I tried none of these folders can be deleted (I added single
> > quotes for trailing space and tried to delete subfolders first).
> >
> > Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36
> > and I tried both nodes of the replication with same result.
> >
> > Any ideas?
> >
> > Ralf
> >
> > -- 
> > Ralf Becker
> > EGroupware GmbH [www.egroupware.org]
> > Handelsregister HRB Kaiserslautern 3587
> > Geschäftsführer Birgit und Ralf Becker
> > Leibnizstr. 17, 67663 Kaiserslautern, Germany
> > Telefon +49 631 31657-0
> >
> >
> 
> -- 
> Ralf Becker
> EGroupware GmbH [www.egroupware.org]
> Handelsregister HRB Kaiserslautern 3587
> Geschäftsführer Birgit und Ralf Becker
> Leibnizstr. 17, 67663 Kaiserslautern, Germany
> Telefon +49 631 31657-0
>


Re: doveadm mailbox delete not working

2018-08-14 Thread Ralf Becker
Hi Aki,

thanks for looking into this :)

Am 14.08.18 um 15:15 schrieb Aki Tuomi:
> can you turn on mail_debug=yes and run doveadm -Dv mailbox delete and
> provide output and logs from both servers?
root@ka-nfs-mail:~# doveadm -Dv mailbox delete  -u h 'INBOX/Fachbereiche '
Debug: Loading modules from directory: /usr/lib/dovecot
Debug: Module loaded: /usr/lib/dovecot/lib01_acl_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib10_quota_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib15_notify_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib20_mail_log_plugin.so
Debug: Module loaded: /usr/lib/dovecot/lib20_replication_plugin.so
Debug: Loading modules from directory: /usr/lib/dovecot/doveadm
Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:
Error relocating
/usr/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so:
expire_set_lookup: symbol not found (this is usually intentional, so
just ignore this message)
Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Debug: Module loaded: /usr/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed:
Error relocating /usr/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so:
fts_backend_rescan: symbol not found (this is usually intentional, so
just ignore this message)
Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen()
failed: Error relocating
/usr/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so:
mail_crypt_box_get_public_key: symbol not found (this is usually
intentional, so just ignore this message)
doveadm(): Debug: auth PASS input:
doveadm( 32679): Debug: auth USER input: 
userdb_quota_rule=*:bytes=1572864 master_user=
userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
2017@,lgs@ home=/var/dovecot/imap//
doveadm( 32679): Debug: Added userdb setting:
plugin/master_user=
doveadm( 32679): Debug: Added userdb setting:
plugin/userdb_acl_groups=koakram@,wahlkampfnetzwerk@,wahlkalender
2017@,lgs@
doveadm( 32679): Debug: Added userdb setting:
plugin/userdb_quota_rule=*:bytes=1572864
doveadm(): Debug: Effective uid=90, gid=101,
home=/var/dovecot/imap//
doveadm(): Debug: Quota root: name=User quota backend=dict
args=:ns=INBOX/:file:/var/dovecot/imap///dovecot-quota
doveadm(): Debug: Quota rule: root=User quota mailbox=*
bytes=107374182400 messages=0
doveadm(): Debug: Quota grace: root=User quota
bytes=10737418240 (10%)
doveadm(): Debug: dict quota: user=,
uri=file:/var/dovecot/imap///dovecot-quota, noenforcing=0
doveadm(): Debug: Namespace inboxes: type=private,
prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=no
location=mdbox:~/mdbox
doveadm(): Debug: fs:
root=/var/dovecot/imap///mdbox, index=, indexpvt=,
control=, inbox=, alt=
doveadm(): Debug: acl: initializing backend with data: vfile
doveadm(): Debug: acl: acl username = 
doveadm(): Debug: acl: owner = 1
doveadm(): Debug: acl vfile: Global ACLs disabled
doveadm(): Debug: Namespace users: type=shared,
prefix=user/%n/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no
location=mdbox:%h/mdbox:INDEXPVT=~/shared/%u
doveadm(): Debug: shared: root=/run/dovecot, index=,
indexpvt=, control=, inbox=, alt=
doveadm(): Debug: acl: initializing backend with data: vfile
doveadm(): Debug: acl: acl username = 
doveadm(): Debug: acl: owner = 0
doveadm(): Debug: acl vfile: Global ACLs disabled
doveadm(): Debug: Namespace subs: type=private, prefix=,
sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
location=mdbox:~/mdbox
doveadm(): Debug: fs:
root=/var/dovecot/imap///mdbox, index=, indexpvt=,
control=, inbox=, alt=
doveadm(): Debug: acl: initializing backend with data: vfile
doveadm(): Debug: acl: acl username = 
doveadm(): Debug: acl: owner = 1
doveadm(): Debug: acl vfile: Global ACLs disabled
doveadm(): Debug: quota: quota_over_flag check:
quota_over_script unset - skipping
doveadm(): Debug: INBOX/Fachbereiche : Mailbox opened because:
mailbox delete
doveadm(): Debug: acl vfile: file
/var/dovecot/imap///mdbox/mailboxes/Fachbereiche
/dbox-Mails/dovecot-acl not found
doveadm(): Debug: Namespace INBOX/: Using permissions from
/var/dovecot/imap///mdbox: mode=0700 gid=default
doveadm(): Debug: replication: Replication requested by
'mailbox delete', priority=1
doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche

Output and logs are from the (less loaded) standby/backup node. I can
get the logs from the active node tonight.

I had to remove some folder-names for privacy reasons, but they all have
the same output in the logs.

Ralf

>
>
>
> ---
> Aki Tuomi
> Dovecot oy
>
>  Original message 
> From: Ralf Becker 
> Date: 14/08/2018 16:13 (GMT+02:00)
> To: dovecot@dovecot.org
> Subject: doveadm mailbox delete not working
>
> I have a user who has several folders in his mailbox, which we can not
> delete, neither

Re: doveadm mailbox delete not working

2018-08-14 Thread Aki Tuomi
can you turn on mail_debug=yes and run doveadm -Dv mailbox delete and provide 
output and logs from both servers?


---Aki TuomiDovecot oy
 Original message From: Ralf Becker  Date: 
14/08/2018  16:13  (GMT+02:00) To: dovecot@dovecot.org Subject: doveadm mailbox 
delete not working 
I have a user who has several folders in his mailbox, which we can not
delete, neither via IMAP nor via doveadm:

root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
| cat -v
INBOX/[Fachbereiche ^M
INBOX/Fachbereiche ^M
INBOX/hbereiche^M
INBOX/hbereiche/LAGen]^M
INBOX/hbereiche/LAG^M
INBOX/[Fachbereiche^M
INBOX/[Fachbereiche/LAGen]^M
INBOX/[Fachbereiche]^M
INBOX/[Fachbereiche]/LAGen]^M
INBOX/[Fachbereiche]/LAGe^M
root@ka-nfs-mail:~# doveadm mailbox delete  -u 
'INBOX/Fachbereiche '
doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
cat -v
INBOX/[Fachbereiche ^M
INBOX/Fachbereiche ^M
INBOX/hbereiche^M
INBOX/hbereiche/LAGen]^M
INBOX/hbereiche/LAG^M
INBOX/[Fachbereiche^M
INBOX/[Fachbereiche/LAGen]^M
INBOX/[Fachbereiche]^M
INBOX/[Fachbereiche]/LAGen]^M
INBOX/[Fachbereiche]/LAGe^M

As far as I tried none of these folders can be deleted (I added single
quotes for trailing space and tried to delete subfolders first).

Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36
and I tried both nodes of the replication with same result.

Any ideas?

Ralf

-- 
Ralf Becker
EGroupware GmbH [www.egroupware.org]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 631 31657-0




doveadm mailbox delete not working

2018-08-14 Thread Ralf Becker
I have a user who has several folders in his mailbox, which we can not
delete, neither via IMAP nor via doveadm:

root@ka-nfs-mail:~# doveadm mailbox list -u  | grep hbereiche
| cat -v
INBOX/[Fachbereiche ^M
INBOX/Fachbereiche ^M
INBOX/hbereiche^M
INBOX/hbereiche/LAGen]^M
INBOX/hbereiche/LAG^M
INBOX/[Fachbereiche^M
INBOX/[Fachbereiche/LAGen]^M
INBOX/[Fachbereiche]^M
INBOX/[Fachbereiche]/LAGen]^M
INBOX/[Fachbereiche]/LAGe^M
root@ka-nfs-mail:~# doveadm mailbox delete  -u 
'INBOX/Fachbereiche '
doveadm(): Info: Mailbox deleted: INBOX/Fachbereiche
root@ka-nfs-mail:~# doveadm mailbox list -u | grep hbereiche |
cat -v
INBOX/[Fachbereiche ^M
INBOX/Fachbereiche ^M
INBOX/hbereiche^M
INBOX/hbereiche/LAGen]^M
INBOX/hbereiche/LAG^M
INBOX/[Fachbereiche^M
INBOX/[Fachbereiche/LAGen]^M
INBOX/[Fachbereiche]^M
INBOX/[Fachbereiche]/LAGen]^M
INBOX/[Fachbereiche]/LAGe^M

As far as I tried none of these folders can be deleted (I added single
quotes for trailing space and tried to delete subfolders first).

Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36
and I tried both nodes of the replication with same result.

Any ideas?

Ralf

-- 
Ralf Becker
EGroupware GmbH [www.egroupware.org]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 631 31657-0




signature.asc
Description: OpenPGP digital signature