Local Mail Transfer Protocol
Das Local Mail Transfer Protocol (LMTP) ist ein Kommunikationsprotokoll, das vom Simple Mail Transfer Protocol (SMTP) abgeleitet ist und verbesserter Zustellung von E-Mails in Postfächer dient.
Anlass
Eine an zwei Adressaten adressierte E-Mail kann an den einen zustellbar sein und an den anderen nicht, beispielsweise weil der eine existiert und der andere nicht. Traditionell per Kommandozeile gespeiste Mail Delivery Agents lassen nur einen Rückgabewert für alle Adressaten zusammen zu, sodass Teilerfolge unklare Problemlagen hinterlassen. Delivery Status Notifications gestalten sich schwierig.
Lösungsansatz
Im LMTP ist auch im Unterschied zum SMTP für jeden einzelnen Adressaten eine eigene Rückmeldung über Erfolg oder Misserfolg vorgesehen.[1] Dabei muss die Reihenfolge des Clients eingehalten werden. Die erweiterten Fehlercodes vom erweiterten SMTP (ESMTP) sind obligatorisch. Dem sendenden Mail Transfer Agent wird so möglich, differenziert und gezielt auf Fehlschläge zu reagieren.
Weitere wesentliche Unterschiede zum SMTP
- Wide Area Networks nicht empfohlen[1]
- Server ohne Warteschlange[1]
- Port 25 ausgeschlossen[1]
- Sitzungsbeginn mit LHLO statt EHLO oder HELO[1]
Beispiel
Zur besseren Verständlichkeit ist das folgende Beispiel mit Kommentaren erweitert, die nicht zum Protokoll gehören, mit # beginnen und sich bis zum Ende der Zeile erstrecken.
< 220 server.tld LMTP server ready > LHLO client.tld # Client sendet LHLO statt HELO/EHLO < 250-server.tld < 250-PIPELINING < 250 SIZE > MAIL FROM:<[email protected]> < 250 OK > RCPT TO:<[email protected]> # 1. akzeptiertes RCPT < 250 OK > RCPT TO:<[email protected]> # nicht akzeptiertes RCPT < 550 No such user here > RCPT TO:<[email protected]> # 2. akzeptiertes RCPT < 250 OK > DATA < 354 Start mail input; end with <CRLF>.<CRLF> > # Client sendet Mail > . < 250 <[email protected]> OK # Zustellung an [email protected] erfolgreich < 452 <[email protected]> is temporarily over quota # Zustellung an [email protected] temporär nicht möglich, # der Client kann es später erneut versuchen > QUIT < 221 server.tld closing connection
Software
LMTP wird in mehreren Softwarepaketen unterstützt, darunter
Einzelnachweise
- ↑ a b c d e J. Myers: RFC: – Local Mail Transfer Protocol. Oktober 1996 (englisch).
- ↑ LMTP Server — Dovecot documentation. Abgerufen am 15. Januar 2025.
- ↑ 28. The lmtp transport. In: Specification of the Exim Mail Transfer Agent. Abgerufen am 15. Januar 2025.
- ↑ Postfix manual - smtp(8). Abgerufen am 15. Januar 2025.
- ↑ a b Bryan Costales, George Jansen, Claus Assmann, Gregory Neil Shapiro: sendmail 8.13 Companion. O’Reilly, 2004, ISBN 978-0-596-00845-1, Chapter 4 (oreilly.com).
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.