FW: error using default_fields in passwd-file

Michael Fox news at mefox.org
Fri Jun 24 01:10:22 UTC 2016


I didn't see a response.  Sending again and adding doveconf -n output.  

 

----

 

I'm trying to put virtual user mail in:
/var/vmail/<domain>/<user-local-part>

 

I tried setting the home field in the userdb to /var/vmail/%d/%n

But apparently variable expansion doesn't happen in the userdb because the
Dovecot LDA created the literal directory /var/vmail/%d/%n/Maildir

 

So then I tried  to use default_fields as shown here:
http://wiki2.dovecot.org/AuthDatabase/PasswdFile

 

So I tried:

 

userdb {

  driver = passwd-file

  args = username_format=%n /etc/dovecot/auth.d/%d/passwd

  default_fields = home=/var/vmail/%d/%n

}

 

But when I reload doveadm I get:

 

doveconf: Fatal: Error in configuration file /etc/dovecot/local.conf line
87: Unknown setting: default_fields

 

I tried override_fields:

 

userdb {

  driver = passwd-file

  args = username_format=%n /etc/dovecot/auth.d/%d/passwd

  override_fields = home=/var/vmail/%d/%n

}

 

And I get the same type of error:

 

doveconf: Fatal: Error in configuration file /etc/dovecot/local.conf line
87: Unknown setting: override_fields

 

What gives?

 

Michael

 

doveconf -n:

 

# 2.0.19: /etc/dovecot/dovecot.conf

# OS: Linux 3.13.0-86-generic i686 Ubuntu 12.04.5 LTS

auth_verbose = yes

disable_plaintext_auth = no

mail_gid = vmail

mail_location = maildir:~/Maildir

mail_uid = vmail

passdb {

  driver = pam

}

passdb {

  args = /etc/dovecot/deny-users

  deny = yes

  driver = passwd-file

}

passdb {

  args = username_format=%n /etc/dovecot/auth.d/%d/passwd

  driver = passwd-file

}

pop3_uidl_format = %08Xv%08Xu

protocols = pop3

service auth {

  unix_listener auth-userdb {

    mode = 0600

    user = vmail

  }

}

ssl = no

ssl_cert = </etc/ssl/certs/dovecot.pem

ssl_key = </etc/ssl/private/dovecot.pem

userdb {

  driver = passwd

}

userdb {

  args = username_format=%n /etc/dovecot/auth.d/%d/passwd

  driver = passwd-file

}

protocol lda {

  postmaster_address = postmaster at xxxxx

}

 



More information about the dovecot mailing list