userdb passwd-file default_fields uid not expanding %variable
Hi all,
I'm trying to set up a very simple shared mail server, where each 'domain' is a system user, i.e. 'example.com' is a real user with /home/example.com/, a uid of 5001 (and gid 'example.com' of 5001). Each domain\user has their own maildir inside their home, and a plain passwd-file with the virtual mail users associated with that domain.
Version & config info:
Every time I try to authenticate via imap, I get the error
<timestamp> <host> dovecot: auth: Fatal: passwd-file userdb: Invalid uid: %d
If I put fixed a uid and gid in the userdb default_fields line:
default_fields = uid=example.com gid=example.com home=/home/%d/mail/%n mail=maildir:/home/%d/mail/%n
authentication passes without a problem, but of course, only for users of example.com.
Checking the wiki (http://wiki2.dovecot.org/UserDatabase#Userdb_settings) clearly states that the default_fields values support %variables, so I'm not sure if I'm missing some other config required for this to work.
Many thanks in advance,
[image: Fon] <http://www.fon.com/>Tim JonesSoftware Development+34 612345678 C/ Quintanavides 15, Edificio 2, Planta 1ª Parque Empresarial Vía Norte de Metrovacesa Las Tablas 28050 MadridSkype: tim.jones.fonAll information in this email is confidential <http://corp.fon.com/legal/email-disclaimer>
participants (1)
-
Tim Jones