Hello! Aki Tuomi <[email protected]> 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. > > > > > > > > [email protected]:{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([email protected],::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): > > lookup: [email protected] file=/et > > c/dovecot/users > > 2020-03-20 15:44:43 auth: Debug: client passdb out: OK 1 > > [email protected] > > 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([email protected],::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): success > > 2020-03-20 15:44:43 auth: Debug: master userdb out: USER 2126249985 > > [email protected] 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=<[email protected]>, > > method=PLAIN, rip=::1, lip=::1, mpid=15272, secured, session=<pYBcU0qhqIM > > AAAAAAAAAAAAAAAAAAAAB> > > 2020-03-20 15:44:43 imap([email protected]): 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. [email protected]:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:andreas:mail::/var/spool/mail/andreas::userdb_mail= mbox:/var/mail/andreas:INBOX=/var/mail/%n also tried [email protected]:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:5006:5006::/var/spool/mail/andreas::userdb_mail= mbox:/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
