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