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@mydomain    /home/user1
user2@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://g...@jabber.tcpreset.net

Attachment: OpenPGP_0x8ED8A7AD1473BC20.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to