Xavier
2023-Feb-14 07:47 UTC
Could not override "mail_location" with "userdb_mail" statment in "/etc/passwd"
> You need to use passwd-file driver. I would recommend adding secondary userdb for overrides in a separate file instead of modifying /etc/passwd. > > userdb { > driver = passwd > result_success = continue-ok > } > > userdb { > driver = passwd-file > args = /etc/dovecot/overrides > } > > and put in overrides > > testm2m_mydomain.tld:::::::userdb_mail=maildir:~/MaildirHi Aki, Thanks for your answer ! I've just gived a try and it works partially : - the "userdb_mail=maildir:~/Maildir" is well taken into account for my user in "/etc/dovecot/overrides" (testm2m_mydomain.tld) BUT - all other accounts (located in "/etc/passwd" and not in "/etc/dovecot/overrides") could not connect anymore to the Dovecot server (POP/IMAP...). I got this kind of message in mail mail.log : 8<------------------------------ Feb 13 21:58:14 mail dovecot: imap: Error: Authenticated user not found from userdb, auth lookup id=2769158145 (client-pid=27095 client-id=1) Feb 13 21:58:14 mail dovecot: imap-login: Internal login failure (pid=27095 id=1) (internal failure, 1 successful auths): user=<xavier_mydomain.tld>, method=PLAIN, rip=x.x.x.x, lip=y.y.y.y, mpid=27096, secured, session=<N2VZZ4v0oNABJ3LB> 8<------------------------------ Any idea ? Thanks for your help ! /Xavier -------------- next part -------------- A non-text attachment was scrubbed... Name: publickey - xavier-mlist at proton.me - 0xC617DF73.asc Type: application/pgp-keys Size: 3150 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20230214/d36244c0/attachment.key> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 855 bytes Desc: OpenPGP digital signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20230214/d36244c0/attachment.sig>
Aki Tuomi
2023-Feb-14 07:50 UTC
Could not override "mail_location" with "userdb_mail" statment in "/etc/passwd"
> On 14/02/2023 09:47 EET Xavier <xavier-mlist at proton.me> wrote: > > > > You need to use passwd-file driver. I would recommend adding secondary userdb for overrides in a separate file instead of modifying /etc/passwd. > > > > userdb { > > driver = passwd > > result_success = continue-ok > > } > > > > userdb { > > driver = passwd-file > > args = /etc/dovecot/overrides > > } > > > > and put in overrides > > > > testm2m_mydomain.tld:::::::userdb_mail=maildir:~/Maildir > > Hi Aki, > > Thanks for your answer ! > > I've just gived a try and it works partially : > > - the "userdb_mail=maildir:~/Maildir" is well taken into account for my user in "/etc/dovecot/overrides" (testm2m_mydomain.tld) > > BUT > > - all other accounts (located in "/etc/passwd" and not in "/etc/dovecot/overrides") could not connect anymore to the Dovecot server (POP/IMAP...). I got this kind of message in mail mail.log : > > 8<------------------------------ > Feb 13 21:58:14 mail dovecot: imap: Error: Authenticated user not found from userdb, auth lookup id=2769158145 (client-pid=27095 client-id=1) > Feb 13 21:58:14 mail dovecot: imap-login: Internal login failure (pid=27095 id=1) (internal failure, 1 successful auths): user=<xavier_mydomain.tld>, method=PLAIN, rip=x.x.x.x, lip=y.y.y.y, mpid=27096, secured, session=<N2VZZ4v0oNABJ3LB> > 8<------------------------------ > > Any idea ? > > Thanks for your help ! > > /XavierTry adding both skip=notfound and result_failure = continue-ok to ignore the not found error, to the override db. Aki