From 43461fc14b69b18a183781a311d72178117074f3 Mon Sep 17 00:00:00 2001 From: Randall Randall Date: Wed, 30 Apr 2014 13:07:15 -0400 Subject: [PATCH] enable and configure password-change plugin for roundcube --- scripts/webmail.sh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/scripts/webmail.sh b/scripts/webmail.sh index a0a02c7e..1463b9ca 100755 --- a/scripts/webmail.sh +++ b/scripts/webmail.sh @@ -44,8 +44,22 @@ tools/editconf.py /etc/roundcube/main.inc.php \ "\$rcmail_config['message_sort_col']='arrival';" \ "\$rcmail_config['junk_mbox']='Spam';" \ "\$rcmail_config['default_folders']=array('INBOX', 'Drafts', 'Sent', 'Spam', 'Trash');" \ - "\$rcmail_config['draft_autosave']=30;" + "\$rcmail_config['draft_autosave']=30;" \ + "\$rcmail_config['plugins']=array('password');" +# Password changing plugin settings +# The config comes empty by default, so we need the settings +# we're not planning to change in config.inc.dist... +cp /usr/share/roundcube/plugins/password/config.inc.php.dist \ + /etc/roundcube/plugins/password/config.inc.php + +tools/editconf.py /etc/roundcube/plugins/password/config.inc.php \ + "\$rcmail_config['password_minimum_length']=6;" \ + "\$rcmail_config['password_db_dsn']='sqlite:////home/user-data/mail/users.sqlite';" \ + "\$rcmail_config['password_query']='UPDATE users SET password=%D WHERE email=%u';" \ + "\$rcmail_config['password_dovecotpw']='/usr/bin/doveadm pw';" \ + "\$rcmail_config['password_dovecotpw_method']='SHA512-CRYPT';" \ + "\$rcmail_config['password_dovecotpw_with_method']=true;" # Configure storage of user preferences. mkdir -p $STORAGE_ROOT/mail/roundcube @@ -58,6 +72,16 @@ cat - > /etc/roundcube/debian-db.php <