POP3 & IMAP inbox setting for virtual

Michael Fox news at mefox.org
Fri Jul 29 23:31:01 UTC 2016


Thanks Steffen.

> you can select the passwd-file by %u , e.g. see the first example of
> passdb's on http://wiki2.dovecot.org/AuthDatabase/PasswdFile

I think you mean by %s.  Correct?

 
> 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?

Michael




More information about the dovecot mailing list