two different mail_location

Gabx gabriel1 at tcpreset.net
Tue Oct 12 19:23:13 EEST 2021


On 10/8/21 9:13 PM, Gabx wrote:
> On 10/6/21 10:11 AM, Aki Tuomi wrote:
> 
>>
>>
>> Return `mail=maildir:/var/%u` from auth. See 
>> https://doc.dovecot.org/configuration_manual/authentication/user_databases_userdb/ 
>>
>>
>> Aki
>>

Users on my mail mystem are system users.
Their credentials, username, x (etc/shadow), home dir and shell are all 
mapped in etc/passwd.

Dovecot reads these mappings in etc/passwd for user1

> user1:x:1002:1002::/home/user1:/bin/bash
> user2:x:1003:1003::/var/user2:/bin/bash


because mail_location is :

> mail_location = maildir:~/%u/Maildir


I have modified etc/dovecot/conf.d/auth-system.conf.ext to include user2 
home dir:

> userdb {
>   driver = passwd
>   args = home=/var/%u
>   Return `mail=maildir:/var/%u`

> }

I haven't tried this and i wish opnions on these:

These users are mapped also as berkeley db for postfix this way:

> user1 at mydomain    /home/user1
> user2 at mydomain        /var/user2

But it looks like it doesn't make any effect.

Kind regards

Gabriele




-- 
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/20211012/c4506a90/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/20211012/c4506a90/attachment.sig>


More information about the dovecot mailing list