posftix, dovecot and mysql - auth failed after updating MySql
Hello,
I'm running Ubuntu 20.04 with Posftix, Dovecot and Mysql (latest versions). The config worked, but with the latest version of MySQL the ENCRYPT function was deprecated. Now I have in /etc/dovecot/dovecot-sql.conf: Code:
driver = mysql Code:
msyql> USE mail; Code:
mysql> CREATE TABLE users (email varchar(80) NOT NULL, password varchar(256) NOT NULL, PRIMARY KEY (email) ); dovecot: imap-login: Disconnected (auth failed, 2 attempts in 8 secs): user=<u1@mydomain.com>, method=PLAIN, rip=5.12.x.y, lip=206.81.x.y, TLS, session=<uBerVtuzNOkFDENS> Any idea? What could I do? I'm sure there is something related to the way I'm inserting the password in the db and how dovecot is reading it. I've spent the entire day with this :(( |
I've got a workaround running doveadm pw -s SHA512-CRYPT and inserting the string including what's inside the curly braces in the password field.
But I don't think this is the best solution. Maybe someone has a better solution. |
All times are GMT -5. The time now is 05:53 PM. |