Different Maildir Locations
Gabx
gabriel1 at tcpreset.net
Fri May 28 18:47:41 EEST 2021
On 5/28/21 4:30 PM, Eirik Rye wrote:
>
> /etc/dovecot/dovecot.conf:
>
> userdb {
> driver = passwd
> result_success = continue-ok
> }
> userdb {
> driver = passwd-file
> args = /etc/dovecot/override.passwd
> }
>
> This means that user information will first be looked up through the passwd driver (/etc/passwd), and then subsequently (because of "continue-ok") override any extra fields from the override file /etc/dovecot/override.passwd for any users listed in this file.
>
> With that said, the override file you created is also invalid. It should be something like this:
>
> /etc/dovecot/override.passwd:
>
> gabriel1:*::::::mail=~/Maildir
> user1:*::::::mail=~/user1/Maildir
> user2:*::::::mail=~/user2/mail
>
Looking at dovecot's logs 'passwd-file' was read
# dovecot: auth-worker(14095): Debug: passwd-file
/etc/dovecot/override.passwd: Read 3 users in 0 secs
# dovecot: auth-worker(14095): Debug: passwd(yamn): lookup
And userdb says:
# userdb out:
USER#0111#011user1#011system_groups_user=user1#011uid=1001#011gid=1001#011home=/home/user1
That's where dovecot looks for user1 maildir:
# maildir++: root=/home/user1/Maildir, index=, indexpvt=, control=,
inbox=/home/user1/Maildir
And inbox should be
# maildir++: root=/home/user1/user1/Maildir, index=, indexpvt=,
control=, inbox=/home/user1/user1/Maildir
Same for user2
My dovecot still can't find user1 and user2 maildir.
Instead gabriel1 is found because is where i said it is in mail_location
directive for namespace inbox, the default.
Some sort of per user root= inbox=
I come from procmail experience as lda but i'd like to do without it.
Gab
--
GPG fingerprint: 5A6A F742 ACEA C9A7 93A8 8D5E 7AEF 5A02 D080 89F7
Contact: xmpp://gabx@jabber.tcpreset.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x8ED8A7AD1473BC20.asc
Type: application/pgp-keys
Size: 3127 bytes
Desc: OpenPGP public key
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210528/0d866454/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210528/0d866454/attachment.sig>
More information about the dovecot
mailing list