DBMAIL-USERS(8) | DBMAIL-USERS(8) |
NAME
dbmail-users - manages the DBMail user database.
SYNOPSIS
dbmail-users { -a username | -c username } [ -g clientid ] [ -m maxmail] [ -p passwordtype ] [ -P shadowfile ] [ -w password ] [ -W passwordfile] [ -u username ] [ -s aliases ] [ -S aliases ]
dbmail-users { -d username | -e username }
dbmail-users -l userspec
dbmail-users -x alias [ -t forwards ] [ -T forwards ]
DESCRIPTION
The dbmail-users program enables you to manage the DBMail users. It lets you add, delete and change users as well as show information about a specific user or display a list of existing users. It also has the capability of adding/removing separate aliases.
MODE OPTIONS
-a user
-d user
-c user
-e user
-l uspec
-x alias
MINOR OPTIONS
-w passwd
-W [file]
-p pwtype
-P [file]
-u user
-g cid
-m max
-s alias[,alias...]
-S alias[,alias...]
-t forward[,forward...]
-T forward[,forward...]
COMMON OPTIONS
-f configfile
-q
-v
-V
-h
ALIASES VS. FORWARDS
One question we often see on the dbmail@dbmail.org[1] mailing list is what the difference is between aliases and forwards. When using dbmail-users, the different command line options are there because an alias attaches some arbitrary address to a particular user’s account, while a forward attaches some arbitrary address another arbitrary address or pipe out.
When using dbmail-users with major option -c, you must use minor option -s/-S for modifying aliases. When using dbmail-users with major option -x, you must use -t/-T for modifying forwards.
ALIASES
When creating a new user account, you must either 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 -a baz -p crypt -w psword
will not actually receive any mail yet! You must be sure to add an alias:
dbmail-users -c baz -s baz@foodomain
You may add multiple aliases by repeatedly calling the dbmail-users(8) utility, or by calling it with a comma-separated list of aliases:
dbmail-users -c baz -s baz@foodomain,baz@bardomain
Three catch-all modes are also supported, for domains, sub-domains, and local parts:
dbmail-users -a baz -s @bazdomain
dbmail-users -a baz -s @.allsubs.bazdomain
dbmail-users -a baz -s baz@
The first example catches email addressed to any user @bazdomain and delivers it to Baz’s INBOX. The second example catch email address to any user at any subdomain below .allsubs.bazdomain (not including allsubs.bazdomain itself!) The third example catches email addressed to baz@ at any domain.
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.
FORWARDS
Incoming messages addressed to particular email addresses can be forwarded out to 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 -x bar@domain -t bar@another.domain
dbmail-users -x bar@domain -t "|/usr/sbin/superspamtrapper"
dbmail-users -x bar@domain -t "!cat > /var/spool/mail/bar/whatever.mbox"
Forwards can be listed using the same -l command as for users. For example, to see where the local address bar@domain[2] might be forwarded to, use this:
dbmail-users -l bar@domain forward [bar@domain] to [bar@another.domain] forward [bar@domain] to [|/usr/sbin/superspamtrapper] forward [bar@domain] 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 -x bar@domain -T "*"
will complete and totally remove the bar@domain external alias and all of its forwarding addresses and commands.
BUGS
If you experience inexplicable problems with DBMail, please report the issue to the DBMail Bug Tracker[3].
LICENSE
DBMail and its components are distributed under the terms of the GNU General Public License. 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://hydricacid.com http://www.ic-s.nl
NOTES
- 1.
- dbmail@dbmail.org
- 2.
- bar@domain
- 3.
- DBMail Bug Tracker
08/04/2024 |