Network Working Group J. Myers
Request for Comments: 2033 Carnegie Mellon
Category: Informational October 1996
Local Mail Transfer Protocol
1. Abstract
SMTP [SMTP] [HOST-REQ] and its service extensions [ESMTP] provide a mechanism for transferring mail reliably and efficiently. The design of the SMTP protocol effectively requires the server to manage a mail delivery queue.
Myers Informational [Page 1]
RFC 2033 LMTP October 1996 2. Conventions Used in this DocumentIn examples, "C:" and "S:" indicate lines sent by the client and server respectively.
3. Introduction and Overview
The design of the SMTP protocol effectively requires the server to manage a mail delivery queue. This is because a single mail transaction may specify multiple recipients and the final "." of the DATA command may return only one reply code, to indicate the status of the entire transaction. If, for example, a server is given a transaction for two recipients, delivery to the first succeeds, and delivery to the second encounters a temporary failure condition, there is no mechanism to inform the client of the situation. The server must queue the message and later attempt to deliver it to the second recipient.
TCP port 25 +-----------------+
---------------------->| | #########
| Queue |<># Mail #
TCP port 25 | Manager | # Queue #
<----------------------| | #########
+-----------------+
Local * ^ Local * Local
IPC * | IPC * IPC
* | *
* | *
* | *
V | V
Non-SMTP +----------+ +----------+
Protocol | Gateway | | Local | #########
<==============>| Delivery | | Delivery |>># Mail #
| Agent | | Agent | # Spool #
+----------+ +----------+ #########
The host's mail system has three independent, communicating subsystems. The first is a queue manager, which acts as a traditional SMTP agent, transferring messages to and from other hosts over TCP and managing a mail queue in persistent storage. The other two are agents which handle delivery for addresses in domains for which the host takes responsibility. One agent performs gatewaying to and from some other mail system. The other agent delivers the message into a persistent mail spool.
Myers Informational [Page 2]
RFC 2033 LMTP October 1996
It would be desirable to use SMTP over a local inter-process communication channel to transfer messages from the queue manager to the delivery agents. It would, however, significantly increase the complexity of the delivery agents to require them to manage their own mail queues.
4. The LMTP protocol
The LMTP protocol is identical to the SMTP protocol SMTP [SMTP] [HOST-REQ] with its service extensions [ESMTP], except as modified by this document.
Myers Informational [Page 3]
RFC 2033 LMTP October 1996 4.1. The LHLO, HELO and EHLO commandsThe HELO and EHLO commands of ESMTP are replaced by the LHLO command. This permits a misconfiguration where both parties are not using the same protocol to be detected.
4.2. The DATA command
In the LMTP protocol, there is one additional restriction placed on the DATA command, and one change to how replies to the final "." are sent.
Myers Informational [Page 4]
RFC 2033 LMTP October 1996
NOTE: in the above example, the domain names of both the client and
4.3. The BDAT command
If the server supports the ESMTP CHUNKING extension [BINARYMIME], a BDAT command containing the LAST parameter returns one reply for each previously successful RCPT command in the mail transaction, in the order that the RCPT commands were issued. Even if there were multiple successful RCPT commands giving the same forward-path, there must be one reply for each successful RCPT command. If there were no previously successful RCPT commands in the mail transaction, then the BDAT LAST command returns zero replies.
Myers Informational [Page 5]
RFC 2033 LMTP October 1996 5. Implementation requirementsAs LMTP is a different protocol than SMTP, it MUST NOT be used on the TCP service port 25.
6. Acknowledgments
This work is a refinement of the MULT extension, which was invented by Jeff Michaud and was used in implementing gateways to the Mail-11 mail system.
Myers Informational [Page 6]
RFC 2033 LMTP October 1996 7. References[8BITMIME] Klensin, J., et. al, "SMTP Service Extension for 8bit-MIME
9. Author's Address
John G. Myers Carnegie-Mellon University 5000 Forbes Ave. Pittsburgh PA, 15213-3890