Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
80bf6071
Commit
80bf6071
authored
Apr 30, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #45 from randallsquared/master
enable roundcube's password-change plugin
parents
52fe6922
abe277e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
webmail.sh
scripts/webmail.sh
+25
-1
No files found.
scripts/webmail.sh
View file @
80bf6071
...
...
@@ -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:///
$STORAGE_ROOT
/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 <<EOF;
EOF
chown
-R
www-data.www-data
$STORAGE_ROOT
/mail/roundcube
# so PHP can use doveadm
usermod
-a
-G
dovecot www-data
# set permissions so that PHP can use users.sqlite
# could use dovecot instead of www-data, but not sure it matters
chown
root.www-data
$STORAGE_ROOT
/mail
chmod
775
$STORAGE_ROOT
/mail
chown
root.www-data
$STORAGE_ROOT
/mail/users.sqlite
chmod
664
$STORAGE_ROOT
/mail/users.sqlite
# Enable PHP modules.
php5enmod mcrypt
service php-fastcgi restart
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment