I would like to create a dovecot lmtp listener under /var/spool/postfix/private/. Because postfix runs chrooted by default under debian.
How can I do this?
You can't do this. LMTP is a network protocol that uses TCP/IP for data exchange. What you describe is a Unix socket, but this is not applicable for LMTP.
Contrary with mailq answer, actually you can do it via Dovecot version 2.0 released at August 2010. The documentation can be found here: Postfix and Dovecot LMTP. To preventing link-rot answer, here the summary of that page
In debian postfix run with chroot, so you need place LMTP socket in postfix queue directory (usually in
The final step is to tell Postfix to use this socket for final delivery, in this case in a virtual user scenario:
For a non virtual user setup ( as when mail_location = maildir:~/.maildir ) :