This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 5 and 6
Revision 5 as of 2010-09-07 20:41:11
Size: 1098
Comment: Added Quota and Sieve plugin references.
Revision 6 as of 2011-08-11 23:39:50
Size: 1232
Editor: pool-98-110-187-187
Comment:
Deletions are marked like this. Additions are marked like this.
Line 38: Line 38:

For a non virtual user setup [ like mail going to $HOME/.maildir ] :
{{{
mailbox_transport = lmtp:unix:private/dovecot-lmtp
}}}

Postfix and Dovecot LMTP

Starting with Dovecot 2.x a LMTP-Server has been added.

Basic Configuration

The first step is to enable its stack via /etc/dovecot/dovecot.conf

!include conf.d/*.conf
protocols = imap lmtp

Socket configuration

The actual socket is configured in /etc/dovecot/conf.d/10-master.conf. The LMTP service can be bound to both INET or Unix sockets. In this example a Unix socket is placed inside the Postfix spool with appropriate permissions set:

service lmtp {
 unix_listener /var/spool/postfix/private/dovecot-lmtp {
   group = postfix
   mode = 0660
   user = postfix
  }
}

Plugin Support

Plugin support can be enabled at protocol level via /etc/dovecot/conf.d/20-lmtp.conf, for Quota and Sieve here:

protocol lmtp {
  mail_plugins = quota sieve
}

Postfix main.cf Configuration

The final step is to tell Postfix to use this socket for final delivery, in this case in a virtual user scenario:

virtual_transport = lmtp:unix:private/dovecot-lmtp

For a non virtual user setup [ like mail going to $HOME/.maildir ] :

mailbox_transport = lmtp:unix:private/dovecot-lmtp

None: HowTo/PostfixDovecotLMTP (last edited 2018-09-07 01:43:37 by modemcable095)