table of contents
ALI(1mh) | [mmh-0.4] | ALI(1mh) |
NAME¶
ali - list mail aliases
SYNOPSIS¶
ali [-file aliasfile]... [-list | -nolist] [-normalize | -nonormalize] [-user | -nouser] [-Version] [-help] [aliases ...]
DESCRIPTION¶
Ali searches the named mail alias files for each of the given aliases. It creates a list of addresses for those aliases, and writes that list on standard output. If no arguments are given, ali outputs all alias entries. This can be used to check the format of the alias file for validity.
By default, when an alias expands to multiple addresses, the addresses are separated by commas and printed on as few lines as possible. If the -list switch is specified, and an address expands to multiple addresses, each address will appear on a separate line.
The -user switch directs ali to perform its processing in an inverted fashion: instead of listing the addresses that each given alias expands to, ali will list the aliases that expand to each given address. If the -normalize switch is given, ali will try to track down the official hostname of the address.
If no -file aliasfile is given, then the default alias files, as specified by the profile entry `Aliasfile', will be read. If any alias files are given by -file aliasfile switches, these will be read instead of the default alias files. Either the default alias files are read or the ones given at the command line, never both.
Each alias is processed as described in mh-alias(5).
FILES¶
^$HOME/.mmh/profile~^The user profile ^/etc/passwd~^List of users ^/etc/group~^List of groups
PROFILE COMPONENTS¶
^Path:~^To determine the user's mail storage ^Aliasfile:~^For default alias files
SEE ALSO¶
DEFAULTS¶
`-nolist' `-nonormalize' `-nouser'
CONTEXT¶
None
BUGS¶
The -user option with -nonormalize is not entirely accurate, as it does not replace local nicknames for hosts with their official site names.
2019-01-06 | MH.6.8 |