DOVEADM-USER(1)
π doveadm-user π
okay bestie, sit down, hydrate, because we're about to do a user lookup and it's gonna be adorable. this is part of doveadm(1) β the Dovecot admin tool β and honestly? she's giving backstage-pass energy. she walks into Dovecot's userdbs and asks "hey, do you know this person, and what do you know about them?" π
β¨ NAME β¨
doveadm-user β perform a user lookup in Dovecot's userdbs π¦
β¨ SYNOPSIS β¨
doveadm [GLOBAL OPTIONS] user [-a userdb_socket_path] [-e template] [-f field] [-u] [-x auth_info] user...
β¨ DESCRIPTION β¨
the user command does a user lookup β it shows you exactly what info Dovecot sees about the user(s), or whether the user even exists at all in the configured userdb(s). no cap. π
the auth_info is lowkey the moment when the userdb is, like, a SQL database and you're using %variables in the userdb_sql_query setting β think %{protocol} or %{local_ip}. or when you've configured your userdb like this:
userdb passwd-file {
passwd_file_path = /etc/%{protocol}.passwd
}
see how the path literally changes per protocol? yeah. that's why auth_info exists. she's the context. π
β¨ GLOBAL OPTIONS β¨
the global doveadm(1) options, bestie:
-Dβ enables verbosity and debug messages. she's chatty now π£οΈ-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. (yes,-Obig letter,-olittle letter, they are NOT the same girl π)-kβ preserve the entire environment for doveadm, not just theimport_environmentsetting.-vβ enables verbosity, including a progress counter. little numbers go brrr β-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. wanna override multiple settings? specify-omultiple times, she doesn't mind. π
β¨ OPTIONS β¨
-auserdb_socket_path β use this to specify an absolute path to an alternative UNIX domain socket. by default doveadm(1) uses the socket/rundir/auth-userdb. the socket might live in another directory when the defaultbase_dirsetting was overridden in/etc/dovecot/dovecot.conf.-etemplate β when you give this option plus a string with%variables, doveadm(1) shows you the expanded string for the user. β¨ this option can't be used together with the-eβ¦ wait no, with the-for-uoptions. (pick a lane, queen)-ffield β when you give this option plus the name of a userdb field, doveadm(1) shows only the value of that specified field. this option can't be used together with the-eor-uoptions.-uβ when given, doveadm(1) shows only values from the userdb. without the-uparameter, if any of theuid,gid,homeormail_pathfields are missing, their defaults are taken from the configuration file. this option can't be used together with the-eor-foptions.-xauth_info β auth_info specifies additional conditions for theusercommand. the auth_info option string has to be given as aname = valuepair. for multiple conditions, the-xoption can be supplied multiple times. π₯
possible names for the auth_info are:
serviceβ the service for which the userdb lookup should be tested. the value may be the name of a service, commonly used with Dovecot. for example:imap,pop3orsmtp.sessionβ session identifier.lipβ the local IP address (server) for the test.ripβ the remote IP address (client) for the test.lportβ the local port, e.g.143rportβ the remote port, e.g.24567real_lipβ the local IP to which the client connected on this host.real_ripβ the remote IP where client connected from to this host.real_lportβ the local port to which client connected to to this host.real_rportβ the remote port from where the client connected from to this host.forward_<field>β field to forward as%{forward:field}to auth process.
β¨ ARGUMENTS β¨
- user β a user's login name. depending on the configuration, a login name may be for example
janeor β¨john@example.comβ©. it's also possible to use'*'and'?'wildcards (e.g.-u \*@example.org). π
β¨ EXAMPLE β¨
perform a user lookup for the users jane and β¨john@example.comβ©:
doveadm user jane john@example.com
userdb: jane
uid : 8001
gid : 8001
home : /home/jane
mail_path : ~/sdbox
plugins : sieve
quota_storage_size: 150M
userdb: john@example.com
home : /srv/mail/8/70312/79832
uid : 79832
gid : 70312
mail_path : ~/mdbox
user lookup, using wildcards:
doveadm user \*.?oe@example.net
jane.doe@example.net
judy.roe@example.net
john.doe@example.net
look at her go. three whole users from one wildcard. she ate. π β¨
β¨ REPORTING BUGS β¨
found a bug? π report bugs β including doveconf -n output β to the Dovecot Mailing List β¨dovecot@dovecot.orgβ©. info about reporting bugs lives at: β¨https://dovecot.org/bugreport.htmlβ©
bestie please include that doveconf -n output. the maintainers are begging. it's the love language of bug reports. π«Ά
β¨ SEE ALSO β¨
and that's the whole page, bestie π¦ go forth and look up users, be iconic, and remember: wildcards are powerful and with great power comes great \* escaping. iykyk. πΈ
this was DOVEADM-USER(1) from the Dovecot manual, revision f979264, dated April 2026. mwah. πβ¨
π¦ 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