You don't necessarely enable imap_metadata for this, just having attribute dict is enough.
can you rm -rf the backup and try again with doveadm -D? Aki > On 16/02/2025 23:47 EET Asai via dovecot <dovecot@dovecot.org> wrote: > > > After spending several hours troubleshooting this, it seems like doveadm > backup is broken somehow. At least on my system. > > I can't even run doveadm backup -u user maildir:/dest on an empty target > director without it throwing an error. > > Is anyone else having this problem? > > Thanks, > Asai > > On 2/15/2025 6:36 PM, Asai via dovecot wrote: > > Here's some more debugging info in case this helps: > > > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: Mailbox INBOX: Mailbox > > opened > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: brain S: Syncing > > mailbox 77727820079bdd584f280000773ea8bd: UIDNEXT changed: 1 -> 12170 > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: brain M: Syncing > > mailbox 77727820079bdd584f280000773ea8bd: UIDNEXT changed: 12170 -> 1 > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: doveadm-sieve: > > Iterating Sieve mailbox attributes > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: sieve: Pigeonhole > > version 2.4.0 (1b2d5bb9) initializing > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: Loading modules from > > directory: /usr/lib64/dovecot/sieve > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: Module loaded: > > /usr/lib64/dovecot/sieve/lib90_sieve_imapsieve_plugin.so > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: sieve: Sieve imapsieve > > plugin for Pigeonhole version 2.4.0 (1b2d5bb9) loaded > > Feb 15 18:33:44 dsync(u...@domain.tld): Error: brain M: Exporting > > mailbox INBOX failed: Mailbox attribute iteration failed: Mailbox > > attributes not enabled > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: brain S: Import mailbox > > INBOX: Saved UIDs: > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: User session is finished > > Feb 15 18:33:44 dsync(u...@domain.tld): Debug: auth-master: conn > > unix:/run/dovecot/auth-userdb (pid=56369,uid=0): Disconnected: > > Connection closed (fd=9) > > > > On 2/14/2025 7:06 PM, Asai via dovecot wrote: > >> Greetings, > >> > >> On 2.3 I was able to run the following command, but now on 2.4 I'm > >> getting the following error: > >> > >> doveadm backup -u u...@domain.tld > >> maildir:/mnt/backups/daily/domain.tld/user > >> > >> dsync(u...@domain.tld): Error: brain M: Exporting mailbox INBOX > >> failed: Mailbox attribute iteration failed: Mailbox attributes not > >> enabled > >> > >> So, I tried to set the configs to include: > >> > >> protocol imap { > >> imap_metadata = yes > >> ... > >> } > >> > >> mail_attribute { > >> dict file { > >> path = %{home}/dovecot-attributes > >> } > >> } > >> > >> But then I get: > >> > >> Error: brain M: Exporting mailbox INBOX failed: Mailbox attribute > >> iteration failed: BUG: Unknown internal error > >> > >> Can anyone clarify the proper configs for this? > >> > >> Thank you, > >> > >> Asai > >> > >> _______________________________________________ > >> dovecot mailing list -- dovecot@dovecot.org > >> To unsubscribe send an email to dovecot-le...@dovecot.org > > _______________________________________________ > > dovecot mailing list -- dovecot@dovecot.org > > To unsubscribe send an email to dovecot-le...@dovecot.org > _______________________________________________ > dovecot mailing list -- dovecot@dovecot.org > To unsubscribe send an email to dovecot-le...@dovecot.org _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org