1 .TH MH-ALIAS %manext5% "Oct 14, 2012" "%nmhversion%"
6 mh-alias \- format of nmh alias files
11 alias file takes one of the following forms:
43 .IR address\-group " := " address\-list
45 .RI " | = " UNIX\-group
46 .RI " | + " UNIX\-group
49 .IR address\-list " := " address
50 .RI " | " address\-list ", " address
54 Continuation lines end with \*(lq\\\*(rq followed by a newline
55 character. This also applies to comment lines. Thus, the line following a
56 \*(lq\\\*(rq\-terminated
57 comment line is a continuation of
65 is a group name or number from
66 the system's group database.
67 Alias file contents are case-insensitive, with the exception
68 of filesystem path names.
70 If the line starts with a \*(lq<\*(rq, the file named after the \*(lq<\*(rq is
71 read for more alias definitions. The reading is done recursively, so a
72 \*(lq<\*(rq may occur in the beginning of an alias file with the expected results.
76 starts with a \*(lq<\*(rq, the file named after the
77 \*(lq<\*(rq is read and its contents are added to the
83 starts with an \*(lq=\*(rq, the
84 system's group database
85 is consulted for the UNIX\-group named after the \*(lq=\*(rq. Each login name
86 occurring as a member of the group is added to the
92 starts with a \*(lq+\*(rq, the system's group database
93 is consulted to determine the group\-id of the
94 UNIX\-group named after the \*(lq+\*(rq. Each login name occurring in the
95 system's password database
96 whose group\-id is indicated by this group is
103 is simply \*(lq*\*(rq, the system's password database
104 is consulted and all login names with a userid
105 greater than some magic number (usually 200) are added to the
109 This feature is obsolescent and will be removed in a future release.
111 In match, a trailing \*(lq*\*(rq on an alias will match just about anything
114 An approximation of the way aliases are resolved at posting time is:
116 Build a list of all addresses from the message to be delivered,
117 eliminating duplicate addresses.
119 If this draft originated on the local host, then for those addresses in
120 the message that have no host specified, perform alias resolution.
122 For each line in the alias file, compare \*(lqalias\*(rq against all of
123 the existing addresses. If a match, remove the matched \*(lqalias\*(rq
124 from the address list, and add each new address in the address\-group to
125 the address list if it is not already on the list. The alias itself is
126 not usually output, rather the address\-group that the alias maps to is
127 output instead. If \*(lqalias\*(rq is terminated with a \*(lq;\*(rq instead of
128 a \*(lq:\*(rq, then both the \*(lqalias\*(rq and the address are output in the
129 correct format (with the alias quoted if necessary and the address
134 file is read line by line, forward references work, but
135 backward references are not recognized.
141 <%etcdir%/BBoardAliases
142 fred: frated@UCI.example
143 sgroup: fred, fear, freida
144 b-people: Blind List: bill, betty
145 UNIX\-committee: <unix.aliases
152 The first line says that more aliases should immediately be read from
154 .BR %etcdir%/BBoardAliases .
155 Following this, \*(lqfred\*(rq
156 is defined as an alias for \*(lqfrated@UCI.example\*(rq, and \*(lqsgroup\*(rq
157 is defined as an alias for the three names \*(lqfrated@UCI.example\*(rq,
158 \*(rqfear\*(rq, and \*(rqfreida\*(rq.
160 The alias \*(lqb-people\*(rq is a blind list which includes the addresses
161 \*(lqbill\*(rq and \*(lqbetty\*(rq; the message will be delivered to those
162 addresses, but the message header will show only \*(lqBlind List: ;\*(rq
163 (not the addresses). The alias must not be terminated with, or contain,
165 Note that blind lists are not supported with the
167 mail transport method.
169 Next, the definition of \*(lqUNIX\-committee\*(rq is given by
175 \*(lqstaff\*(rq is defined as all users who are listed as members of the
176 group \*(lqstaff\*(rq in the
177 system's group database, and \*(lqwheels\*(rq
178 is defined as all users whose group\-id in
179 the system's password database
180 is equivalent to the \*(lqwheel\*(rq group.
181 .SH "PROFILE COMPONENTS"
188 System-wide default alias file.
198 Although the forward-referencing semantics of
200 files prevent recursion, the
202 directive may defeat this.
203 Since the number of file descriptors is finite, such
204 infinite recursion will terminate with a meaningless diagnostic when
205 all the fds are used up.
207 Earlier versions of this man page showed a semicolon at the end of the
208 blind list example. That caused the preceding alias to not be
209 expanded. There must not be a semicolon at the end of, or within, the
210 address group of a blind list.
212 will append the semicolon to the blind list name.