Skip to main content

Declarative Specifications

MINIMUM IMPLEMENTATION​

In order to make MTP workable without needless error messages, the following minimum implementation is required for all receivers:

COMMANDS -- QUIT
MAIL
NOOP

In terms of FTP, the values of the transfer parameters must be:

TYPE -- ASCII
MODE -- STREAM
STRU -- FILE-STRUCTURE

All hosts must use the above values for mail transfer.

CONNECTIONS​

The receiver-MTP shall "listen" on Port L. The sender-MTP shall initiate the TCP/NCP control connection. The control connection consists of a full-duplex connection under TCP; it is two simplex connections under NCP. Receiver- and sender- MTPs should follow the conventions of the TELNET Protocol as specified in the ARPA Internet Protocol Handbook. Receivers are under no obligation to provide for editing of command lines and may specify that it be done in the sender host. The control connection shall be closed by the receiver at the sender's request after all transfers and replies are completed.

SEQUENCING OF COMMANDS AND REPLIES​

The communication between the sender and receiver is intended to be an alternating dialogue. As such, the sender issues an MTP command and the receiver responds with a prompt primary reply. The sender should wait for this initial primary success or failure response before sending further commands.

Certain commands require a second reply for which the sender should also wait. These replies may, for example, report on the progress or completion of mail transfer. They are secondary replies to mail transfer commands.

One important group of informational replies is the connection greetings. Under normal circumstances, a receiver will send a 220 reply, "awaiting input", when the connection is completed. The sender should wait for this greeting message before sending any commands. If the receiver is unable to accept input right away, it should send a 120 "expected delay" reply immediately and a 220 reply when ready. The sender will then know not to hang up if there is a delay.

Note: all the greeting type replies have the official name of the server host as the first word following the reply code.

The table below lists alternative success and failure replies for each command. These must be strictly adhered to; a receiver may substitute text in the replies, but the meaning and action implied by the code numbers and by the specific command reply sequence cannot be altered.

COMMAND-REPLY SEQUENCES​

In this section, the command-reply sequence is presented. Each command is listed with its possible replies; command groups are listed together. Preliminary replies are listed first (with their succeeding replies indented under them), then positive and negative completion, and finally intermediary replies with the remaining commands from the sequence following. The 421 reply (service not available, closing control connection) may be given at any point if the MTP-receiver knows it must shut down. This listing forms the basis for the state diagrams, which will be presented separately.

CONNECTION ESTABLISHMENT
120
220
220
421
MAIL ACTION COMMANDS
MAIL
151, 152
354
250
451, 552
354
250
451, 552
450, 550, 452, 553
500, 501, 502, 421
MRSQ
200, 215
500, 501, 502, 421
MRCP
151, 152
200
200
450, 550, 452, 553
500, 501, 502, 503, 421
QUIT
221
INFORMATIONAL COMMANDS
HELP
211, 214
500, 501, 502, 421
MISCELLANEOUS COMMANDS
NOOP
200
500 421