← 返回命令列表

Linux command

doveadm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show mailbox status

doveadm mailbox status -u [user@example.com] all '*'

List user mailboxes

doveadm mailbox list -u [user@example.com]

Search messages

doveadm search -u [user@example.com] mailbox INBOX subject "[test]"

Expunge deleted messages

doveadm expunge -u [user@example.com] mailbox Trash all

Force user reindex

doveadm index -u [user@example.com] INBOX

Show user quota

doveadm quota get -u [user@example.com]

Sync mailboxes

doveadm sync -u [user@example.com] [remote_host]

说明

doveadm is the administration tool for Dovecot IMAP/POP3 server. It provides commands for managing mailboxes, users, and server operations without directly manipulating mail storage. The tool handles tasks like mailbox maintenance, message search and manipulation, quota management, and replication control.

参数

-u _user_
Target user for operation.
-A
Apply to all users.
-D
Enable debug output.
-v
Verbose output.
-f _format_
Output format (flow, pager, tab, table).
-o _setting=value_
Override configuration.

FAQ

What is the doveadm command used for?

doveadm is the administration tool for Dovecot IMAP/POP3 server. It provides commands for managing mailboxes, users, and server operations without directly manipulating mail storage. The tool handles tasks like mailbox maintenance, message search and manipulation, quota management, and replication control.

How do I run a basic doveadm example?

Run `doveadm mailbox status -u [user@example.com] all '*'` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u _user_ do in doveadm?

Target user for operation.