Hello! Aki Tuomi <aki.tuomi at open-xchange.com> schrieb am 20.03.20 um 16:06:48 Uhr:> > On 20/03/2020 15:55 ratatouille <ratatouille at bitclusive.de> wrote: > > > > > > Hello! > > > > I have one systemuser on my testsystem running CentOS. All other users live in a mysql- database. > > > > I created a /etc/dovecot/users file and use auth-passwdfile.conf.ext. > > > > andreas at dualbit.de:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:5006:5006::/var/spool/mail/andreas::userdb_mail=mbo > > x:/var/mail/andreas:INBOX=/var/mail/%u > > > > Use /var/mail/%n instead of %u.I then get in debuglog 2020-03-20 15:44:43 auth: Debug: passwd-file(andreas at dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): lookup: user=andreas at dualbit.de file=/et c/dovecot/users 2020-03-20 15:44:43 auth: Debug: client passdb out: OK 1 user=andreas at dualbit.de 2020-03-20 15:44:43 auth: Debug: master in: REQUEST 2126249985 15266 1 37d0ecbd12433c7a5675892b0dc95b6f session_pid=15272 request_auth_token 2020-03-20 15:44:43 auth: Debug: prefetch(andreas at dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): success 2020-03-20 15:44:43 auth: Debug: master userdb out: USER 2126249985 andreas at dualbit.de mail=mbox:/var/mail/andreas:INBOX=/var/ma il/andreas auth_token=47c609de6858e739ba3c9f9e163417b24b5968dc and in logfile 2020-03-20 15:44:43 imap-login: Info: Login: user=<andreas at dualbit.de>, method=PLAIN, rip=::1, lip=::1, mpid=15272, secured, session=<pYBcU0qhqIM AAAAAAAAAAAAAAAAAAAAB> 2020-03-20 15:44:43 imap(andreas at dualbit.de): Error: Couldn't drop privileges: User is missing UID (see mail_uid setting) 2020-03-20 15:44:43 imap: Error: Internal error occurred. Refer to server log for more information. hmmm Andreas
> On 20/03/2020 16:48 ratatouille <ratatouille at bitclusive.de> wrote: > > > Hello! > > Aki Tuomi <aki.tuomi at open-xchange.com> schrieb am 20.03.20 um 16:06:48 Uhr: > > > > On 20/03/2020 15:55 ratatouille <ratatouille at bitclusive.de> wrote: > > > > > > > > > Hello! > > > > > > I have one systemuser on my testsystem running CentOS. All other users live in a mysql- database. > > > > > > I created a /etc/dovecot/users file and use auth-passwdfile.conf.ext. > > > > > > andreas at dualbit.de:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:5006:5006::/var/spool/mail/andreas::userdb_mail=mbo > > > x:/var/mail/andreas:INBOX=/var/mail/%u > > > > > > > Use /var/mail/%n instead of %u. > > I then get in debuglog > > 2020-03-20 15:44:43 auth: Debug: passwd-file(andreas at dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): lookup: user=andreas at dualbit.de file=/et > c/dovecot/users > 2020-03-20 15:44:43 auth: Debug: client passdb out: OK 1 user=andreas at dualbit.de > 2020-03-20 15:44:43 auth: Debug: master in: REQUEST 2126249985 15266 1 37d0ecbd12433c7a5675892b0dc95b6f session_pid=15272 > request_auth_token > 2020-03-20 15:44:43 auth: Debug: prefetch(andreas at dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): success > 2020-03-20 15:44:43 auth: Debug: master userdb out: USER 2126249985 andreas at dualbit.de mail=mbox:/var/mail/andreas:INBOX=/var/ma > il/andreas auth_token=47c609de6858e739ba3c9f9e163417b24b5968dc > > and in logfile > > 2020-03-20 15:44:43 imap-login: Info: Login: user=<andreas at dualbit.de>, method=PLAIN, rip=::1, lip=::1, mpid=15272, secured, session=<pYBcU0qhqIM > AAAAAAAAAAAAAAAAAAAAB> > 2020-03-20 15:44:43 imap(andreas at dualbit.de): Error: Couldn't drop privileges: User is missing UID (see mail_uid setting) > 2020-03-20 15:44:43 imap: Error: Internal error occurred. Refer to server log for more information. > > hmmm > > AndreasHi! You need to specify uid&gid in your passwd file. username:password:uid:gid:... AKi
Hello! Aki Tuomi <aki.tuomi at open-xchange.com> schrieb am 20.03.20 um 16:50:29 Uhr:> > > > I have one systemuser on my testsystem running CentOS. All other users live in a mysql- database. > > > > > > > > I created a /etc/dovecot/users file and use auth-passwdfile.conf.ext. > > > > > > > > andreas at dualbit.de:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:5006:5006::/var/spool/mail/andreas::userdb_mail=mbo > > > > x:/var/mail/andreas:INBOX=/var/mail/%u > > > > > > > > > > Use /var/mail/%n instead of %u. > > > > I then get in debuglog > > > > 2020-03-20 15:44:43 auth: Debug: passwd-file(andreas at dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): lookup: user=andreas at dualbit.de file=/et > > c/dovecot/users > > 2020-03-20 15:44:43 auth: Debug: client passdb out: OK 1 user=andreas at dualbit.de > > 2020-03-20 15:44:43 auth: Debug: master in: REQUEST 2126249985 15266 1 37d0ecbd12433c7a5675892b0dc95b6f session_pid=15272 > > request_auth_token > > 2020-03-20 15:44:43 auth: Debug: prefetch(andreas at dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): success > > 2020-03-20 15:44:43 auth: Debug: master userdb out: USER 2126249985 andreas at dualbit.de mail=mbox:/var/mail/andreas:INBOX=/var/ma > > il/andreas auth_token=47c609de6858e739ba3c9f9e163417b24b5968dc > > > > and in logfile > > > > 2020-03-20 15:44:43 imap-login: Info: Login: user=<andreas at dualbit.de>, method=PLAIN, rip=::1, lip=::1, mpid=15272, secured, session=<pYBcU0qhqIM > > AAAAAAAAAAAAAAAAAAAAB> > > 2020-03-20 15:44:43 imap(andreas at dualbit.de): Error: Couldn't drop privileges: User is missing UID (see mail_uid setting) > > 2020-03-20 15:44:43 imap: Error: Internal error occurred. Refer to server log for more information.> You need to specify uid&gid in your passwd file. > > username:password:uid:gid:...I already did that. andreas at dualbit.de:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:andreas:mail::/var/spool/mail/andreas::userdb_mailmbox:/var/mail/andreas:INBOX=/var/mail/%n also tried andreas at dualbit.de:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:5006:5006::/var/spool/mail/andreas::userdb_mailmbox:/var/mail/andreas:INBOX=/var/mail/%n id andreas uid=5006(andreas) gid=5006(susers) Gruppen=5006(susers) Mail is stored in /var/mail/andreas as -rw-rw----. 1 andreas mail 3750092 20. M?r 14:44 andreas Also tried to set in auth-passwdfile.conf.ext userdb { driver = passwd-file args = username_format=%u /etc/dovecot/users default_fields = uid=andreas gid=mail } but with no luck. doveconf mail_uid mail_uid Can I set mail_uid for that specific user? How? Andreas