POP3 & IMAP inbox setting for virtual

Michael Fox news at mefox.org
Mon Aug 1 08:41:47 UTC 2016


Thanks Steffen.  I'll give that a try.


> >
> > I think you mean by %s.  Correct?
> 
> yes, %s = %{service}
> 
> >> So, generate a passwd-file with namespace/inbox/inbox, make a script to
> >> strip this settings from it and dump into another file. This script is
> to
> >> run each time, the main file changes (or by cron), in order to keep
> both
> >> files in sync.
> >>
> >> Then:
> >>
> >> userdb {
> >>    driver = passwd-file
> >>    args = username_format=%n /etc/passwd.%s
> >>   # default_fields = uid=vmail gid=vmail home=/home/vmail/%u
> >> }
> >>
> >> Then symlink /etc/passwd.POP3 to the file with and /etc/passwd.IMAP
> (and
> >> any other that generates not-found errors) to the file without the
> virtual
> >> namespace.
> >
> > Hmm. But the goal is for both POP3 and IMAP to see both namespaces.
> POP3
> > would see both via the virtual namespace.  So, following the idea of
> > passwd-file per %s, it seems like I should do something like:
> >
> > .../passwd.pop3:
> > 	Set the "extra fields" = userdb_namespace/virtual/inbox=yes
> >
> > .../passwd.imap:
> > 	Set the "extra fields" = userdb_namespace/inbox/inbox=yes
> >
> > Does that make sense?
> 
> yes :-)
> 



More information about the dovecot mailing list