On September 8, 2022 4:43:02 PM GMT+03:00, Tom tom@foscore.com wrote:
On 2022-09-08 02:59, Aki Tuomi wrote:
On 08/09/2022 02:00 EEST Tom tom@foscore.com wrote: As you can see in this snip of the maillog, the domain part of the username is being stripped away:
Sep 6 23:12:40 vaj dovecot[114637]: auth-worker(114662): Debug: conn unix:auth-worker (pid=114660,uid=97): auth-worker<2>: passwd(gumby@example.com,10.0.0.70,<YlSArw3oaqoKAABG>): Performing userdb lookup Sep 6 23:12:40 vaj dovecot[114637]: auth-worker(114662): Debug: conn unix:auth-worker (pid=114660,uid=97): auth-worker<2>: passwd(gumby@example.com,10.0.0.70,<YlSArw3oaqoKAABG>): lookup Sep 6 23:12:40 vaj dovecot[114637]: auth-worker(114662): Debug: conn unix:auth-worker (pid=114660,uid=97): auth-worker<2>: passwd(gumby@example.com,10.0.0.70,<YlSArw3oaqoKAABG>): username changed gumby@example.com -> gumby Sep 6 23:12:40 vaj dovecot[114637]: auth-worker(114662): Debug: conn unix:auth-worker (pid=114660,uid=97): auth-worker<2>: passwd(gumby,10.0.0.70,<YlSArw3oaqoKAABG>): Finished userdb lookup
How can I get around this issue? I need mailboxes stored by user/domain. I don't see how in this config you can even have multiple domains? Using passwd ensures that all users are accepted for all domains, because it will only look at local username part.
I'm already using this setup without GSSAPI. Each user can have email addresses in multiple domains. Validating email addresses is done by FreeIPA in this case, or LDAP in my prior setup.
Maybe I need to use another driver.
I recommend the LDAP driver. It should make it easier to run various domains.
Aki