[Dovecot] Can't take user info from an alternate file

dave at 661.org dave at 661.org
Tue Aug 13 00:03:04 EEST 2013


On Mon, 12 Aug 2013, Timo Sirainen wrote:

> On 12.8.2013, at 23.29, dave at 661.org wrote:
>
>>> What does Dovecot log when you're logging in?
[snip]
> That's Postfix log, not Dovecot log.

Dovecot doesn't emit any logs when I go in through port 25.

I added a line "protocols = imap pop3 lmtp" and installed the relevant 
packages.  I then went in through imap like this:

$ telnet localhost 143
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
STARTTLS AUTH=PLAIN] Dovecot ready.
a login "joe" "blah"
* BYE Internal error occurred. Refer to server log for more information.
Connection closed by foreign host.

...and got this in my logs:

Aug 12 20:59:57 auth: Debug: Loading modules from directory: 
/usr/lib/dovecot/modules/auth
Aug 12 20:59:57 auth: Error: passwd-file /etc/dovecot/users: User joe is 
missing userdb info
Aug 12 20:59:57 auth: Debug: passwd-file /etc/dovecot/users: Read 1 users
Aug 12 20:59:57 auth: Debug: auth client connected (pid=15035)
Aug 12 21:00:24 auth: Debug: client in: AUTH    1       PLAIN 
service=imap   secured  lip=::1 rip=::1 lport=143       rport=57586 
resp=AGpvZQBmb29iYXI=
Aug 12 21:00:24 auth: Debug: passwd-file(joe,::1): lookup: user=joe 
file=/etc/dovecot/users
Aug 12 21:00:24 auth: Debug: client out: OK     1       user=joe
Aug 12 21:00:24 auth: Debug: master in: REQUEST 1600520193      15035   1 
444418a798323b1eb1dc21c4154719e0
Aug 12 21:00:24 auth: Debug: passwd-file(joe,::1): lookup: user=joe 
file=/etc/dovecot/users
Aug 12 21:00:24 auth: Debug: master out: USER   1600520193      joe
Aug 12 21:00:24 imap-login: Info: Login: user=<joe>, method=PLAIN, 
rip=::1, lip=::1, mpid=15048, secured
Aug 12 21:00:24 imap(joe): Error: user joe: Couldn't drop privileges: User 
is missing UID (see mail_uid setting)
Aug 12 21:00:24 imap(joe): Error: Internal error occurred. Refer to server 
log for more information.

/etc/dovecot/users is mode 0644 (for now)

-- 
David Griffith
dave at 661.org


More information about the dovecot mailing list