Sergio Belkin
2018-Mar-07 13:47 UTC
Why does dovecot tell Error: passwd-file(...)failed: No such file or directory?
Hi, I get this error even when user logins succesfully: Mar 7 10:41:16 mail dovecot: auth: Debug: client in: AUTH#0111#011CRAM-MD5#011service=imap#011secured#011session=maOgttJmCADAqHoB#011lip=192.168.122.202#011rip=192.168.122.1#011lport=993#011rport=36872 Mar 7 10:41:16 mail dovecot: auth: Debug: client passdb out: CONT#0111#011PDYyMjM4NTMwODIyODI0MDguMTUyMDQzMDA3NkBtYWlsLmV4YW1wbGUuY29tPg=Mar 7 10:41:16 mail dovecot: auth: Debug: client in: CONT<hidden> Mar 7 10:41:16 mail dovecot: auth: Debug: passwd-file(sergio at example.com,192.168.122.1,<maOgttJmCADAqHoB>): lookup: user=sergio at example.com file=/etc/dovecot/users Mar 7 10:41:16 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=sergio at example.com Mar 7 10:41:16 mail dovecot: auth: Debug: master in: REQUEST#0112080243713#01110733#0111#011b99fa14550a72c26f219b7dd4ffa6f27#011session_pid=10736#011request_auth_token Mar 7 10:41:16 mail dovecot: auth: Error: passwd-file(sergio at example.com,192.168.122.1,<maOgttJmCADAqHoB>): stat(schme=CRAM-MD5 username_format=sergio at example.com /etc/dovecot/users) failed: No such file or directory Mar 7 10:41:16 mail dovecot: auth: Debug: master userdb out: USER#0112080243713# 011sergio at example.com#011uid=12345#011gid=12345#011home=/home/vmail/sergio at example.com#011auth_token=34a7660e0c85afacd29709561b0bc7e024942955 Mar 7 10:41:16 mail dovecot: imap-login: Login: user=<sergio at example.com>, method=CRAM-MD5, rip=192.168.122.1, lip=192.168.122.202, mpid=10736, TLS, session=<maOgttJmCADAqHoB> Is that an error, a warning? I don't understand why dovecot tell me that "No such file or directory" because really it does exist. Dovecot configuration is as follows: auth_debug = yes auth_mechanisms = cram-md5 plain login auth_verbose = yes disable_plaintext_auth = no first_valid_uid = 1000 mail_location = maildir:/home/vmail/%d/%n/Maildir mbox_write_locks = fcntl namespace inbox { inbox = yes location mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix } passdb { args = scheme=CRAM-MD5 username_format=%u /etc/dovecot/users driver = passwd-file } service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } } ssl_cert = </etc/pki/tls/certs/mailcert.pem ssl_key = </etc/pki/tls/private/mailkey.pem userdb { args = schme=CRAM-MD5 username_format=%u /etc/dovecot/users driver = passwd-file } userdb { args = uid=vmail gid=vmail home=/home/vmail/%u driver = static } EOF Thanks in advance -- -- Sergio Belkin LPIC-2 Certified - http://www.lpi.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180307/015dbad6/attachment.html>
Aki Tuomi
2018-Mar-07 13:48 UTC
Why does dovecot tell Error: passwd-file(...)failed: No such file or directory?
Fix typo, you have schme. Aki On 07.03.2018 15:47, Sergio Belkin wrote:> Hi, > > I get this error even when user logins succesfully: > > Mar? 7 10:41:16 mail dovecot: auth: Debug: client in: > AUTH#0111#011CRAM-MD5#011service=imap#011secured#011session=maOgttJmCADAqHoB#011lip=192.168.122.202#011rip=192.168.122.1#011lport=993#011rport=36872 > Mar? 7 10:41:16 mail dovecot: auth: Debug: client passdb out: > CONT#0111#011PDYyMjM4NTMwODIyODI0MDguMTUyMDQzMDA3NkBtYWlsLmV4YW1wbGUuY29tPg=> Mar? 7 10:41:16 mail dovecot: auth: Debug: client in: CONT<hidden> > Mar? 7 10:41:16 mail dovecot: auth: Debug: > passwd-file(sergio at example.com > <mailto:sergio at example.com>,192.168.122.1,<maOgttJmCADAqHoB>): lookup: > user=sergio at example.com <mailto:sergio at example.com> > file=/etc/dovecot/users > Mar? 7 10:41:16 mail dovecot: auth: Debug: client passdb out: > OK#0111#011user=sergio at example.com <mailto:sergio at example.com> > Mar? 7 10:41:16 mail dovecot: auth: Debug: master in: > REQUEST#0112080243713#01110733#0111#011b99fa14550a72c26f219b7dd4ffa6f27#011session_pid=10736#011request_auth_token > Mar? 7 10:41:16 mail dovecot: auth: Error: > passwd-file(sergio at example.com > <mailto:sergio at example.com>,192.168.122.1,<maOgttJmCADAqHoB>): > stat(schme=CRAM-MD5 username_format=sergio at example.com > <mailto:sergio at example.com> /etc/dovecot/users) failed: No such file > or directory > Mar? 7 10:41:16 mail dovecot: auth: Debug: master userdb out: > USER#0112080243713#011sergio at example.com#011uid=12345#011gid=12345#011home=/home/vmail/sergio at example.com#011auth_token=34a7660e0c85afacd29709561b0bc7e024942955 > <http://011sergio at example.com#011uid=12345#011gid=12345#011home=/home/vmail/sergio at example.com#011auth_token=34a7660e0c85afacd29709561b0bc7e024942955> > Mar? 7 10:41:16 mail dovecot: imap-login: Login: > user=<sergio at example.com <mailto:sergio at example.com>>, > method=CRAM-MD5, rip=192.168.122.1, lip=192.168.122.202, mpid=10736, > TLS, session=<maOgttJmCADAqHoB> > > > Is that an error, a warning? I don't understand why dovecot tell me > that "No such file or directory" because really it does exist. > > Dovecot configuration is as follows: > > auth_debug = yes > auth_mechanisms = cram-md5 plain login > auth_verbose = yes > disable_plaintext_auth = no > first_valid_uid = 1000 > mail_location = maildir:/home/vmail/%d/%n/Maildir > mbox_write_locks = fcntl > namespace inbox { > ? inbox = yes > ? location > ? mailbox Drafts { > ??? special_use = \Drafts > ? } > ? mailbox Junk { > ??? special_use = \Junk > ? } > ? mailbox Sent { > ??? special_use = \Sent > ? } > ? mailbox "Sent Messages" { > ??? special_use = \Sent > ? } > ? mailbox Trash { > ??? special_use = \Trash > ? } > ? prefix > } > passdb { > ? args = scheme=CRAM-MD5 username_format=%u /etc/dovecot/users > ? driver = passwd-file > } > service auth { > ? unix_listener /var/spool/postfix/private/auth { > ??? mode = 0666 > ? } > } > ssl_cert = </etc/pki/tls/certs/mailcert.pem > ssl_key = </etc/pki/tls/private/mailkey.pem > userdb { > ? args = schme=CRAM-MD5 username_format=%u /etc/dovecot/users > ? driver = passwd-file > } > userdb { > ? args = uid=vmail gid=vmail home=/home/vmail/%u > ? driver = static > } > > EOF > > Thanks in advance > -- > -- > Sergio Belkin > LPIC-2 Certified - http://www.lpi.org-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180307/3e5f2098/attachment-0001.html>
Sergio Belkin
2018-Mar-07 13:57 UTC
Why does dovecot tell Error: passwd-file(...)failed: No such file or directory?
Aki, thanks, I fixed typo but error persists: Mar 7 10:55:54 mail dovecot: auth: Debug: auth client connected (pid=10828) Mar 7 10:55:55 mail dovecot: auth: Debug: client in: AUTH#0111#011CRAM-MD5#011service=imap#011secured#011session=FIH/6tJm4gDAqHoB#011lip=192.168.122.202#011rip=192.168.122.1#011lport=993#011rport=37090 Mar 7 10:55:55 mail dovecot: auth: Debug: client passdb out: CONT#0111#011PDMyOTk2ODcwMzIwNDE3NzcuMTUyMDQzMDk1NUBtYWlsLmV4YW1wbGUuY29tPg=Mar 7 10:55:55 mail dovecot: auth: Debug: client in: CONT<hidden> Mar 7 10:55:55 mail dovecot: auth: Debug: passwd-file(sergio at example.com,192.168.122.1,<FIH/6tJm4gDAqHoB>): lookup: user=sergio at example.com file=/etc/dovecot/users Mar 7 10:55:55 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=sergio at example.com Mar 7 10:55:55 mail dovecot: auth: Debug: master in: REQUEST#0112148007937#01110828#0111#0114822ce6f85f005835d4d0448b8125868#011session_pid=10829#011request_auth_token Mar 7 10:55:55 mail dovecot: auth: Error: passwd-file(sergio at example.com,192.168.122.1,<FIH/6tJm4gDAqHoB>): stat(scheme=CRAM-MD5 username_format=sergio at example.com /etc/dovecot/users) failed: No such file or directory Mar 7 10:55:55 mail dovecot: auth: Debug: master userdb out: USER#0112148007937# 011sergio at example.com#011uid=12345#011gid=12345#011home=/home/vmail/sergio at example.com#011auth_token=9ec7a9d5ad07e594e9ed483db5f7fc533bfd7202 Mar 7 10:55:55 mail dovecot: imap-login: Login: user=<sergio at example.com>, method=CRAM-MD5, rip=192.168.122.1, lip=192.168.122.202, mpid=10829, TLS, session=<FIH/6tJm4gDAqHoB> TIA 2018-03-07 10:48 GMT-03:00 Aki Tuomi <aki.tuomi at dovecot.fi>:> Fix typo, you have schme. > > Aki > > On 07.03.2018 15:47, Sergio Belkin wrote: > > Hi, > > I get this error even when user logins succesfully: > > Mar 7 10:41:16 mail dovecot: auth: Debug: client in: > AUTH#0111#011CRAM-MD5#011service=imap#011secured# > 011session=maOgttJmCADAqHoB#011lip=192.168.122.202#011rip> 192.168.122.1#011lport=993#011rport=36872 > Mar 7 10:41:16 mail dovecot: auth: Debug: client passdb out: CONT#0111# > 011PDYyMjM4NTMwODIyODI0MDguMTUyMDQzMDA3NkBtYWlsLmV4YW1wbGUuY29tPg=> Mar 7 10:41:16 mail dovecot: auth: Debug: client in: CONT<hidden> > Mar 7 10:41:16 mail dovecot: auth: Debug: passwd-file(sergio at example.com > ,192.168.122.1,<maOgttJmCADAqHoB>): lookup: user=sergio at example.com > file=/etc/dovecot/users > Mar 7 10:41:16 mail dovecot: auth: Debug: client passdb out: > OK#0111#011user=sergio at example.com > Mar 7 10:41:16 mail dovecot: auth: Debug: master in: > REQUEST#0112080243713#01110733#0111#011b99fa14550a72c26f219b7dd4ff > a6f27#011session_pid=10736#011request_auth_token > Mar 7 10:41:16 mail dovecot: auth: Error: passwd-file(sergio at example.com > ,192.168.122.1,<maOgttJmCADAqHoB>): stat(schme=CRAM-MD5 username_format> sergio at example.com /etc/dovecot/users) failed: No such file or directory > Mar 7 10:41:16 mail dovecot: auth: Debug: master userdb out: > USER#0112080243713#011sergio at example.com#011uid=12345# > 011gid=12345#011home=/home/vmail/sergio at example.com#011auth_token> 34a7660e0c85afacd29709561b0bc7e024942955 > <http://011sergio at example.com#011uid=12345%23011gid=12345%23011home=/home/vmail/sergio at example.com%23011auth_token=34a7660e0c85afacd29709561b0bc7e024942955> > Mar 7 10:41:16 mail dovecot: imap-login: Login: user=<sergio at example.com>, > method=CRAM-MD5, rip=192.168.122.1, lip=192.168.122.202, mpid=10736, TLS, > session=<maOgttJmCADAqHoB> > > > Is that an error, a warning? I don't understand why dovecot tell me that > "No such file or directory" because really it does exist. > > Dovecot configuration is as follows: > > auth_debug = yes > auth_mechanisms = cram-md5 plain login > auth_verbose = yes > disable_plaintext_auth = no > first_valid_uid = 1000 > mail_location = maildir:/home/vmail/%d/%n/Maildir > mbox_write_locks = fcntl > namespace inbox { > inbox = yes > location > mailbox Drafts { > special_use = \Drafts > } > mailbox Junk { > special_use = \Junk > } > mailbox Sent { > special_use = \Sent > } > mailbox "Sent Messages" { > special_use = \Sent > } > mailbox Trash { > special_use = \Trash > } > prefix > } > passdb { > args = scheme=CRAM-MD5 username_format=%u /etc/dovecot/users > driver = passwd-file > } > service auth { > unix_listener /var/spool/postfix/private/auth { > mode = 0666 > } > } > ssl_cert = </etc/pki/tls/certs/mailcert.pem > ssl_key = </etc/pki/tls/private/mailkey.pem > userdb { > args = schme=CRAM-MD5 username_format=%u /etc/dovecot/users > driver = passwd-file > } > userdb { > args = uid=vmail gid=vmail home=/home/vmail/%u > driver = static > } > > EOF > > Thanks in advance > -- > -- > Sergio Belkin > LPIC-2 Certified - http://www.lpi.org > > >-- -- Sergio Belkin LPIC-2 Certified - http://www.lpi.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180307/58ea0041/attachment.html>
Apparently Analagous Threads
- Why does dovecot tell Error: passwd-file(...)failed: No such file or directory?
- Why does dovecot tell Error: passwd-file(...)failed: No such file or directory?
- Why does dovecot tell Error: passwd-file(...)failed: No such file or directory?
- userdb username changed
- Dovecot v2.1.3 (f30437ed63dc) Auth/Login Issues