Resolving the File Attachment Conflict in Roundcube

If you see the following error when setting up Roundcube’s Enigma plugin for encryption the following article should solve the issue.

Error:

PHP Error: Can use only one plugin for attachments/file uploads! Using 'filesystem_attachments', ignoring others. in /var/www/roundcube/plugins/filesystem_attachments/filesystem_attachments.php

Steps to Fix:

  1. Open the main Roundcube configuration file: nano /var/www/roundcube/config/config.inc.php
  2. Locate the $config['plugins'] array and remove filesystem_attachments: $config['plugins'] = array('enigma', /* other plugins */);
  3. Save the file and exit.
  4. Clear Roundcube’s cache to ensure the changes are applied: php /var/www/roundcube/bin/cleardbcache
  5. Restart the web server: sudo systemctl restart apache2

Why This Happens

  • The filesystem_attachments plugin and the Enigma plugin both attempt to manage file uploads, leading to a conflict.
  • By disabling the filesystem_attachments plugin, Enigma can properly handle attachments, such as encrypted keys or messages.

Alternative

If you absolutely need the filesystem_attachments plugin:

  • Review its documentation to see if you can configure it to coexist with the Enigma plugin.
  • Alternatively, consider modifying one of the plugins to prioritize its behavior (this may require advanced customization).

Categories: webmail

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *