ManageSieve is a protocol designed to manage email filters on servers that use the Sieve filtering language. Sieve is a standard language that allows you to define rules for processing incoming emails, such as moving them to specific folders, deleting them, or forwarding them.
HestiaCP provides a script designed to install and configure Sieve support on existing systems that are already running Hestia.
Running the Sieve Installation Script in HestiaCP
Simply access your server via SSH as the root user and run the following command:
# /usr/local/hestia/install/upgrade/manual/install_sieve.sh
This script will install the necessary packages and configure Sieve in HestiaCP.
Main Functions of the Script
-
Installing Required Packages
The script downloads and installs the packages required for Sieve to function correctly, including modules for Dovecot and virtual mail support. -
Configuring Dovecot
The Dovecot configuration files are modified to enable Sieve functionality and ensure that filters are automatically applied to incoming emails. -
Configuring Exim4
Exim4 is adjusted to work with Dovecot as the delivery agent, ensuring that emails are processed according to Sieve rules. -
Integration with Roundcube
If Roundcube is used as the webmail client, the script configures it so that users can manage their filters directly from the web interface.
Fixing Roundcube Permissions
Running the script as root will leave Roundcube configuration files with incorrect ownership, which may cause the web interface to show a 500 error. To fix this, run:
# chown -R hestiamail:www-data /etc/roundcube/
Conclusion
The HestiaCP install_sieve.sh script greatly simplifies the task of enabling Sieve on existing servers. It allows administrators and users to manage email filters centrally and securely, without the need to manually edit Dovecot or Exim configuration files. With proper preparation, including backups and fixing Roundcube permissions, running the script ensures a fast, reliable, and fully functional Sieve installation in HestiaCP.
We hope this tutorial has been helpful 🙂. Remember, if you have any questions about this or any other issue related to your servers on Clouding, do not hesitate to write to soporte@clouding.io. We are here to support you in anything you need!