Enable changing password from the webmail

master
Pierre Jaury 9 years ago
parent ebcf115d72
commit 0080621c4d

@ -7,7 +7,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
postfix dovecot-imapd dovecot-sqlite dovecot-lmtpd \ postfix dovecot-imapd dovecot-sqlite dovecot-lmtpd \
dovecot-sieve dovecot-managesieved \ dovecot-sieve dovecot-managesieved \
dovecot-antispam spamassassin spamc clamav \ dovecot-antispam spamassassin spamc clamav \
php5-fpm php5-mysql php5-imap php5-sqlite \ php5-fpm php5-mysql php5-imap php5-sqlite php5-mcrypt \
supervisor rsyslog nginx \ supervisor rsyslog nginx \
&& apt-get clean && apt-get clean

@ -8,19 +8,35 @@ $config['des_key'] = 'rcmail-!24ByteDESkey*Str';
$config['identities_level'] = 3; $config['identities_level'] = 3;
$config['reply_all_mode'] = 1; $config['reply_all_mode'] = 1;
// List of active plugins (in plugins/ directory)
$config['plugins'] = array(
'archive',
'zipdownload',
'managesieve',
'markasjunk',
'password'
);
// Mail servers // Mail servers
$config['default_host'] = 'localhost'; $config['default_host'] = 'localhost';
$config['default_port'] = 143; $config['default_port'] = 143;
$config['smtp_server'] = 'localhost'; $config['smtp_server'] = 'localhost';
$config['smtp_port'] = 25; $config['smtp_port'] = 25;
// List of active plugins (in plugins/ directory) // Password management
$config['plugins'] = array( $config['password_driver'] = 'sql';
'archive', $config['password_confirm_current'] = true;
'zipdownload', $config['password_minimum_length'] = 6;
'managesieve', $config['password_db_dsn'] = 'sqlite:////data/freeposte.db';
'markasjunk' $config['password_query'] = '
); UPDATE user SET password=%D
WHERE id IN (SELECT user.id FROM user
INNER JOIN domain ON domain.id=user.domain_id
WHERE domain.name=%d AND user.name=%l
)
';
$config['password_dovecotpw'] = 'doveadm pw';
$confog['password_dovecotpw_method'] = 'SHA512-CRYPT';
// skin name: folder from skins/ // skin name: folder from skins/
$config['skin'] = 'larry'; $config['skin'] = 'larry';

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/bash
cat <<< EOF cat << EOF
__ _ _ __ _ _
/ _| | | (_) / _| | | (_)
| |_ _ __ ___ ___ _ __ ___ ___| |_ ___ _ ___ | |_ _ __ ___ ___ _ __ ___ ___| |_ ___ _ ___
| _| '__/ _ \/ _ \ '_ \ / _ \/ __| __/ _ \ | |/ _ \ | _| '__/ _ \\/ _ \\ '_ \\ / _ \\/ __| __/ _ \\ | |/ _ \\
| | | | | __/ __/ |_) | (_) \__ \ || __/_| | (_) | | | | | | __/ __/ |_) | (_) \\__ \\ || __/_| | (_)|
|_| |_| \___|\___| .__/ \___/|___/\__\___(_)_|\___/ |_| |_| \\___|\\___| .__/ \\___/|___/\\__\\___(_)_|\\___/
| | | |
|_| |_|
@ -23,15 +23,14 @@ mkdir -p \
/data/mail \ /data/mail \
/data/webmail/tmp \ /data/webmail/tmp \
/data/logs \ /data/logs \
/data/logs/webmail \
/data/ssl /data/ssl
# Create the main database if necessary # Create the main database if necessary
if [ ! -f /data/freeposte.db ] [ -f /data/freeposte.db ] || sqlite3 /data/freeposte.db .databases > /dev/null
sqlite3 /data/freeposte.db .databases > /dev/null
fi
# Fixing permissions # Fixing permissions
chown mail:mail /data/freeposte.db chown mail:www-data /data/freeposte.db
chown -R mail:mail /data/mail chown -R mail:mail /data/mail
chown -R www-data:www-data /data/webmail /data/logs/webmail chown -R www-data:www-data /data/webmail /data/logs/webmail

Loading…
Cancel
Save