Merge from vendor branch SENDMAIL:
[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. 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 .\" $DragonFly: src/share/man/man7/mailaddr.7,v 1.3 2006/02/10 19:01:10 swildner Exp $
35 .\"
36 .Dd June 16, 1993
37 .Dt MAILADDR 7
38 .Os
39 .Sh NAME
40 .Nm mailaddr
41 .Nd mail addressing description
42 .Sh DESCRIPTION
43 Mail addresses are based on the Internet protocol listed at the end of this
44 manual page.  These addresses are in the general format
45 .Pp
46 .Dl user@domain
47 .Pp
48 where a domain is a hierarchical dot separated list of subdomains.  For
49 example, a valid address is:
50 .Pp
51 .Dl eric@CS.Berkeley.EDU
52 .Pp
53 Unlike some other forms of addressing, domains do not imply any routing.
54 Thus, although this address is specified as an Internet address, it might
55 travel by an alternate route if that were more convenient or efficient.
56 For example, at Berkeley, the associated message would probably go directly
57 to CS over the Ethernet rather than going via the Berkeley Internet
58 gateway.
59 .Ss Abbreviation.
60 Under certain circumstances it may not be necessary to type the entire
61 domain name.  In general, anything following the first dot may be omitted
62 if it is the same as the domain from which you are sending the message.
63 For example, a user on ``calder.berkeley.edu'' could send to ``eric@CS''
64 without adding the ``berkeley.edu'' since it is the same on both sending
65 and receiving hosts.
66 .Ss Compatibility.
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 Domain names (i.e., anything after the ``@'' sign) may be given in any mixture
96 of upper and lower case with the exception of UUCP hostnames.  Most hosts
97 accept any combination of case in user names, with the notable exception of
98 MULTICS sites.
99 .Ss Route-addrs.
100 Under some circumstances it may be necessary to route a message through
101 several hosts to get it to the final destination.  Normally this routing
102 is done automatically, but sometimes it is desirable to route the message
103 manually.  Addresses which show these relays are termed ``route-addrs.''
104 These use the syntax:
105 .Pp
106 .Dl <@hosta,@hostb:user@hostc>
107 .Pp
108 This specifies that the message should be sent to hosta, from there to hostb,
109 and finally to hostc.  This path is forced even if there is a more efficient
110 path to hostc.
111 .Pp
112 Route-addrs occur frequently on return addresses, since these are generally
113 augmented by the software at each host.  It is generally possible to ignore
114 all but the ``user@hostc'' part of the address to determine the actual
115 sender.
116 .Pp
117 [Note: the route-addr syntax is officially deprecated
118 in RFC 1123 and should not be used.]
119 .Pp
120 Many sites also support the ``percent hack'' for simplistic routing:
121 .Pp
122 .Dl user%hostc%hostb@hosta
123 .Pp
124 is routed as indicated in the previous example.
125 .Ss Postmaster.
126 Every site is required to have a user or user alias designated ``postmaster''
127 to which problems with the mail system may be addressed.
128 .Ss Other Networks.
129 Some other networks can be reached by giving the name of the network as the
130 last component of the domain.
131 .Em This is not a standard feature
132 and may
133 not be supported at all sites.  For example, messages to CSNET or BITNET sites
134 can often be sent to ``user@host.CSNET'' or ``user@host.BITNET'' respectively.
135 .Sh SEE ALSO
136 .Xr mail 1 ,
137 .Xr sendmail 8
138 .Rs
139 .%A Crocker, D. H.
140 .%T Standard for the Format of Arpa Internet Text Messages
141 .%O RFC822
142 .Re
143 .Sh HISTORY
144 .Nm Mailaddr
145 appeared in
146 .Bx 4.2 .
147 .Sh BUGS
148 The RFC822 group syntax (``group:user1,user2,user3;'') is not supported
149 except in the special case of ``group:;'' because of a conflict with old
150 berknet-style addresses.
151 .Pp
152 Route-Address syntax is grotty.
153 .Pp
154 UUCP- and Internet-style addresses do not coexist politely.