|
|
1.1 root 1:
2:
3: aliases Technical Information aliases
4:
5:
6:
7:
8: File of users' aliases
9:
10: /uussrr/lliibb/mmaaiill/aalliiaasseess
11: $HHOOMMEE/.aalliiaasseess
12: $HHOOMMEE/.ffoorrwwaarrdd
13:
14: aalliiaasseess is a file that holds aliases by which users on your
15: system and other systems are known. An ``alias'', in effect,
16: gives another name by which you can address a mail message to a
17: user on either your or another system. It can serve as a
18: mnemomic, a ``mailing list'', or to spare you the trouble of
19: typing a complicated UUCP path name.
20:
21: The format of each alias is
22:
23:
24: alias_name: target
25:
26:
27: where _a_l_i_a_s__n_a_m_e gives the alias to which you mail your message,
28: and _t_a_r_g_e_t is the place where ssmmaaiill actually directs the message.
29: _t_a_r_g_e_t can be a login identifier on your local system; a mail
30: address of a user on another system, or a cluster of users on
31: your system, on remote systems, or both.
32:
33: ssmmaaiill ignores differences in case when it compares a name with an
34: alias. Lines that start with a white-space character continue
35: from the previous line. ssmmaaiill ignores strings within
36: parentheses, as well as any text that appears after a pound sign
37: `#'.
38:
39: Prior to delivering local mail, ssmmaaiill checks file $HHOOMMEE/.ffoorrwwaarrdd
40: for forwarding instructions. This feature can be used to forward
41: inbound mail for a user to another machine or even a group of
42: machines.
43:
44: ***** Examples *****
45:
46: The following gives an example form of aalliiaasseess:
47:
48:
49: # this whole line is a comment
50:
51:
52:
53: # "mail programmers" sends mail to local users joe, jack, and bill
54: programmers: joe jack bill
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
67:
68:
69: aliases Technical Information aliases
70:
71:
72:
73: # same as above
74: programmers: joe jack
75: bill
76:
77:
78:
79: # same as above
80: programmers joe jack
81: bill
82:
83:
84:
85: # same as above
86: programmers joe # Joe Smith
87: jack # Jack Thomas
88: bill # Bill Williams
89:
90:
91:
92: # and yet another way; note use of parentheses to comment text
93: programmers joe (Joe Smith) jack (Jack Thomas)
94: bill (Bill Williams)
95:
96:
97:
98: # send a message to someone on another system
99: joe: boston!widget!js
100:
101:
102:
103: # send a message to users on both your and another system
104: programmers: boston!widget!js # Joe Smith
105: chicago!gadget!jt # Jack Thomas
106: bill # Bill Williams
107:
108:
109:
110: # all members of "programmers" group work at site "widget"
111: programmers!widget joe jack bill
112:
113:
114: Mailing lists are easily handled by two forms of file inclusion.
115: The first form is the same as is supported by sseennddmmaaiill:
116:
117:
118: fredlist :include:/usr/lib/mail/fredlist
119:
120:
121: ssmmaaiill adds each entry in /uussrr/lliibb/mmaaiill/ffrreeddlliisstt to the alias for
122: ffrreeddlliisstt.
123:
124: The second form allows /uussrr/lliibb/mmaaiill/aalliiaasseess to include other
125: aliases files:
126:
127:
128:
129:
130: COHERENT Lexicon Page 2
131:
132:
133:
134:
135: aliases Technical Information aliases
136:
137:
138:
139:
140: :include:/usr/lib/mail/morealiases
141:
142:
143: This adds the contents of /uussrr/lliibb/mmaaiill/mmoorreeaalliiaasseess to those of
144: /uussrr/lliibb/mmaaiill/aalliiaasseess as a regular alias file.
145:
146: All aliases are recursive, so you must be careful when defining
147: them. For example, the entries
148:
149:
150: bill: joe
151: joe: bill
152:
153:
154: causes an infinite loop. ssmmaaiill attempts to prevent infinite
155: loops, and to guess what you intended to do. The following
156: example illustrates how an alias can be used to deliver mail to a
157: remote user as well as to a local user having the same name as
158: the alias being expanded. ssmmaaiill expands the alias
159:
160:
161: mylogin: mypc!mylogin mylogin
162:
163:
164: to
165:
166:
167: mypc!mylogin mylogin
168:
169:
170: even though the second occurrence of mmyyllooggiinn matches the alias
171: name.
172:
173: Both forms of file inclusion are recursive, too, and may lead to
174: infinite loops if handled carelessly.
175:
176: ***** See Also *****
177:
178: mmaaiill, tteecchhnniiccaall iinnffoorrmmaattiioonn
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196: COHERENT Lexicon Page 3
197:
198:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.