This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 10 and 11
Revision 10 as of 2012-10-20 13:22:08
Size: 1241
Editor: PascalVolk
Comment: None of the Postfix services runs chrooted by default.
Revision 11 as of 2013-03-09 02:15:57
Size: 1300
Editor: mail
Comment: If you omit postmaster_address, you get an config error and it wont start
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
   mode = 0660    mode = 0600
Line 28: Line 28:
  postmaster_address = postmaster@domainname # required

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 = 0600
   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 {
  postmaster_address = postmaster@domainname   # required
  mail_plugins = quota sieve

Postfix 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 ( as when mail_location = maildir:~/.maildir ) :

mailbox_transport = lmtp:unix:private/dovecot-lmtp

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