5.2. MTP-Antworten
Antworten auf MTP-Befehle sind darauf ausgelegt, die Synchronisation von Anforderungen und Aktionen beim Mailtransfer sicherzustellen und zu gewährleisten, dass der Sender-MTP stets den Zustand des Empfänger-MTP kennt. Jeder Befehl muss genau eine Antwort erzeugen. Außerdem müssen manche Befehle in Folge auftreten, etwa MRSQ T->MAIL->MRCP oder MRSQ R->MRCP->MAIL.
Die Einzelheiten der Befehl-Antwort-Abfolge werden in den Abschnitten 5.3 und 5.4 zu Ablauf und Zustandsdiagrammen ausdrücklich dargelegt.
Eine MTP-Antwort besteht aus einer dreistelligen Zahl (übertragen als drei alphanumerische Zeichen), gefolgt von einem Text. Die Zahl ist für Automaten gedacht, die damit bestimmen, in welchen Zustand sie als Nächstes übergehen; der Text ist für den menschlichen Benutzer bestimmt. Es ist beabsichtigt, dass die drei Ziffern genug codierte Information enthalten, damit der Sender-MTP den Text nicht auswerten muss und ihn je nach Bedarf verwerfen oder an den Benutzer weitergeben kann. Insbesondere kann der Text vom Empfänger abhängen, sodass es für jeden Antwortcode voraussichtlich unterschiedliche Texte gibt. Eine weitere Erläuterung der Vergabe der Antwortcodes findet sich in Anhang E zur Theorie der Antwortcodes. Formal ist eine Antwort definiert als die Folge: ein dreistelliger Code, <SP>, eine Textzeile und <CRLF>.
5.2.1. Antwortcodes nach Funktionsgruppen
200 Command okay
201 Command okay, action aborted
500 Syntax error, command unrecognized
[This may include errors such as command line too long]
501 Syntax error in parameters or arguments
502 Command not implemented
503 Bad sequence of commands
504 Command parameter not implemented
211 System status, or system help reply
214 Help message
[Information on how to use the receiver or the meaning of a
particular non-standard command; this reply is useful only
to the human user]
215 <scheme> is the preferred scheme
120 <host> Service ready in nnn minutes
220 <host> Service ready for new user
221 <host> Service closing transmission channel
421 <host> Service not available, closing transmission channel
[This may be a reply to any command if the service knows it
must shut down]
151 User not local; will forward to <user>@<host>
152 User unknown; mail will be forwarded by the operator
250 Requested mail action okay, completed
450 Requested mail action not taken: mailbox unavailable
[E.g., mailbox busy]
550 Requested action not taken: mailbox unavailable
[E.g., mailbox not found, no access]
451 Requested action aborted: local error in processing
452 Requested action not taken: insufficient system storage
552 Requested mail action aborted: exceeded storage allocation
[For current mailbox location]
553 Requested action not taken: mailbox name not allowed
[E.g., mailbox syntax incorrect]
354 Start mail input; end with <CRLF>.<CRLF>
5.2.2. Antwortcodes in numerischer Reihenfolge
120 <host> Service ready in nnn minutes
151 User not local; will forward to <user>@<host>
152 User unknown; mail will be forwarded by the operator
200 Command okay
201 Command okay, action aborted
211 System status, or system help reply
214 Help message
[Information on how to use the receiver or the meaning of a
particular non-standard command; this reply is useful only
to the human user]
215 <scheme> is the preferred scheme
220 <host> Service ready for new user
221 <host> Service closing transmission channel
250 Requested mail action okay, completed
354 Start mail input; end with <CRLF>.<CRLF>
421 <host> Service not available, closing transmission channel
[This may be a reply to any command if the service knows it
must shut down]
450 Requested mail action not taken: mailbox unavailable
[E.g., mailbox busy]
451 Requested action aborted: local error in processing
452 Requested action not taken: insufficient system storage
500 Syntax error, command unrecognized
[This may include errors such as command line too long]
501 Syntax error in parameters or arguments
502 Command not implemented
503 Bad sequence of commands
504 Command parameter not implemented
550 Requested action not taken: mailbox unavailable
[E.g., mailbox not found, no access]
552 Requested mail action aborted: exceeded storage allocation
[For current mailbox location]
553 Requested action not taken: mailbox name not allowed
[E.g., mailbox syntax incorrect]