doveadm -A operations failing due to broken mdbox
I'm using "/usr/bin/doveadm purge -A" to purge the mdboxes of my users.
Unfortunately this command terminates prematurely once it reaches a defective mdbox!
Is there a workaround for this?
Like using doveadm to get a list of valid users and then run "doveadm purge -u" on each of those?
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Am 09.12.2014 um 12:23 schrieb Ralf Hildebrandt:
I'm using "/usr/bin/doveadm purge -A" to purge the mdboxes of my users.
Unfortunately this command terminates prematurely once it reaches a defective mdbox!
Is there a workaround for this?
Like using doveadm to get a list of valid users and then run "doveadm purge -u" on each of those?
hm then you need a mech which finds broken mdboxes before better might be some force ( override stop parameter ) needs to be implemented for purge
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
On 12/09/2014 11:23 AM, Ralf Hildebrandt wrote:
I'm using "/usr/bin/doveadm purge -A" to purge the mdboxes of my users.
Unfortunately this command terminates prematurely once it reaches a defective mdbox!
Is there a workaround for this?
Like using doveadm to get a list of valid users and then run "doveadm purge -u" on each of those?
Are you looking for a workaround like this?
for user in doveadm user \*
; do doveadm purge -u $user; done
Regards, Pascal
The trapper recommends today: defaced.1434318@localdomain.org
- Pascal Volk dovecot@dovecot.org:
Are you looking for a workaround like this?
for user in
doveadm user \*
; do doveadm purge -u $user; done
Yeah!
[*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
participants (3)
-
Pascal Volk
-
Ralf Hildebrandt
-
Robert Schetterer