courieruserinfo [--stderr] [-AudanmqohV] username
courieruserinfo --stderr
courieruserinfo -A, --all
courieruserinfo -u, --uid
courieruserinfo -d, --homedir
courieruserinfo -a, --address
courieruserinfo -n, --name
courieruserinfo -m, --maildir
courieruserinfo -q, --quota
courieruserinfo -o, --options
courieruserinfo -h, --help
courieruserinfo -V, --version
Exactly what information is retrieved by courieruserinfo can be specified using various command line switches. Default behaviour is to display all available user information. Using any of the specific information switches overrides this behaviour even if the -A switch is used. Any number of specific information switches can be combined.
Each item to display is returned on a separate line in the format <item>=<value>. If an item cannot be found for a user, the associated value field is blank. courieruserinfo cannot retrieve a user's password.
This command will display only the user's home directory:
courieruserinfo -d <username>
As will this command:
courieruserinfo -A -d <username>
Whereas this will display all available user information:
courieruserinfo -A <username>
And this will display the user's home and maildir directories:
courieruserinfo -d -m <username>
courieruserinfo does certain checks on command line arguments so it is important to put --stderr first in the argument list if it is to be used in order for these checks to be logged properly.
If you've found a bug in courieruserinfo, please report it to freeware@arda.homeunix.net
http://www.courier-mta.org/authlib/
courieruserinfo was written by Andrew St. Jean
Courier authentication library was written by Sam Varshavchik