Questions tagged [lmtp]

The Local Mail Transfer Protocol (LMTP) is a derivative of ESMTP, the extension of the Simple Mail Transfer Protocol.

enter link description here

The Local Mail Transfer Protocol (LMTP) is a derivative of ESMTP, the extension of the Simple Mail Transfer Protocol. It is defined in RFC 2033.1

LMTP is designed as an alternative to normal SMTP for situations where the receiving side does not have a mail queue, such as a mail storage server acting as a Mail Delivery Agent. Mail queues are an inherent requisite of SMTP. In situations in which mail queues are not possible, LMTP is desirable, since a mail storage server should manage only its mail store without having to allocate more storage for a mail queue. This is not possible with SMTP when there are multiple recipients for a mail message. SMTP can only indicate successful delivery or failure for all or none of the recipients, creating the need for a separate queue to handle the failed recipients. LMTP, on the other hand, can indicate success or failure to the client for each recipient, allowing the client to handle the queueing instead. The client in this case would typically be an Internet-facing mail gateway. LMTP is not intended for use over wide area networks. In other words, the MTA still handles all outgoing mail, including the mail stream from the LMTP, to another mail server located somewhere on the Internet.

LMTP is an Application Layer protocol of the Internet Protocol Suite. It uses a Transmission Control Protocol (TCP) transport like SMTP, but must not use port number 25, the well-known port for SMTP.

LMTP conversation syntax is based on the same commands as Extended SMTP with the following exceptions:

ESMTP's EHLO verb is replaced with LHLO.

ESMTP requires a single status for the entire message body. LMTP requires a response for each previously successful RCPT command. That is, in case of multiple recipients, after the body of the message has been transmitted, LMTP can still fail for some recipient while succeeding for the others. With this facility, LMTP can fail if a user is over quota without the burden of generating Bounce messages.

The key difference is that LMTP will reject a message if it is not immediately deliverable to its final destination. This removes the need for a mail queue. For this reason, LMTP is not run on the standard TCP port of SMTP.

11 questions
2
votes
1 answer

How does e-mail go from SMTP to IMAP?

I'm working on programming an IMAP-server, but running into one question: where do the emails come from? I always thought the basic course of events was this: Sender-client sends e-mail to SMTP server (host A) using SMTP-protocol; SMTP server (host…
Etienne Bruines
  • 2,848
  • 3
  • 17
  • 25
1
vote
0 answers

Sieve filter not running

I am trying to automatically move mails detected as spam to the junk folder but my sieve filters are not running. I can send and receive mails and mails are detected as spam. X-Virus-Scanned: amavisd-new at ... X-Spam-Flag: YES X-Spam-Score:…
1
vote
1 answer

Using Dovecot LMTP as LDA

I am trying to set up a postfix mail server with dovecot as MDA. According to this link to set up dovecot to use LMTP I have done the following config. postfix main.cf virtual_transport = lmtp:unix:private/dovecot-lmtp master.cf submission inet n …
ankitrokdeonsns
  • 638
  • 4
  • 18
0
votes
1 answer

failed to stat sieve storage path: nonsense path

I have a mail server with postfix and dovecot installed. Postfix is configured to use dovecot's lmtp service in order to apply some sieve scripts. mailbox_transport = lmtp:unix:private/dovecot-lmtp And this seems to work so far. But when my server…
Ilka
  • 50
  • 8
0
votes
2 answers

What implementations of SMTP typically do with the mail data in response to RSET after DATA?

Here is what I gathered from the RFC 5321: 4.1.1.5. RESET (RSET) This command specifies that the current mail transaction will be aborted. Any stored sender, recipients, and mail data MUST be discarded, and all buffers and state tables cleared. …
user6627712
0
votes
2 answers

postfix throwing Recipient address rejected error when configured with virtual_mailbox_domains

I have configured postfix to send received email to local LMTP agent using virtual_mailbox_domains parameter it works fine if the received email is received for FQDN of the machine running postfix but if it's for the IP address of the machine then…
mbz_slk
  • 231
  • 4
  • 15
0
votes
1 answer

How is it possible to deliver email from qmail to a LMTP server?

I have a qmail server, which cannot be changed into anything else, because it is part of a much larger system. It should route all emails to a Zarafa server, which only uses the LMTP protocol and to which I don't have physical access. How is it…
Tom
  • 6,991
  • 13
  • 60
  • 78
0
votes
1 answer

lmtp seemingly unsupported by postfix

I'm setting up my mail server and I followed that tutorial https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql to help me doing so. Everything went fine during the setup and configuration but when it went to test problem…
0
votes
1 answer

How to deliver an email to a large number of local users directly via doveadm

How to send an email to a large number of local users(about 100K)? Our mail server uses postfix and dovecot. It takes too long to send the email through SMTP. Is there any solution to deliver the email to all local user mailboxes directly? dovecot…
0
votes
0 answers

how to pass folder that contains whitesapce to RCTP to

I used LMTP command like RCTP to: "uid+folder@domain". The deliver is succeeded when I use the folder name without any whitespace inside. RCTP to: But I get "500 5.5.2 Syntax error in recipient address" when I use the…
kelly
  • 41
  • 3
-1
votes
1 answer

How to receive email? Node app/ubuntu server

I can setup my node app to send email using nodemailer but I want to be able to receive email to my domain, is there a way that I can do that? Thank you
Athomas1
  • 39
  • 5