DOVEADM-FORCE-RESYNC(1)
β¨ DOVEADM-FORCE-RESYNC(1) β¨
okay bestie, welcome to the Dovecot manual page for doveadm-force-resync β the little command that fixes your broken mailboxes when nothing else will π«Ά it lives in the Dovecot manual, section 1, and it is genuinely your best friend when things go sideways.
π NAME π
doveadm-force-resync β Repair broken mailboxes π οΈβ¨
π SYNOPSIS π
doveadm [GLOBAL OPTIONS] force-resync [-S socket_path] -A mailbox
doveadm [GLOBAL OPTIONS] force-resync [-S socket_path] -F file mailbox
doveadm [GLOBAL OPTIONS] force-resync [-S socket_path] --no-userdb-lookup mailbox
doveadm [GLOBAL OPTIONS] force-resync [-S socket_path] -u user mailbox
π¦ DESCRIPTION π¦
so like, under certain circumstances β and you know the universe loves those β dovecot(1) just cannot fix your mailbox problems on its own. auto-solving said no. that's when force-resync swoops in like the main character π
it tries to fix all problems. all of them. every single one. and for sdbox and mdbox mailboxes, the storage files will also be checked π
π GLOBAL OPTIONS π
these are the global doveadm(1) options, shared with all its siblings:
-Dβ turns on verbosity and debug messages πβ¨-Oβ do not read any config file, just use defaults. thedovecot_storage_versionsetting defaults to the latest version, but you can override it with-o.-kβ preserve the entire environment fordoveadm, not just theimport_environmentsetting.-vβ enables verbosity, including the progress counter π (satisfying, ngl)-iinstance-name β if you're running multiple Dovecot instances, pick the config file based on this instance name. see theinstance_namesetting for more info π«Ά-cconfig-file β read configuration from the given config-file. by default it first reads the config socket, then falls back to/etc/dovecot/dovecot.conf. you can also point this at the config socket of some instance running a compatible version π-osetting=value β overrides the configuration setting from/etc/dovecot/dovecot.confand from the userdb with the given value. to override multiple settings, you can specify-omultiple times. stack 'em. go off.
π OPTIONS π
-Aβ if-Ais present, the command runs for all users. using this with system users fromuserdb { driver = passwd }is not recommended, because it also contains users with a lower UID than the one configured with thefirst_valid_uidsetting. π
when the SQL userdb module is used, make sure the userdb_sql_iterate_query setting setting matches your database layout.
when using the LDAP userdb module, make sure the userdb_fields setting and userdb_ldap_iterate_fields setting settings match your LDAP schema. otherwise doveadm(1) will be unable to iterate over all users π
-Ffile β run the command for all the users in the file. it's basically-A's cousin, except instead of getting the user list from the userdb, they're read from the given file. the file contains one username per line π--no-userdb-lookupβ do not perform a userdb lookup. use theUSERenvironment variable to specify the username π·οΈ-Ssocket_path β the argument is either an absolute path to a local UNIX domain socket, or a hostname and port (hostname:port), so you can connect to a remote host via a TCP socket π
this lets an administrator execute doveadm(1) mail commands through the given socket.
-uuser/mask β run the command only for the given user. you can also use'*'and'?'wildcards (e.g.-u *@example.org) π―
π ARGUMENTS π
- mailbox β the name of the mailbox to fix. with
mdboxall of the mailboxes are fixed, so you can use for exampleINBOXas the name π
β EXAMPLE β
fix bob's INBOX:
doveadm force-resync -u bob INBOX
bob is healed. we love that for him π
π REPORTING BUGS π
report bugs, including doveconf -n output, to the Dovecot Mailing List β¨dovecot@dovecot.orgβ©. info about reporting bugs is available at: β¨https://dovecot.org/bugreport.htmlβ©
(ngl, always include that doveconf -n output. it's giving prepared. it's giving helpful. the devs will thank you π)
π SEE ALSO π
and that's the whole page, bestie π this one came from the Dovecot source, version f979264, dated April 2026 β so you're reading the freshest possible tea β¨ slay, go fix those mailboxes, and remember: every problem can be resynced π
π¦
π¦ where this page comes from
- alpine 3.23: dovecot-doc 2.4.5-r0 Β· MIT AND LGPL-2.1-or-later
- alpine 3.24: dovecot-doc 2.4.5-r0 Β· MIT AND LGPL-2.1-or-later
- arch rolling: dovecot 2.4.5-1 Β· MIT AND LGPL-2.1-only
- fedora 43: dovecot 1:2.4.5-1.fc43 Β· MIT AND LGPL-2.1-only
- fedora 44: dovecot 1:2.4.5-1.fc44 Β· MIT AND LGPL-2.1-only
- nixos 26.05: dovecot 2.4.5
- nixpkgs unstable: dovecot 2.4.5
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms