[Dovecot] 1.1 master auth not expanding static userdb variables

Andrew Roberts amr at noom.org
Mon Mar 10 06:18:15 EET 2008


Timo Sirainen wrote:
> On Sat, 2008-03-08 at 13:21 -0800, Andrew Roberts wrote:
>> Dovecot is configured with static userdb 
>> and args = user=%Lu uid=206 gid=206 home=/var/mailhomes/%Lu, which takes 
>> care of making sure the username is lowercase.  All of this has been 
>> working fine for some time with dovecot-1.0.
>>
>> After upgrading to 1.1_rc2, however, deliver creates a maildir named "%Lu" 
>> and delivers all mail for all users to it.  
> 
> Is the %Lu from home=/var/mailhomes/%Lu user from user=%Lu? Do either of
> them get expanded correctly? dovecot-auth should already do the %Lu
> expansion, not deliver/master. Set auth_debug=yes and see what it shows
> in "Master out" line?

It looks like dovecot-auth is doing the right thing.

Mar  9 21:08:17 milne dovecot: auth(default): master in: USER   1 
aroberts at noom.org     service=deliver
Mar  9 21:08:17 milne dovecot: auth(default): master out: USER  1 
aroberts at noom.org     uid=206 gid=206 
home=/var/mail/mailhome/aroberts at noom.org 
mail=maildir:/var/mail/aroberts at noom.org

Here's the output of dovecot -n
# 1.1.rc3: /etc/dovecot/dovecot.conf
protocols: imaps imap managesieve
listen(default): 127.0.0.1:143
listen(imap): 127.0.0.1:143
listen(managesieve): 127.0.0.1:2000
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(managesieve):
ssl_cert_file: /etc/ssl/dovecot/imapd.crt
ssl_key_file: /etc/ssl/dovecot/imapd.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(managesieve): no
valid_chroot_dirs: /var/mail
first_valid_uid: 206
last_valid_uid: 206
first_valid_gid: 206
last_valid_gid: 206
mail_location: maildir:/var/mail/%Lu
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_plugins(default): acl
mail_plugins(imap): acl
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/managesieve
imap_client_workarounds(default): outlook-idle
imap_client_workarounds(imap): outlook-idle
imap_client_workarounds(managesieve):
sieve_storage(default):
sieve_storage(imap):
sieve_storage(managesieve): ~/sieve
sieve(default):
sieve(imap):
sieve(managesieve): ~/.dovecot.sieve
namespace:
   type: private
   separator: .
   location: maildir:/var/mail/%Lu
   inbox: yes
   list: yes
   subscriptions: yes
namespace:
   type: public
   separator: .
   prefix: shared.
   location: 
maildir:/var/mail/shared:CONTROL=/var/mail/mailhome/%Lu/shared:INDEX=/var/mail/mailhome/%Lu/shared
   list: yes
   subscriptions: yes
auth default:
   mechanisms: PLAIN LOGIN
   default_realm: noom.org
   user: postmaster
   debug: yes
   passdb:
     driver: ldap
     args: /etc/dovecot/dovecot-ldap.conf
   userdb:
     driver: static
     args: allow_all_users=yes user=%Lu uid=206 gid=206 
home=/var/mail/mailhome/%Lu mail=maildir:/var/mail/%Lu
   socket:
     type: listen
     client:
       path: /var/spool/postfix/private/auth
       mode: 432
       user: postfix
       group: postfix
     master:
       path: /var/run/dovecot/deliver-auth
       mode: 384
       user: vmail
       group: vmail
plugin:
   acl: vfile


More information about the dovecot mailing list