From 510be4f4bee446311d1d7ffc87b40601556f4e78 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 28 Dec 2025 15:19:46 +0100 Subject: [PATCH] enable managesieve,password plugins in Roundcube --- public/ispmail.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/public/ispmail.sh b/public/ispmail.sh index 814fe47..5a4d19c 100755 --- a/public/ispmail.sh +++ b/public/ispmail.sh @@ -5,8 +5,11 @@ # # License: Creative Commons BY-NC-SA license # -# Version 0.1 -# 2025-12-14 +# Version 0.1 / 2025-12-14 +# First release. +# +# Version 0.2 / 2025-12-28 +# Enable plugins (managesieve, password) in Roundcube # usage() { @@ -434,6 +437,13 @@ EOF sed -i "s|^\s*\$config\['imap_host'\]\s*=.*|\$config['imap_host'] = 'tls://$FQDN:143';|" /etc/roundcube/config.inc.php sed -i "s|^\s*\$config\['smtp_host'\]\s*=.*|\$config['smtp_host'] = 'tls://$FQDN:587';|" /etc/roundcube/config.inc.php + # Enable plugins + sed -i "/\$config\['plugins'\] = \[/,/\];/c\\ + \$config['plugins'] = [\\ + 'managesieve',\\ + 'password',\\ + ];" /etc/roundcube/config.inc.php + # Check if web interface is loading curl -s https://$FQDN | grep title | grep -q "Roundcube Webmail" if [[ $? -ne 0 ]]; then