This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 9 and 10
Revision 9 as of 2012-10-20 07:23:06
Size: 1353
Editor: c83-254-81-155
Comment:
Revision 10 as of 2012-10-20 13:22:08
Size: 1241
Editor: PascalVolk
Comment: None of the Postfix services runs chrooted by default.
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
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. This is because Postfix lmtp process is chrooted by default and cannot access files outside /var/spool/postfix. 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:

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 ( 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)