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@dualbit.de:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:5006:5006::/var/spool/mail/andreas::userdb_mail=mbo x:/var/mail/andreas:INBOX=/var/mail/%u
When I try to login via telnet I see in the logifle:
2020-03-20 14:40:01 auth: Debug: prefetch(andreas@dualbit.de,::1,<+9T4a0mhKO0AAAAAAAAAAAAAAAAAAAAB>): success 2020-03-20 14:40:01 auth: Debug: master userdb out: USER 734789633 andreas@dualbit.de mail=mbox:/var/mail/andreas:INBOX=/var/ma il/andreas@dualbit.de auth_token=dc1f852724345081ff3a18958f05fc61b2544ab4
The domainpart is added to the username when I use %u. I assume this is why the login fails.
How do I correct this, please?
Kind regards
Andreas
On 2020-03-20 14:55, ratatouille wrote:
How do I correct this, please?
https://wiki.dovecot.org/SystemUsers
system users is realm in dovecot conf, did you set it to the domain part added ?
sorry cant help more
On 20/03/2020 15:55 ratatouille <ratatouille@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@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.
Aki
Hello!
Aki Tuomi <aki.tuomi@open-xchange.com> schrieb am 20.03.20 um 16:06:48 Uhr:
On 20/03/2020 15:55 ratatouille <ratatouille@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@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@dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): lookup: user=andreas@dualbit.de file=/et c/dovecot/users 2020-03-20 15:44:43 auth: Debug: client passdb out: OK 1 user=andreas@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@dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): success 2020-03-20 15:44:43 auth: Debug: master userdb out: USER 2126249985 andreas@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@dualbit.de>, method=PLAIN, rip=::1, lip=::1, mpid=15272, secured, session=<pYBcU0qhqIM AAAAAAAAAAAAAAAAAAAAB> 2020-03-20 15:44:43 imap(andreas@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@bitclusive.de> wrote:
Hello!
Aki Tuomi <aki.tuomi@open-xchange.com> schrieb am 20.03.20 um 16:06:48 Uhr:
On 20/03/2020 15:55 ratatouille <ratatouille@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@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@dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): lookup: user=andreas@dualbit.de file=/et c/dovecot/users 2020-03-20 15:44:43 auth: Debug: client passdb out: OK 1 user=andreas@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@dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): success 2020-03-20 15:44:43 auth: Debug: master userdb out: USER 2126249985 andreas@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@dualbit.de>, method=PLAIN, rip=::1, lip=::1, mpid=15272, secured, session=<pYBcU0qhqIM AAAAAAAAAAAAAAAAAAAAB> 2020-03-20 15:44:43 imap(andreas@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
Hi!
You need to specify uid&gid in your passwd file.
username:password:uid:gid:...
AKi
Hello!
Aki Tuomi <aki.tuomi@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@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@dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): lookup: user=andreas@dualbit.de file=/et c/dovecot/users 2020-03-20 15:44:43 auth: Debug: client passdb out: OK 1 user=andreas@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@dualbit.de,::1,<pYBcU0qhqIMAAAAAAAAAAAAAAAAAAAAB>): success 2020-03-20 15:44:43 auth: Debug: master userdb out: USER 2126249985 andreas@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@dualbit.de>, method=PLAIN, rip=::1, lip=::1, mpid=15272, secured, session=<pYBcU0qhqIM
AAAAAAAAAAAAAAAAAAAAB>
2020-03-20 15:44:43 imap(andreas@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@dualbit.de:{CRAM-MD5}334bb91aad4fb976870535bbbd9f07db512fce13bc8f7b58f9dedca404a421aa:andreas:mail::/var/spool/mail/andreas::userdb_mail= mbox:/var/mail/andreas:INBOX=/var/mail/%n
also tried andreas@dualbit.de:{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
participants (3)
-
Aki Tuomi
-
Benny Pedersen
-
ratatouille