On 2.8.2012, at 19.10, Bret Martin wrote:

> I'm trying to set up an alternate user with a different inbox using 
> passwd-file and userdb extra fields and the extra field settings don't seem 
> to be taking effect. I've used auth_debug and mail_debug and I'm unclear how 
> I can further troubleshoot this.
> 
> Is it possible to have inbox=yes in one namespace globally and then override 
> this for one user by setting inbox=no for that namespace and then inbox=yes 
> for another?

Yes.

> My doveconf -n is below. I would like to have inbox=yes for the inbox 
> namespace, inbox=no for the virtual namespace, and then be able to invert 
> these for selected users using userdb extra fields. My attempt at doing this 
> so far looks like
> 
> bam-ios:[REDACTED]:500:500::/home/bam::user=bam namespace/inbox/inbox=no 
> namespace/virtual/inbox=yes

Problem 1: The userdb fields need to be prefixed in passwd-file with "userdb_" 
prefix, so "userdb_namespace/inbox/inbox=no".

Problem 2: You change the username from bam-ios to bam, which results in:

> Aug  2 11:37:29 new-miranda dovecot: auth: 
> passwd-file(bam,64.119.157.114,<Rgx2MErG4wBAd51y>): unknown user
> Aug  2 11:37:29 new-miranda dovecot: auth: Debug: 
> passwd(bam,64.119.157.114,<Rgx2MErG4wBAd51y>): lookup

So the userdb fields aren't looked up from passwd-file anyway.

Reply via email to