DBMAIL-USERS(8)
π DBMAIL-USERS(8) β the dbmail-users glow-up
okay so bestie, welcome to dbmail-users, the manual page for the dbmail-users program itself. It's the one that manages the DBMail user database, and honestly? it's kind of the main character of user admin. Let's get into it. β¨
πΈ SYNOPSIS
dbmail-users [MODE] [MODE OPTIONS]
dbmail-users --add-user user [options]
dbmail-users --change-user user [options]
dbmail-users --delete-user user
dbmail-users --empty-user-mailboxes user [options]
dbmail-users --list-users
dbmail-users --list-user user
dbmail-users --change-user user --password password --pw-type pwtype
dbmail-users --change-user user --add-alias address
dbmail-users --change-user user --delete-alias address
dbmail-users --forward address --add-forward address
dbmail-users --forward address --delete-forward address
π¦ DESCRIPTION
So dbmail-users is literally your whole user-management situation. It lets you add, delete and change users, plus show info about a specific user or dump out a list of everyone who exists. And as if that wasn't enough, it can also add/remove separate aliases. Slay. π
π MODE
-a,--add-useruser β add a user. new bestie acquired π«Ά-c,--change-useruser β change details for a user. the makeover mode π-d,--delete-useruser β delete a user. gone, but not forgotten π-e,--empty-user-mailboxesuser β empty all mailboxes for a user. inbox cleanse, fr fr π§Ή-L,--list-usersβ list information for all users. the whole roster β¨-l,--list-useruserspec β list information for matching users. just the ones you're looking for π-x,--forwardalias β create an external forwarding address. bye, mail, have fun at your new place π¦
π MODE OPTIONS
--enableβ enable authentication for user--disableβ disable authentication for user-w,--passwordβ specify user's password right there on the command line.
Heads up bestie: use with --change-user.
-W,--pw-filefile β read from a file, or prompt for a user's password. use with--add-userand--change-user-p,--pw-typetype β password type, and it may be one of the following:plaintext,crypt,md5-hash,md5-digest,crypt-raw,md5-hash-raw,md5-digest-raw,md5-base64,md5-base64-raw,whirlpool,sha512,sha256,sha1,tiger. use with--add-userand--change-userπ-P,--pw-shadowfile β pull the encrypted password from the shadow file. use with--add-userand--change-user-u,--useruser β new username. use with--change-userto change the username β rebranding era π«-g,--clientcid β assign the user to a client. use with--add-userand--change-user-m,--max-quotamax β set the maximum mail quota in<bytes>B,<kbytes>K, or<mbytes>M, default in bytes. if set to0, there will be no limit. no cap, literally π₯ use with--add-userand--change-user-s,--add-aliasalias[,alias...] β adds a list of recipient aliases. an alias is an e-mail address that is being delivered to the DBMail mailsystem and should be delivered to this user. use with--add-userand--change-user-S,--delete-aliasalias[,alias...] β removes a list of recipient aliases. use wildcards?and*to match any single character and any number of characters, respectively. use with--add-userand--change-user-t,--add-forwardforward[,forward...] β adds a list of deliver-to forwards. use with--forward-T,--delete-forwardforward[,forward...] β removes a list of deliver-to forwards. use wildcards?and*to match any single character and any number of characters, respectively. use with--forward--security-passwordβ specify a separate security fall-back password--security-actionβ select the security action value (default0)
π COMMON OPTIONS
-f,--configconfigfile β specify an alternate config file. usedbmail-<utility> --helpto show the default location.-q,--quietβ quietly skip interactive prompts and helpful status messages which would otherwise be printed to stdout. use two-q's to silence errors which would otherwise be printed to stderr. π€«-v,--verboseβ operate verbosely. some of the utilities in the DBMail suite can take two-v's for extra verbosity. those which don't understand this convention won't complain about having the extra-vand will simply operate at their normal verbosity. no drama, iconic behavior honestly-V,--versionβ show the version and copyright, then exit.-h,--helpβ show a brief summary of options, then exit.
πΈ ALIASES AND FORWARDS
okay so what even are aliases and forwards, and what's the difference? bestie, I got you:
users are known to the outside world by their email address, and to avoid confusion DBMail uses aliases for incoming email addresses and forwards for outgoing addresses where a user has moved to another organisation and their email is forwarded on to their new address.
- DBMail users receive email using one or more alias addresses. π
- When a user moves to another organisation or domain, they can have their email forwarded onwards. β‘οΈ
π ALIASES
When creating a new user account, you should add an initial alias that delivers to the account name, or make the account in the form of a fully qualified email address. for example, the user named Baz created like this:
dbmail-users --add-user baz --pw-type crypt --password secret
After creating the account you add an alias:
dbmail-users --change-user baz --add-alias baz@example.com
You may add multiple aliases by repeatedly calling dbmail-users, or by calling it with a comma-separated list of aliases:
dbmail-users --change-user baz --add-alias baz@example.com,baz@example.org
Three catch-all modes are also supported β for domains, sub-domains, and local parts:
dbmail-users --add-user baz --add-aliass @example.com
dbmail-users --add-user baz --add-alias @.allsubs.example.com
dbmail-users --add-user baz --add-alias baz@
The first example catches email addressed to any user @example.com and delivers it to Baz's INBOX. The second example catch email address to any user at any subdomain below .allsubs.example.com (not including allsubs.example.com itself!) The third example catches email addressed to baz@ at any domain.
Real talk: there is no support for delivering to a particular mailbox other than INBOX via the aliases system. Please use a Sieve script to sort mail like this. that's just how it is π
π¦ FORWARDS
Incoming messages addressed to particular email addresses can be forwarded to an outside email addresses, piped out to a command (when prepended with | pipe) or piped out with an mbox-style From line to a command (when prepended with ! bang). for example:
dbmail-users --forward bar@example.com --add-alias bar@another.example.net
dbmail-users --forward bar@example.com --add-alias "|/usr/sbin/superspamtrapper"
dbmail-users --forward bar@example.com --add-alias "!cat > /var/spool/mail/bar/whatever.mbox"
Forwards can be listed using the same --list command as for users. for example, to see where the local address bar@example.com might be forwarded to, use the following:
dbmail-users --list-user bar@example.com
forward [bar@example.com] to [bar@example.net]
forward [bar@example.com] to [|/usr/sbin/superspamtrapper]
forward [bar@example.com] to [!cat > /var/spool/mail/bar/whatever.mbox]
Forwards can be removed using basic glob style pattern matching. A ? question means "match zero or one of any character" and * asterisk means "match zero or more of any character." for example:
dbmail-users --forward bar@example.com --delete-forward "*"
will complete and totally remove the bar@example.com external alias and all of its forwarding addresses and commands. like, all of them. bye π
For example Gollum used to work at example.com but now works at example.org so any email addressed to gollum@example.com is forwarded to gollum@example.org
dbmail-users --forward gollum@example.com --add-forward gollum@example.org
When Gollum moves to example.net you delete the old forward and add the new one
dbmail-users --forward gollum@example.com \
--delete-forward gollum@example.org \
--add-forward gollum@example.net
π SEE ALSO
dbmail(1), dbmail.conf(5), dbmail-deliver(1), dbmail-export(8), dbmail-httpd(8), dbmail-imapd(8), dbmail-lmtpd(8), dbmail-pop3d(8), dbmail-sieved(8), dbmail-sievecmd(8), dbmail-users(8), dbmail-util(8)
π BUGS
For the latest announcements, please subscribe to the DBMail announce mailing list[1] π£
For general discussion, please subscribe to the DBMail general mailing list[2] π¬
If you experience an issue with DBMail, please report it on the DBMail Bug Tracker[3]. It may be helpful to have a debug log available. π
π LICENSE
DBMail and its components are distributed under the terms of the GNU General Public License Version 2. Copyrights are held variously by the authors listed below.
π AUTHOR(S)
DBMail is a collaborative effort among the core developers listed below and the tremendous help of the testers, patchers and bug hunters listed in the AUTHORS and THANKS files found in the DBMail source distribution. π«Ά
Alan Hicks Persistent Objects Ltd https://p-o.co.uk
Eelco van Beek Aaron Stone Paul J Stevens
Roel Rozendaal Open Source Engineer NFG Net Facilities Group BV
Ilja Booij Palo Alto, CA USA http://www.nfg.nl
IC&S http://www.ic-s.nl
β¨ AUTHOR
Alan Hicks <ahicks@p-o.co.uk> β Author.
π¦ NOTES
- DBMail announce mailing list β https://dbmail.org/wws/info/dbmail-announce/
- DBMail general mailing list β https://dbmail.org/wws/info/dbmail-general/
- DBMail Bug Tracker β https://github.com/dbmail/dbmail/issues
and that's the whole page, bestie π this lil' doc is dated 08/28/2026 and it's the DBMAIL-USERS(8) page β go forth and manage those users, you absolute icon πβ¨
π¦ where this page comes from
- arch rolling: dbmail 3.5.6-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms