Re: userdb passwd-file default_fields uid not expanding %variable

2015-03-02 Thread Tim Jones
> Putting aside the question, whether or not %d is/should be expanded in > default_fields = uid=%d gid=%d > couldn't or shouldn't you place the correct numerical ids in the file > anyway? The issue is, and maybe this was a bad requirement on my part, that each domains' mailbox is owned by the user

Re: userdb passwd-file default_fields uid not expanding %variable

2015-03-01 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 27 Feb 2015, Tim Jones wrote: userdb { args = username_format=%n /home/%d/mail_users default_fields = uid=%d gid=%d home=/home/%d/mail/%n mail=maildir:/home/%d/mail/%n driver = passwd-file } Every time I try to authenticate via imap, I g

Re: userdb passwd-file default_fields uid not expanding %variable

2015-02-27 Thread Tim Jones
First, sorry for the double post, not sure how that happened. Secondly, I should add the userdb error happens as soon as any connection attempt is map to the pop3\imap port, before a login command can be sent. Obviously, since no login is started, there will be no username from which to extract th

userdb passwd-file default_fields uid not expanding %variable

2015-02-27 Thread Tim Jones
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

userdb passwd-file default_fields uid not expanding %variable

2015-02-27 Thread Tim Jones
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