home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
482.SMTP.DOC
< prev
next >
Wrap
Text File
|
1987-08-26
|
5KB
|
99 lines
Documentation for Installing SMTP Functionality for the KA9Q TCP/IP Package
By Bdale Garbee, N3EUA - last revised 870826
As supplied, the SMTP server and client make assumptions about the
disk space available to them. In particular, the file handling portion of
the client and server will need to be modified heavily if used on any
operating system other than PC-Dos or MS-Dos. Sorry.
To achieve minimum functionality, you should:
- create directories \spool\mail and \spool\mqueue on the default
disk used when running net.exe... the mail directory is used by
the server for storing incoming mail, the mqueue directory is
where the client looks to find outbound messages that need to
be delivered.
There is one command in net.exe that relates to the SMTP client operation.
It is 'smtp'. Issuing this command will cause the client to attempt to
deliver mail immediately. Normally, the client will fire up 15mins after
the end of the previous invocation to try and process outbound mail. The
smtp command is primarily a debugging tool, and should be used as such.
File Formats:
Incoming mail for users on the current host gets placed in 'mailbox' files
in the \spool\mail directory. The name of the file is based on the user
name given by the sending SMTP agent. These are simple text files, with
new messages appended to the end. If a mailbox file does not exist, the
server will create it automagically. Messages in the files are in RFC822
format, with new messages appended to the end. The first line of each
message will always start with the token 'Received:', quotes not included.
This line is added by the server to indicate the date and time the message
was received, and the host it was received from.
Outgoing mail messages consist of two files each in the \spool\mqueue
directory. The names of the two files will be of the form <integer>.WRK
and <integer>.TXT, where integer is the sequence number of the message
relative to this machine. The file sequence.seq in the mqueue directory
contains the current sequence number for reference by the mail user
interface. The .TXT file contains the data portion of the SMTP transaction,
in full RFC822 format. The .WRK file consists of 3 lines, as follows:
- the hostname of the destination system
- the full sender address, in user@host format.
- the full destination address, in user@host format.
The mailer does not yet support multiple recipients; when it does, the .wrk
file format will contain extra destination address lines, one for each
additional recipient.
Bugs and Limitations:
The SMTP server does not allow forwarding. In a perfect world, forwarding
is a crock. Since we do not live in a perfect world, some specialized
forward capability will probably be added eventually... though we'd like
to avoid it! Better to just put a bsd4.X system on the air and let Sendmail
handle the grody work! :-)
The SMTP client only understands a single destination address in the TO
line. This is a legal minimal implementation of the standard, but will
eventually change. Note that the format of the .WRK file will change when
this does, of necessity.
Error returns from the remote server are not properly handled. The mailer
will keep trying to deliver the mail each time the smtp command is issued
(or invoked automatically by the timer). There is as yet no mechanism for
"bouncing" mail back to the sender when it cannot be sent.
The smtp client (mail sender) code in net.exe now tries to connect to
all destination hosts simultaneously. If there is a lot of mail in
the outbound queue, this may cause problems. In particular, try using
the FILES= parameter in the MS-DOS config.sys file to allow net.exe to
have more than the default 8 files open at once.
For More Information:
For documentation on the mail user interface for PC compatibles, read the
BM.DOC file.
The SMTP specification is RFC821. The Format for text messages (including
the headers) is in RFC822. RFC819 discusses hostname naming conventions,
particularly domain naming.
I can be contacted at the following address, and would greatly appreciate
feedback on the SMTP support. In particular, if anyone makes any changes
to the code, please send me a copy for inclusion in the distribution...
Bdale Garbee, N3EUA
1433 Territory Trail
Colorado Springs, CO 80919
arpa: pitt!winfree!bdale@cadre.dsl.pittsburgh.edu
bellcore!winfree!bdale@flash.bellcore.com
uucp: {bellcore,crash,hpcsma,pitt,usafa,vixie}!winfree!bdale
fido: sysop 128/19, the HIP Shack
packet: n3eua@wb0blv Colorado Springs