DOVEADM-REPLICATOR(1)

πŸ’– DOVEADM-REPLICATOR πŸ’–

okay bestie, so this is the doveadm-replicator page from the Dovecot manual β€” like, the official one, manual section 1 πŸŽ€


✨ NAME ✨

doveadm-replicator β€” manage users' mail replication πŸ’Œ


🌸 SYNOPSIS 🌸

doveadm [-Dv] [-f formatter] replicator command [OPTIONS] [ARGUMENTS]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the doveadm replicator COMMANDS are literally your whole toolkit for managing the automated replication of users' mail. that's it, that's the vibe. automated. mail. replication. ✨


πŸ’… OPTIONS πŸ’…

the global doveadm(1) options, bestie

  • -D β€” turns on verbosity AND debug messages. it's giving "i want to see everything" πŸ”
  • -f formatter β€” picks the formatter for the output. the supported formatters are:
    • flow β€” prints each line with key=value pairs.
    • pager β€” prints each key: value pair on its own line, and separates records with a form feed character (^L).
    • tab β€” prints a table header, then tab separated value lines.
    • table β€” prints a table header, then adjusted value lines.
  • -o setting=value β€” overrides a configuration setting from /etc/dovecot/dovecot.conf and from the userdb with the value you give it. and if you wanna override multiple settings? no problem, just specify the -o option multiple times πŸ’«
  • -v β€” turns on verbosity, including the progress counter. we love a progress bar 🫢
oh and btw, this command uses the output formatter flow by default β€” without the key= prefix.

the command-specific option, gorgeous

  • -a replicator_socket_path β€” this one is for specifying an absolute path to an alternative UNIX domain socket.

by default doveadm(1) will use the socket /run/dovecot/replicator-doveadm. but the socket may be located in another directory if the default base_dir setting was overridden in /etc/dovecot/dovecot.conf πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • user_mask β€” specifies which users the command should be executed for. in most cases you'd wanna use patterns containing wildcards, like \*@example.net for all the users of the example.net domain, or just simply \* for, like, every single user 🌈

when the SQL userdb module is used, make sure the iterate_query setting in /etc/dovecot/dovecot-sql.conf.ext matches your database layout. and when you're using the LDAP userdb module, make sure the iterate_attrs and iterate_filter settings in /etc/dovecot/dovecot-ldap.conf.ext match your LDAP schema. otherwise doveadm(1) will be unable to iterate over all users 😭 (no cap, that's a real problem)


πŸ‘‘ COMMANDS πŸ‘‘

replicator add

doveadm replicator add [-a replicator_socket_path] user_mask

adds the specified user(s) to the replicator. if the user_mask contains "?" or "*" wildcards, the list of usernames is looked up from the userdb. periodt πŸ’…

replicator dsync-status

doveadm replicator dsync-status [-a replicator_socket_path]

shows the status for the currently running dsync processes. it's giving live updates πŸ“‘

replicator remove

doveadm replicator remove [-a replicator_socket_path] username

removes the specified username from the replicator. bye bestie πŸ‘‹

replicator replicate

doveadm replicator replicate [-a replicator_socket_path] [-f] [-p priority] user_mask

starts replication for the specified users right now, like immediately, no waiting ✨ if the -f parameter is given, a full replication is done for the user. you can also specify the priority, which can be either high or low. and if the user_mask contains "?" or "*" wildcards, the list of usernames is looked up from the users that currently exist in the replicator β€” not from the userdb. important distinction, iykyk πŸ”₯

replicator status

doveadm replicator status [-a replicator_socket_path] user_mask

shows the replication status for users. the vibe check of replication πŸ“Š


πŸ› REPORTING BUGS πŸ›

found a bug? report it, including doveconf -n output, to the Dovecot Mailing List <dovecot@dovecot.org>. info about reporting bugs lives at: http://dovecot.org/bugreport.html β€” don't be shy, they wanna hear it πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ

additional resources:


and that's the whole page bestie, you ate that πŸ“

so fr fr, this was Dovecot v2.3, dated 2014-10-05, and it's the DOVEADM-REPLICATOR(1) page πŸ’– go forth and replicate, main character 🧚✨