Hi, I am using dovecot 2.2 for some time. All users on the system can log in using Horde Webmail. But now, after creating a new user on the server with <useradd -m username> this new user is not able to log in. Of course I have set a password for the new user. In the log file I can see: Sep 16 23:04:05 servername auth: gkr-pam: error looking up user information Sep 16 23:04:07 servername HORDE: [imp] [login] Authentication failed. [pid 1584 on line 730 of "/srv/www/htdocs/horde/imp/lib/Imap.php"] Sep 16 23:04:07 servername HORDE: [imp] FAILED LOGIN for calendar (93.82.157.132) to {imap://localhost/} [pid 1584 on line 157 of "/srv/www/htdocs/horde/imp/lib/Auth.php"] Sep 16 23:04:07 servername HORDE: [horde] FAILED LOGIN for calendar to horde (93.82.157.132) [pid 1584 on line 199 of "/srv/www/htdocs/horde/login.php"] Please give me a hint. -- Ferdinand
On 09/16/2015 23:34, Ferdinand Gruber wrote:> Hi, > > I am using dovecot 2.2 for some time. All users on the system can log in > using Horde Webmail. > > But now, after creating a new user on the server with <useradd -m > username> this new user is not able to log in. Of course I have set a > password for the new user. > > In the log file I can see: > Sep 16 23:04:05 servername auth: gkr-pam: error looking up user information > Sep 16 23:04:07 servername HORDE: [imp] [login] Authentication failed. > [pid 1584 on line 730 of "/srv/www/htdocs/horde/imp/lib/Imap.php"] > Sep 16 23:04:07 servername HORDE: [imp] FAILED LOGIN for calendar > (93.82.157.132) to {imap://localhost/} [pid 1584 on line 157 of > "/srv/www/htdocs/horde/imp/lib/Auth.php"] > Sep 16 23:04:07 servername HORDE: [horde] FAILED LOGIN for calendar to > horde (93.82.157.132) [pid 1584 on line 199 of > "/srv/www/htdocs/horde/login.php"] > > Please give me a hint.Please raise the logging level of the auth section in 10-logging.conf (auth_verbose=yes, auth_verbose_passwords=yes, auth_debug=yes, auth_debug_passwords=yes) and reload Dovecot. Then test login using fetchmail: # fetchmail --check --nodetach --protocol IMAP --all --keep --username <email at adress> <IP> And send the relevant log from the IMAP server (probably /var/log/syslog), not the log of the webserver. Greetings Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20150917/5a254795/attachment.sig>
Am 16.09.2015 um 23:34 schrieb Ferdinand Gruber:> Hi, > > I am using dovecot 2.2 for some time. All users on the system can log > in using Horde Webmail. > > But now, after creating a new user on the server with <useradd -m > username> this new user is not able to log in. Of course I have set a > password for the new user. > > In the log file I can see: > Sep 16 23:04:05 servername auth: gkr-pam: error looking up user > information > Sep 16 23:04:07 servername HORDE: [imp] [login] Authentication failed. > [pid 1584 on line 730 of "/srv/www/htdocs/horde/imp/lib/Imap.php"] > Sep 16 23:04:07 servername HORDE: [imp] FAILED LOGIN for calendar > (93.82.157.132) to {imap://localhost/} [pid 1584 on line 157 of > "/srv/www/htdocs/horde/imp/lib/Auth.php"] > Sep 16 23:04:07 servername HORDE: [horde] FAILED LOGIN for calendar to > horde (93.82.157.132) [pid 1584 on line 199 of > "/srv/www/htdocs/horde/login.php"] > > Please give me a hint. >I could solve the problem. There was no mail folder in the home directory of the new user. Now I copied the folder ~/mail from a previous existing user to /etc/skel. This seems to solve the problem. New created users are able to log in. -- Ferdinand Gruber fer.gru at aon.at 00 43 7249 48737 00 43 650 542 88 33 Grieskirchner Stra?e 22 4701 Bad Schallerbach