This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 1 and 2
Revision 1 as of 2010-06-15 20:06:37
Size: 1298
Editor: TimoSirainen
Revision 2 as of 2010-06-15 20:15:26
Size: 1341
Editor: PascalVolk
Comment: listen only on loopback/lan addresses
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Line 15: Line 15:
    address = ::1

LMTP Server

. Most of the LMTP server configuration is identical to LDA. The main difference is that dovecot-lda starts as a binary from command line, while LMTP is another process started by Dovecot's master process.


You can configure LMTP to be listening on TCP or UNIX sockets:

# add lmtp to protocols, otherwise its listeners are ignored
protocols = imap pop3 lmtp

service lmtp {
  inet_listener lmtp {
    address = ::1
    port = 24

  unix_listener lmtp {
    #mode = 0666

The UNIX listener on $base_dir/lmtp is enabled by default when protocols setting contains lmtp.


Unfortunately LMTP process currently needs to run as root, and only temporarily drop privileges to users. Otherwise it couldn't handle mail deliveries to more than a single user with different UID. If you're using only a single global UID/GID, you can improve security by running lmtp processes as that user:

service lmtp {
  user = vmail

LMTP Proxying

It's possible to use Dovecot LMTP server as a proxy to remote LMTP or SMTP servers. The configuration is similar to IMAP/POP3 proxying, but you'll need to tell Dovecot LMTP to issue passdb lookups:

lmtp_proxy = yes

None: LMTP (last edited 2019-09-11 14:29:21 by MichaelSlusarz)