two different mail_location
Hi everybody,
my mail system has all users in usual path ~ .
Only one user is in /var/%u . This user doesn't receive emails.
I guess it is because its $HOME is on a different path than the one specified in dovecot mail_location which is:
mail_location = maildir:~/%u/Maildir
What's the best way to solve this issue ?
Namespaces ?
If so could someone explain me how ?
Best Regards
Gabriel
-- GPG fingerprint: 5A6A F742 ACEA C9A7 93A8 8D5E 7AEF 5A02 D080 89F7
Contact: xmpp://gabx@jabber.tcpreset.net
On 06/10/2021 11:09 Gabx gabriel1@tcpreset.net wrote:
Hi everybody,
my mail system has all users in usual path ~ .
Only one user is in /var/%u . This user doesn't receive emails.
I guess it is because its $HOME is on a different path than the one specified in dovecot mail_location which is:
mail_location = maildir:~/%u/Maildir
What's the best way to solve this issue ?
Namespaces ?
If so could someone explain me how ?
Best Regards
Gabriel
-- GPG fingerprint: 5A6A F742 ACEA C9A7 93A8 8D5E 7AEF 5A02 D080 89F7
Contact: xmpp://gabx@jabber.tcpreset.net
Return mail=maildir:/var/%u
from auth. See https://doc.dovecot.org/configuration_manual/authentication/user_databases_u...
Aki
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_u...Aki
My problem is i server can't stop running for mistakes. We are talking abouth etc/dovecot/conf.d/auth-* files where i should write the above directive, am i correct ?
However what about leaving dovecot to auto detect the mail_location parameter whit an empty value ?
Thanks and Regards
Gabriele
-- GPG fingerprint: 5A6A F742 ACEA C9A7 93A8 8D5E 7AEF 5A02 D080 89F7
Contact: xmpp://gabx@jabber.tcpreset.net
On 8 October 2021 19.13.22 UTC, Gabx gabriel1@tcpreset.net 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_u...Aki
My problem is i server can't stop running for mistakes. We are talking abouth etc/dovecot/conf.d/auth-* files where i should write the above directive, am i correct ?
However what about leaving dovecot to auto detect the mail_location parameter whit an empty value ?
Thanks and Regards
Gabriele
You could deploy a test instance. No, I mean you need to set up your userdb (or passdb) to return mail=driver:/path for that user. You can return it for all users too, just different values.
Aki
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_u...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://gabx@jabber.tcpreset.net
participants (2)
-
Aki Tuomi
-
Gabx