4. Example
Suppose host A.D.COM sends mail to host C.D.COM. Let's suppose that the 6 letter names for these hosts are aname and dname, and that the intermediate host to be routed through has name bname.
The user on A types
mail [email protected]
The user interface creates a file such as
Date: 9 Jan 1985 8:39 EST
From: [email protected] (My Name)
Subject: sample message
To: [email protected]
This is a sample message
and passes it to the transport mechanism with a command such as
sendmail [email protected] < file
The transport mechanism looks up a route to c.d.com. It does not find c.d.com in its database, so it looks up d.com, and finds that the path is bname!dname!%s, and that c.d.com is a class 3 host. Plugging in c.d.com!user, it gets the path bname!dname!c.d.com!user. (If it had found c.d.com with path bname!cname!%s, it would have omitted the domain from the resulting path: bname!cname!user, since it is not sure whether the destination host is class 1, 2, or 3.)
It prepends a From_ line and passes it to uux:
uux - bname!rmail dname!c.d.com!user < file2
where file2 contains
From A.D.COM!user Wed Jan 9 12:43:35 1985 remote from aname Date:
9 Jan 1985 8:39 EST
From: [email protected] (My Name)
Subject: sample message
To: [email protected]
This is a sample message
(Note the blank line at the end of the message - at least one blank line is required.) This results in the command
rmail dname!c.d.com!user
running on B. B prepends its own from line and passes the mail along:
uux - dname!rmail c.d.com!user < file3
where file3 contains
From nuucp Wed Jan 9 12:43:35 1985 remote from bname >From
A.D.COM!user Wed Jan 9 11:21:48 1985 remote from aname Date: 9
Jan 1985 8:39 EST
From: [email protected] (My Name)
Subject: sample message
To: [email protected]
This is a sample message
The command
rmail c.d.com!user
is run on C, which stacks the From_ lines
From bname!aname!A.D.COM!user Wed Jan 9 12:43:35 1985 Date: 9
Jan 1985 8:39 EST
From: [email protected] (My Name)
Subject: sample message
To: [email protected]
This is a sample message
and stores the message locally, probably in this same format.