POP3 & IMAP inbox setting for virtual

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Mon Aug 1 06:21:46 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 29 Jul 2016, Michael Fox wrote:

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

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 :-)

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBV57qe3z1H7kL/d9rAQKX0Qf+KN9L0mgDLJTB27yrtJc9XmOifXqyzUGS
D49BALfSOv5aRXUoIW0Y7cRVYbcPPyeJPN5jdWeg93Hbljk8VryLh0kGGuU+y8YC
fToNd/rIyBVyX0nv4a4mxhbnxdwt5isSRzpr5aXANjJsUtJaCNqg7rs3l5vnvd7q
gWDiM9XkbKkxWVmwpVR5vXio8EMNNCdtNQWsdBxqqNvpHvnnOGu1NWyO20IHiK/b
NdPBxBImML8oxEmEGbIsbDs8wRefjXNak5RTAfIMpuQyb/31zwSIeOHWkLCGU9EQ
kLVQbl/lnbMxLcxVK37B3Q9TlbyFAWzCGf00FCZnyv0loGw2OVAV9w==
=QrF6
-----END PGP SIGNATURE-----


More information about the dovecot mailing list