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