1

Topic: Password changing

==== Required information ====
- iRedMail version:0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 13.04
- Related log if you're reporting an issue:
====
Hi,

how to change password character length and  password must include at least one number and one punctuation character.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Password changing

Do you mean changing password in Roundcube? If so, you can update these restrictions in Roundcube password plugin:
/usr/share/apache2/roundcubemail/plugins/password/config.inc.php

3

Re: Password changing

yes in Roundcube, i am updated restrictions in  Roundcube password plugin like this

Require the new password to be a certain length.
// set to blank to allow passwords of any length
$rcmail_config['password_minimum_length'] = 1;

// Require the new password to contain a letter and punctuation character
// Change to false to remove this check.
$rcmail_config['password_require_nonalpha'] = false;

But now  not save new password getting the error   "New password could not save"

4

Re: Password changing

Did you change other settings?

5

Re: Password changing

No, what can i do for save new password in Roundcube

6

Re: Password changing

Please turn on debug mode in Roundcube (config/main.inc.php) to see why it cannot save new password.

7

Re: Password changing

How turn on debug mode in Roundcube  ?

8 (edited by zacek 2014-02-10 20:12:46)

Re: Password changing

Hi,
I have another Q similar to this ask. (iRedAdmin-Pro-MySQL 1.8.1, iRedMail 0.8.6, Debian 7.4.0-amd64)
I'd like change defaul passwd lenght (8) for newly added domain / users in iRedAdmin-Pro-MySQL. For example from 6 to 25 letters (8 letters is too much complicated for them).

I can do that in menu>  Domains and Accounts - Advanced - Minimum password length / Maximum password length, but IT DONT TAKE ANY EFFECT.  I can't make password for new email with 6 chars, only 8 is still allowed.  What is wrong?  Is there any global settings which must be changed? Can I do that from web - iRedAdmin-Pro-MySQL ??

THX for answer.

9

Re: Password changing

Shibin Das wrote:

How turn on debug mode in Roundcube  ?

Search "debug" in Roundcube config file, don't be lazy.

10

Re: Password changing

Hi zacek,

Please always post your own questions in a new forum topic, do not hijack other's topic.

zacek wrote:

I can do that in menu>  Domains and Accounts - Advanced - Minimum password length / Maximum password length, but IT DONT TAKE ANY EFFECT.  I can't make password for new email with 6 chars, only 8 is still allowed.  What is wrong?  Is there any global settings which must be changed? Can I do that from web - iRedAdmin-Pro-MySQL ??

Global settings are stored in iRedAdmin-Pro config file "settings.py". on Debian, it's /usr/share/apache2/iredadmin/settings.py.

11

Re: Password changing

i am changed this all debug false in to "true"

// Log SQL queries to <log_dir>/sql or to syslog
$rcmail_config['sql_debug'] = true;

// Log IMAP conversation to <log_dir>/imap or to syslog
$rcmail_config['imap_debug'] = true;

// Log LDAP conversation to <log_dir>/ldap or to syslog
$rcmail_config['ldap_debug'] = true;

// Log SMTP conversation to <log_dir>/smtp or to syslog
$rcmail_config['smtp_debug'] = true;

But it did not save new password.

12

Re: Password changing

Turning on debug in roundcube doesn't solve your issue, we just need detailed debug message to help troubleshoot and solve it.

So, what's the debug log when you tried again to change password? Any related log in postfix log file (roundcube logs to postfix log file.)

13

Re: Password changing

i can't find postfix log file where it saved  ?

14

Re: Password changing

Postfix log file is /var/log/mail.log on Debian/Ubuntu.

Or, you can pay me to help solve this issue: http://www.iredmail.org/support.html

15 (edited by Shibin Das 2014-02-15 15:50:59)

Re: Password changing

i have some problem to pay
please help me in this support forum ,my postfix log's  are below

Feb 15 10:35:36 test postfix/qmgr[2233]: 3F1FF1661F8: removed
Feb 15 10:35:37 test roundcube: [1] SET NAMES 'utf8';
Feb 15 10:35:37 test roundcube: [2] SELECT vars, ip, changed FROM session WHERE sess_id = '07ma7nhm4136hsuutl4rffi641';
Feb 15 10:35:37 test roundcube: [3] SELECT * FROM users WHERE user_id = '28';
Feb 15 10:35:37 test roundcube: DB Error: SQLSTATE[28000] [1045] Access denied for user 'roundcube'@'localhost' (using password: YES) in /usr/share/apache2/roundcubemail-0.9.5/program/lib/Roundcube/rcube_db.php on line 154 (POST /mail/?_task=settings&_action=plugin.password-save?_task=&_action=)
Feb 15 10:36:37 test roundcube: [1] SET NAMES 'utf8';
Feb 15 10:36:37 test roundcube: [2] SELECT vars, ip, changed FROM session WHERE sess_id = '07ma7nhm4136hsuutl4rffi641';
Feb 15 10:36:37 test roundcube: [3] SELECT * FROM users WHERE user_id = '28';

16

Re: Password changing

Shibin Das wrote:

Feb 15 10:35:37 test roundcube: DB Error: SQLSTATE[28000] [1045] Access denied for user 'roundcube'@'localhost' (using password: YES) in /usr/share/apache2/roundcubemail-0.9.5/program/lib/Roundcube/rcube_db.php on line 154 (POST /mail/?_task=settings&_action=plugin.password-save?_task=&_action=)

It's pretty clear here: MySQL user "roundcube" must have privilege to read/update SQL table "vmail.mailbox".
You can fix it with below sql commands:

$ mysql -uroot -p
mysql> USE vmail;
mysql> GRANT SELECT,UPDATE ON vmail.mailbox TO roundcube@localhost;
mysql> FLUSH PRIVILEGES;