Dovecot authentication problem

Annatto

Verified User
Joined
May 13, 2007
Messages
14
Hi,

A user contacted me to say he couldn't connect to the email server, so I tried a test email account on his domain and found that dovecot accepted connections from telnet, but not from my email client:

telnet session which successfully authenticates:
Apr 8 14:35:52 xxx dovecot[13408]: auth-worker(13794): shadow(test@xxx): unknown user
Apr 8 14:35:52 xxx dovecot[13408]: auth-worker(13794): passwd(test@xxx): unknown user
Apr 8 14:35:52 xxx dovecot[13408]: pop3-login: Login: user=<test@xxx>, method=PLAIN, rip=xxx, lip=xxx, mpid=13795, session=<y2YLEIj2GgBSIOF5>
Apr 8 14:36:03 xxx dovecot[13408]: pop3(test@xxx): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=151382, bytes=12/62

email client session which fails:
Apr 8 14:36:20 xxx dovecot[13408]: auth-worker(13794): shadow(test,xxx): unknown user
Apr 8 14:36:20 xxx dovecot[13408]: auth: Error: passwd-file(test,xxx,<tJXEEYj2HwBSIOF5>): stat(/etc/virtual//passwd) failed: No such file or directory

I understand that the unknown user warnings are given because the user is not in 1 of the 2 dbs, but I'm puzzled by stat(/etc/virtual//passwd) - does this mean dovecot doesn't have the correct filename for the virtual passwd db?

Be grateful for any ideas or pointers

Thanks
 
Last edited:
Well it seems to me that is missing the domain part.. maybe he didnt put the domain on login user?

Cause file should be located in /etc/virtual/DOMAIN/passwd and i suppose that domain is taken from username [email protected]

Can you check that?

Regards
 
Yes! I'd forgotten to include the domain part of the username.

Thanks
 
Back
Top