Hi, thanks for your comments. Unfortunatelly I cant do it correctly apparently.
I took your file, modified user, password and dbname so it matches my settings that I have in postfixadmin (which had created my database after all). Also replaced fullname with password and virtual_users with mailbox in the query line.
I dont get it, as
mysql -u user -p set in config.ini.php has (write-)access to the database
Code: Select all
MariaDB [dbname]> show tables;
+-----------------------+
| Tables_in_dbname |
+-----------------------+
| admin |
| alias |
| alias_domain |
| config |
| domain |
| domain_admins |
| fetchmail |
| log |
| mailbox |
| quota |
| quota2 |
| vacation |
| vacation_notification |
+-----------------------+
13 rows i[code]
MariaDB [dbname]> show columns from dbname.mailbox;
+------------+--------------+------+-----+---------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------------------+-------+
| username | varchar(255) | NO | PRI | NULL | |
| password | varchar(255) | NO | | NULL | |
| name | varchar(255) | NO | | NULL | |
| maildir | varchar(255) | NO | | NULL | |
| quota | bigint(20) | NO | | 0 | |
| local_part | varchar(255) | NO | | NULL | |
| domain | varchar(255) | NO | MUL | NULL | |
| created | datetime | NO | | 2000-01-01 00:00:00 | |
| modified | datetime | NO | | 2000-01-01 00:00:00 | |
| active | tinyint(1) | NO | | 1 | |
+------------+--------------+------+-----+---------------------+-------+
10 rows in set (0.01 sec)
n set (0.00 sec)[/code]
The query in the config.ini.php is:
Code: Select all
$config['password_query'] = 'UPDATE mailbox SET password=%c WHERE email=%u LIMIT 1';
When trying to change password in roundcube plugin, the result is always the same. I just get a message in roundcube that the password was not changed
Is there any debug logging, that I could activate in order to find out whats going on?