[Dovecot] Stuck with authentication for my dovecot installation.
Hello!
I have been following instructions from here to setup dovecot along with postfix and postgresql and sasl2.
I try to login but I keep getting the following messages in /var/log/mail.log
Nov 2 19:51:39 localhost dovecot: ssl-params: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:44 localhost dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled) Nov 2 19:53:11 localhost dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:53:11 localhost dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:53:11 localhost dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled) Nov 2 19:53:29 localhost dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth Nov 2 19:53:29 localhost dovecot: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_pgsql.so Nov 2 19:53:29 localhost dovecot: auth: Debug: auth client connected (pid=12718) Nov 2 19:53:29 localhost dovecot: auth: pgsql(localhost): Connected to database mails Nov 2 19:53:41 localhost dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=58759#011resp=<hidden> Nov 2 19:53:41 localhost dovecot: auth: Debug: sql(someone@mydomain.com,127.0.0.1): query: SELECT userid as user, password FROM users WHERE userid = 'someone@mydomain.com' Nov 2 19:53:41 localhost dovecot: auth: sql(someone@mydomain.com,127.0.0.1): Password mismatch
My doveconf -n gives the following output
# 2.0.19: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-24-virtual i686 Ubuntu 12.04 LTS auth_debug = yes auth_verbose = yes passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } passdb { driver = pam } protocols = " imap pop3" ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } userdb { driver = passwd }
Please let me know what is wrong.
Regards Tru Pheenix
Sorry I forgot to put the link
I'm following instructions from here http://wiki2.dovecot.org/HowTo/DovecotPostgresql
On Sun, Nov 3, 2013 at 1:50 AM, Tru Pheenix <trupheenix@gmail.com> wrote:
Hello!
I have been following instructions from here to setup dovecot along with postfix and postgresql and sasl2.
I try to login but I keep getting the following messages in /var/log/mail.log
Nov 2 19:51:39 localhost dovecot: ssl-params: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:39 localhost dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:51:44 localhost dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled) Nov 2 19:53:11 localhost dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:53:11 localhost dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Nov 2 19:53:11 localhost dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled) Nov 2 19:53:29 localhost dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth Nov 2 19:53:29 localhost dovecot: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_pgsql.so Nov 2 19:53:29 localhost dovecot: auth: Debug: auth client connected (pid=12718) Nov 2 19:53:29 localhost dovecot: auth: pgsql(localhost): Connected to database mails Nov 2 19:53:41 localhost dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=58759#011resp=<hidden> Nov 2 19:53:41 localhost dovecot: auth: Debug: sql(someone@mydomain.com,127.0.0.1): query: SELECT userid as user, password FROM users WHERE userid = 'someone@mydomain.com' Nov 2 19:53:41 localhost dovecot: auth: sql(someone@mydomain.com,127.0.0.1): Password mismatch
My doveconf -n gives the following output
# 2.0.19: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-24-virtual i686 Ubuntu 12.04 LTS auth_debug = yes
auth_verbose = yes passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } passdb { driver = pam }
protocols = " imap pop3" ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql
} userdb { driver = passwd }
Please let me know what is wrong.
Regards
Tru Pheenix
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, 3 Nov 2013, Tru Pheenix wrote:
Nov 2 19:53:41 localhost dovecot: auth: Debug: sql(someone@mydomain.com,127.0.0.1): query: SELECT userid as user, password FROM users WHERE userid = 'someone@mydomain.com' Nov 2 19:53:41 localhost dovecot: auth: sql(someone@mydomain.com,127.0.0.1): Password mismatch
Where is the line about PAM?
auth_verbose = yes passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql }
So, the password storred in the database does not match the enterred one, then the next passdb {} should be tried
passdb { driver = pam }
did you enabled dovecot in PAM? Or is a suitable default in PAM configured?
userdb { driver = passwd }
Just the userdb {} for passwd, no SQL?
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUnewdV3r2wJMiz2NAQIkOwf/SJKKBqXNOXzd/Fd3483kYJIKs4ffRwWa wPuA9fwtqpY0UaVP/GVjQbbql0AW8tpUiHLH3t3sypqKp03C/kupc4Q0sCAfH7s/ RupBaNLDZ07Jtjl1MIcxYRVu9tXKHOTPTfs6/OjGe09LXir0ujM+uy/dX3/U6vPA IlnIG4PKTI5fqfBucvbjbwNDmQ8qatT9qxfdOMVkYRr4a6baWoaYUOEGD0WYmh2l kXKlOtezDOQBq+nvKrzAI66bm3c2Qiy87+fANafH37Ms9ZE7cIHdUrPiWKeWQdmY b+pyLAzoLrZkflz+iDdNrM7eX4k7q0qP9yQb0ujZquICQiduUqQZuw== =n2Zs -----END PGP SIGNATURE-----
participants (2)
-
Steffen Kaiser
-
Tru Pheenix