Create (Sieve) Filters For Roundcube

Problem Description
Trying to create e-mail filters on server that syncs with all clients.

FBX developers actually solved this issue with the steps described here though, I don’t know why it wasnt implemented. If anybody wants to integrate filters to their e-mail, I hope the below helps.

PS. I didn’t know which category to post this in so, if any admin comes along and wants to move it to a better place, feel free to do so.

  1. Install necessary packages with the following
sudo apt update && sudo apt install roundcube-plugins roundcube-plugins-extra
  1. With sudo nano /etc/roundcube/config.inc.php add managesieve between the following lines
$config['plugins'] = array(	 	 
  'managesieve',	 	 
);
  1. Copy the generated file into the relevant plugin folder with
sudo cp /usr/share/roundcube/plugins/managesieve/config.inc.php.dist /etc/roundcube/plugins/managesieve/config.inc.php

Now, you will find “Filters” in your Roundcube webui setting panel. You can create a filter of your desire* under managesieve and all your clients will follow.

*I havent managed to create new “filter lists” but have had to create filters under managesieve. I’m happy that it’s working and didnt want to break it but if anyone knows how to, do respond to this post.

Information

  • FreedomBox version: FreedomBox version 23.5
  • Hardware: Pi4
  • How did you install FreedomBox?: FBX on top of Debian image for Pi

Hey thanks for this! It worked perfectly for me.

1 Like