old-www/LDP/nag2/x-087-2-mail.address.html

424 lines
9.0 KiB
HTML

<HTML
><HEAD
><TITLE
>Email Addresses</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="Linux Network Administrators Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="Electronic Mail"
HREF="x-087-2-mail.html"><LINK
REL="PREVIOUS"
TITLE="How Is Mail Delivered?"
HREF="x-087-2-mail.delivery.html"><LINK
REL="NEXT"
TITLE="How Does Mail Routing Work?"
HREF="x-087-2-mail.routing.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Network Administrators Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x-087-2-mail.delivery.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 17. Electronic Mail</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x-087-2-mail.routing.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="X-087-2-MAIL.ADDRESS"
>17.3. Email Addresses</A
></H1
><P
>Email addresses are made up of at least two parts. One part is the
name of a <I
CLASS="EMPHASIS"
>mail domain</I
> that will ultimately
translate to either the recipient's host or some host that accepts
mail on behalf of the recipient. The other part is some form of unique
user identification that may be the login name of that user, the real
name of that user in &#8220;Firstname.Lastname&#8221; format, or an
arbitrary alias that will be translated into a user or list of
users. Other mail addressing schemes, like X.400, use a more general
set of &#8220;attributes&#8221; that are used to look up the
recipient's host in an X.500 directory server.</P
><P
>How email addresses are interpreted depends greatly on what type of
network you use. We'll concentrate on how TCP/IP and UUCP networks
interpret email addresses.</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="X-087-2-MAIL.ADDRESS.RFC822"
>17.3.1. RFC-822</A
></H2
><P
>
Internet sites adhere to the RFC-822 standard, which requires the
familiar notation of <SPAN
CLASS="SYSTEMITEM"
>user@host.domain</SPAN
>, for which <SPAN
CLASS="SYSTEMITEM"
>host.domain</SPAN
> is the host's fully
qualified domain name. The character separating the two is properly
called a &#8220;commercial at&#8221; sign, but it helps if you read it
as &#8220;at.&#8221; This notation does not specify a route to the
destination host. Routing of the mail message is left to the
mechanisms we'll describe shortly.</P
><P
>You will see a lot of RFC-822 if you run an Internet connected site. Its
use extends not only to mail, but has also spilled over into other services,
such as news. We discuss how RFC-822 is used for news in
<A
HREF="x-087-2-news.html"
>Chapter 20</A
>.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="X-087-2-MAIL.ADDRESS.OBSOLETE"
>17.3.2. Obsolete Mail Formats</A
></H2
><P
>
In the original UUCP environment, the prevalent form was
<SPAN
CLASS="SYSTEMITEM"
>path!host!user</SPAN
>, for which
<SPAN
CLASS="SYSTEMITEM"
>path</SPAN
> described a sequence of hosts
the message had to travel through before reaching the destination
<SPAN
CLASS="SYSTEMITEM"
>host</SPAN
>. This construct is called
the <I
CLASS="EMPHASIS"
>bang path</I
> notation, because an exclamation mark
is colloquially called a &#8220;bang.&#8221; Today, many UUCP-based networks
have adopted RFC-822 and understand domain-based addresses.</P
><P
>
Other networks have still different means of addressing. DECnet-based
networks, for example, use two colons as an address separator,
yielding an address of <SPAN
CLASS="SYSTEMITEM"
>host::user</SPAN
>.<A
NAME="X-087-2-FNMA05"
HREF="#FTN.X-087-2-FNMA05"
>[1]</A
>
The X.400 standard uses an entirely different scheme, describing a
recipient by a set of attribute-value pairs, like country and organization. </P
><P
>Lastly, on FidoNet, each user is identified by a code like <SPAN
CLASS="SYSTEMITEM"
>2:320/204.9</SPAN
>, consisting of four numbers
denoting zone (2 is for Europe), net (320 being Paris and Banlieue),
node (the local hub), and point (the individual user's PC). Fidonet
addresses can be mapped to RFC-822; the above, for example, would be written as <SPAN
CLASS="SYSTEMITEM"
>Thomas.Quinot@p9.f204.n320.z2.fidonet.org</SPAN
>. Now didn't we say domain names were easy to remember?</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="X-087-2-MAIL.ADDRESS.MIXING"
>17.3.3. Mixing Different Mail Formats</A
></H2
><P
>It is inevitable that when you bring together a number of different
systems and a number of clever people, they will seek ways to
interconnect the differing systems so they are capable of
internetworking. Consequently, there are a number of different mail
gateways that are able to link two different email systems together so
that mail may be forwarded from one to another. Addressing is the
critical question when linking two systems. We won't look at the
gateways themselves in any detail, but let's take a look at some of
the addressing complications that may arise when gateways of this sort
are used.</P
><P
>
Consider mixing the UUCP style bang-path notation and RFC-822. These
two types of addressing don't mix too well. Assume there is an address
of <SPAN
CLASS="SYSTEMITEM"
>domainA!user@domainB</SPAN
>. It
is not clear whether the <SPAN
CLASS="SYSTEMITEM"
>@</SPAN
>
sign takes precedence over the path, or vice versa: do we have to send
the message to <SPAN
CLASS="SYSTEMITEM"
>domainB</SPAN
>,
which mails it to <SPAN
CLASS="SYSTEMITEM"
>domainA!user</SPAN
>, or should it be sent to
<SPAN
CLASS="SYSTEMITEM"
>domainA</SPAN
>, which forwards it
to <SPAN
CLASS="SYSTEMITEM"
>user@domainB</SPAN
>&#8201;?</P
><P
>
Addresses that mix different types of address operators are called
<I
CLASS="EMPHASIS"
>hybrid addresses</I
>. The most common type, which we
just illustrated, is usually resolved by giving the <SPAN
CLASS="SYSTEMITEM"
>@</SPAN
> sign precedence over the path. In
<SPAN
CLASS="SYSTEMITEM"
>domainA!user@domainB</SPAN
>, this
means sending the message to <SPAN
CLASS="SYSTEMITEM"
>domainB</SPAN
> first.</P
><P
>&#13;However, there is a way to specify routes in RFC-822 conformant ways:
<SPAN
CLASS="SYSTEMITEM"
>&#60;@domainA,@domainB:user@domainC&#8201;&#62;</SPAN
> denotes the address of <SPAN
CLASS="SYSTEMITEM"
>user</SPAN
> on
<SPAN
CLASS="SYSTEMITEM"
>domainC</SPAN
>, where
<SPAN
CLASS="SYSTEMITEM"
>domainC</SPAN
> is to be reached through
<SPAN
CLASS="SYSTEMITEM"
>domainA</SPAN
> and
<SPAN
CLASS="SYSTEMITEM"
>domainB</SPAN
> (in that order). This type
of address is frequently called a <I
CLASS="EMPHASIS"
>source routed</I
> address.
It's not a good idea to rely on this behavior, as revisions to the
RFCs describing mail routing recommend that source routing in a mail
address be ignored and instead an attempt should be made to deliver directly
to the remote destination.</P
><P
>
Then there is the <SPAN
CLASS="SYSTEMITEM"
>%</SPAN
> address
operator: <SPAN
CLASS="SYSTEMITEM"
>user&#8201;%domainB@domainA</SPAN
> is first sent
to <SPAN
CLASS="SYSTEMITEM"
>domainA</SPAN
>, which expands
the rightmost (in this case, the only) percent sign to an <SPAN
CLASS="SYSTEMITEM"
>@</SPAN
> sign. The address is now <SPAN
CLASS="SYSTEMITEM"
>user@domainB</SPAN
>, and the mailer happily
forwards your message to <SPAN
CLASS="SYSTEMITEM"
>domainB</SPAN
>, which delivers it to
<SPAN
CLASS="SYSTEMITEM"
>user</SPAN
>. This type of address
is sometimes referred to as &#8220;Ye Olde ARPAnet Kludge,&#8221; and
its use is discouraged.</P
><P
>There are some implications to using these different types of
addressing that will be described throughout the following
sections. In an RFC-822 environment, you should avoid using anything
other than absolute addresses, such as <SPAN
CLASS="SYSTEMITEM"
>user@host.domain</SPAN
>.</P
></DIV
></DIV
><H3
CLASS="FOOTNOTES"
>Notes</H3
><TABLE
BORDER="0"
CLASS="FOOTNOTES"
WIDTH="100%"
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.X-087-2-FNMA05"
HREF="x-087-2-mail.address.html#X-087-2-FNMA05"
>[1]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
> When trying to reach a DECnet address from
an RFC-822 environment, you can use <SPAN
CLASS="SYSTEMITEM"
>&#8220;host::user"@relay</SPAN
>, for which
<SPAN
CLASS="SYSTEMITEM"
>relay</SPAN
> is the name of a known
Internet-DECnet relay.</P
></TD
></TR
></TABLE
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x-087-2-mail.delivery.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x-087-2-mail.routing.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>How Is Mail Delivered?</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x-087-2-mail.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>How Does Mail Routing Work?</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>