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

Could somebody be able to explain to me what the various unix_listners do in the Dovecot 2.x configuration (specifically 10-master.conf).

Currently, for postfix to use to deliver mail, I have:

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

and for auth I have:

service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666

  unix_listener auth-userdb {
    mode = 0666
    user = vmail

So what does each one specifically do? Also, does somebody know of a resource that can explain the mode setting?

share|improve this question
up vote 0 down vote accepted

The mode line in both instances specifies the file permissions of the various files created for each service. In the case of 0660 your specifying that the file can be read and written to by the owner and group (both postfix in the lmtp case) and no access for local users that are not a) postfix and b) not members of the postfix group, essentially everyone else.

In the case of your configuration LMTP is acting as a service endpoint for dovecot and is being created as a UNIX IPC Socket in the /var/spool/postfix/private directory owned by postfix, group id of postfix and srw-rw---- as the permissions.

The auth service is creating two listeners, both UNIX IPC Sockets; the first in /var/spool/postfix/private named auth and the second is a special socket called auth-userdb used to gather the uid, gid and home directory of the recipient. Both of these files will have the permissions srw-rw-rw-, the latter being owned by vmail. The process that runs the local delivery agent will be the owner of the auth socket.

Hopefully this helps, I've not used LMTP much nor Dovecot for that matter but this is what I could gather from the documentation on their wiki. The permissions and sockets are fairly standard.

share|improve this answer
Exactly what I was looking for! Cheers, d34dh0r53.. – Matthew Brown Nov 13 '11 at 20:14

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.