mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-23 02:27:05 +00:00
Enabled Managesieve Plugins for Dovecot and Roundcube
This commit is contained in:
parent
41b3df6d78
commit
d0eec33921
29
setup/managesieve.sh
Executable file
29
setup/managesieve.sh
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
# Managesieve: Manage a user's sieve script collection.
|
||||||
|
#######################################################
|
||||||
|
|
||||||
|
source setup/functions.sh # load our functions
|
||||||
|
source /etc/mailinabox.conf # load global vars
|
||||||
|
managesieveDir=$STORAGE_ROOT/mail/managesieve
|
||||||
|
|
||||||
|
apt_install \
|
||||||
|
dovecot-managesieved
|
||||||
|
|
||||||
|
cat - > /etc/dovecot/conf.d/90-sieve.conf << EOF;
|
||||||
|
##
|
||||||
|
## Settings for the Sieve interpreter
|
||||||
|
##
|
||||||
|
plugin {
|
||||||
|
# The path to the user's main active script. If ManageSieve is used, this the
|
||||||
|
# location of the symbolic link controlled by ManageSieve.
|
||||||
|
sieve = $managesieveDir/%d/%n/.dovecot.sieve
|
||||||
|
|
||||||
|
# Directory for :personal include scripts for the include extension. This
|
||||||
|
# is also where the ManageSieve service stores the user's scripts.
|
||||||
|
sieve_dir = $managesieveDir/%d/%n
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
mkdir $managesieveDir
|
||||||
|
chown -R mail.mail $managesieveDir
|
||||||
|
|
||||||
|
service dovecot restart
|
@ -186,6 +186,7 @@ EOF
|
|||||||
. setup/dkim.sh
|
. setup/dkim.sh
|
||||||
. setup/spamassassin.sh
|
. setup/spamassassin.sh
|
||||||
. setup/web.sh
|
. setup/web.sh
|
||||||
|
. setup/managesieve.sh
|
||||||
. setup/webmail.sh
|
. setup/webmail.sh
|
||||||
. setup/management.sh
|
. setup/management.sh
|
||||||
|
|
||||||
@ -222,10 +223,8 @@ if [ -z "`tools/mail.py user`" ]; then
|
|||||||
echo "Okay. I'm about to set up $EMAIL_ADDR for you."
|
echo "Okay. I'm about to set up $EMAIL_ADDR for you."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the user's mail account. This will ask for a password if none was given above.
|
tools/mail.py user add $EMAIL_ADDR $EMAIL_PW # will ask for password if none given
|
||||||
tools/mail.py user add $EMAIL_ADDR $EMAIL_PW
|
tools/mail.py alias add hostmaster@$PRIMARY_HOSTNAME $EMAIL_ADDR
|
||||||
|
tools/mail.py alias add postmaster@$PRIMARY_HOSTNAME $EMAIL_ADDR
|
||||||
# Create an alias to which we'll direct all automatically-created administrative aliases.
|
|
||||||
tools/mail.py alias add administrator@$PRIMARY_HOSTNAME $EMAIL_ADDR
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ cat - > /usr/local/lib/roundcubemail/config/config.inc.php <<EOF;
|
|||||||
\$config['support_url'] = 'https://mailinabox.email/';
|
\$config['support_url'] = 'https://mailinabox.email/';
|
||||||
\$config['product_name'] = 'Mail-in-a-Box/Roundcube Webmail';
|
\$config['product_name'] = 'Mail-in-a-Box/Roundcube Webmail';
|
||||||
\$config['des_key'] = '$SECRET_KEY';
|
\$config['des_key'] = '$SECRET_KEY';
|
||||||
\$config['plugins'] = array('archive', 'zipdownload', 'password');
|
\$config['plugins'] = array('archive', 'zipdownload', 'password','managesieve');
|
||||||
\$config['skin'] = 'larry';
|
\$config['skin'] = 'larry';
|
||||||
\$config['login_autocomplete'] = 2;
|
\$config['login_autocomplete'] = 2;
|
||||||
\$config['password_charset'] = 'UTF-8';
|
\$config['password_charset'] = 'UTF-8';
|
||||||
|
Loading…
Reference in New Issue
Block a user