iredmail / dockerized

Official dockerized iRedMail.
https://www.iredmail.org/
278 stars 71 forks source link

How to install custom plugins in roundcube? #65

Closed ryan77627 closed 3 years ago

ryan77627 commented 3 years ago

I was wondering how to add plugins to Roundcube. I have added the necessary files under my custom/roundcube/plugins directory, but have no way to add the plugin to the config.inc.php plugins parameter. How can i get iRedMail to include it?

I have tried restarting the container to see if it would rebuild with it in, but it did not. I'm not sure if that's something wrong on my end or not.

What is the proper way to enable plugins?

iredmail commented 3 years ago

Declare parameter $config['plugins'] in /opt/iredmail/custom/roundcube/custom.inc.php, it will override the one in /opt/www/roundcubemail/config/config.inc.php. For example:

$config['plugins'] = array('managesieve', 'password', 'markasjunk', 'my-plugin-1', 'my-plugin-2');
ryan77627 commented 3 years ago

Thank you!