Initial import from FreeBSD RELENG_4:
[games.git] / share / man / man7 / mailaddr.7
1 .\" Copyright (c) 1983, 1987, 1990, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)mailaddr.7  8.1 (Berkeley) 6/16/93
33 .\" $FreeBSD: src/share/man/man7/mailaddr.7,v 1.6.2.1 2001/08/17 13:08:49 ru Exp $
34 .\"
35 .Dd June 16, 1993
36 .Dt MAILADDR 7
37 .Os
38 .Sh NAME
39 .Nm mailaddr
40 .Nd mail addressing description
41 .Sh DESCRIPTION
42 Mail addresses are based on the Internet protocol listed at the end of this
43 manual page.  These addresses are in the general format
44 .Pp
45 .Dl user@domain
46 .Pp
47 where a domain is a hierarchical dot separated list of subdomains.  For
48 example, a valid address is:
49 .Pp
50 .Dl eric@CS.Berkeley.EDU
51 .Pp
52 Unlike some other forms of addressing, domains do not imply any routing.
53 Thus, although this address is specified as an Internet address, it might
54 travel by an alternate route if that were more convenient or efficient.
55 For example, at Berkeley, the associated message would probably go directly
56 to CS over the Ethernet rather than going via the Berkeley Internet
57 gateway.
58 .Ss Abbreviation.
59 Under certain circumstances it may not be necessary to type the entire
60 domain name.  In general, anything following the first dot may be omitted
61 if it is the same as the domain from which you are sending the message.
62 For example, a user on ``calder.berkeley.edu'' could send to ``eric@CS''
63 without adding the ``berkeley.edu'' since it is the same on both sending
64 and receiving hosts.
65 .Ss Compatibility.
66 .Pp
67 Certain old address formats are converted to the new format to provide
68 compatibility with the previous mail system.  In particular,
69 .Pp
70 .Dl user@host
71 .Pp
72 and
73 .Dl user@host.domain
74 .Pp
75 are allowed;
76 .Pp
77 .Dl host.domain!user
78 .Pp
79 is converted to
80 .Pp
81 .Dl user@host.domain
82 .Pp
83 and
84 .Pp
85 .Dl host!user
86 .Pp
87 is converted to
88 .Pp
89 .Dl user@host.UUCP
90 .Pp
91 This is normally converted back to the ``host!user'' form before being sent
92 on for compatibility with older UUCP hosts.
93 .Pp
94 .Ss Case Distinctions.
95 .Pp
96 Domain names (i.e., anything after the ``@'' sign) may be given in any mixture
97 of upper and lower case with the exception of UUCP hostnames.  Most hosts
98 accept any combination of case in user names, with the notable exception of
99 MULTICS sites.
100 .Ss Route-addrs.
101 .Pp
102 Under some circumstances it may be necessary to route a message through
103 several hosts to get it to the final destination.  Normally this routing
104 is done automatically, but sometimes it is desirable to route the message
105 manually.  Addresses which show these relays are termed ``route-addrs.''
106 These use the syntax:
107 .Pp
108 .Dl <@hosta,@hostb:user@hostc>
109 .Pp
110 This specifies that the message should be sent to hosta, from there to hostb,
111 and finally to hostc.  This path is forced even if there is a more efficient
112 path to hostc.
113 .Pp
114 Route-addrs occur frequently on return addresses, since these are generally
115 augmented by the software at each host.  It is generally possible to ignore
116 all but the ``user@hostc'' part of the address to determine the actual
117 sender.
118 .Pp
119 [Note: the route-addr syntax is officially deprecated
120 in RFC 1123 and should not be used.]
121 .Pp
122 Many sites also support the ``percent hack'' for simplistic routing:
123 .Pp
124 .Dl user%hostc%hostb@hosta
125 .Pp
126 is routed as indicated in the previous example.
127 .Ss Postmaster.
128 .Pp
129 Every site is required to have a user or user alias designated ``postmaster''
130 to which problems with the mail system may be addressed.
131 .Ss Other Networks.
132 .Pp
133 Some other networks can be reached by giving the name of the network as the
134 last component of the domain.
135 .Em This is not a standard feature
136 and may
137 not be supported at all sites.  For example, messages to CSNET or BITNET sites
138 can often be sent to ``user@host.CSNET'' or ``user@host.BITNET'' respectively.
139 .Sh SEE ALSO
140 .Xr mail 1 ,
141 .Xr sendmail 8
142 .Rs
143 .%A Crocker, D. H.
144 .%T Standard for the Format of Arpa Internet Text Messages
145 .%O RFC822
146 .Re
147 .Sh HISTORY
148 .Nm Mailaddr
149 appeared in
150 .Bx 4.2 .
151 .Sh BUGS
152 The RFC822 group syntax (``group:user1,user2,user3;'') is not supported
153 except in the special case of ``group:;'' because of a conflict with old
154 berknet-style addresses.
155 .Pp
156 Route-Address syntax is grotty.
157 .Pp
158 UUCP- and Internet-style addresses do not coexist politely.