Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question

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.

share|improve this answer

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 /var/spool/postfix/ directory). So in dovecot set the LMTP service like this

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

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.