![spamsieve for linux spamsieve for linux](https://www.matronix.fr/wp-content/uploads/2021/04/image-1-600x532@2x.png)
Implementing server-side email filtering to the mailserver set-up with virtual users and domains using Postfix and Dovecot adds another great and useful feature. Now you can login to your Roundcube WebMail, navigate to Settings > Filters and create new filter sets and/or filter rules. $rcmail_config = '/etc/dovecot/sieve/default.sieve' To be able to manage server-side filter rules through Roundcube, we need to enable the manage-sieve plugin by editing few configuration files.Ĭhange to Roundcube’s document root in /var/$rcmail_config = array('managesieve')
![spamsieve for linux spamsieve for linux](https://www.matronix.fr/wp-content/uploads/2021/04/image-3-597x600@2x.png)
The email should be flagged as SPAM by SpamAssassin and moved to the Spam maildir by Dovecot LDA With all that in place, send an email to some email account on the server using the subject below XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X Restart postfix for the changes to take effect # service postfix restart Set protocols to protocols = imap lmtp sieveĪdd auth-master unix-listener to service auth service auth Once the package is installed, navigate to dovecot’s configuration directory in /etc/dovecot and edit the main configuration file nf # cd /etc/dovecot
#Spamsieve for linux install#
In order to enable ManageSieve protocol in Dovecot we need to install the dovecot-pigeonhole package using ‘yum’ # yum install dovecot-pigeonhole Additionally, one can easily manage these filter rules via Roundcube’s web interface.īefore proceeding any further, make sure you are in a screen session and check if your CentOS Linux VPS is fully up-to-date by running: # screen -U -S sieve-screen It’s great because it adds support for the Sieve language ( RFC 5228) and the ManageSieve protocol (RFC 5804) to the Dovecot Secure IMAP Server. The project behind this is known as Pigeonhole. It covers the steps used to set-up server-side email filtering with Dovecot Sieve and Roundcube on a CentOS 6 VPSĪt the end of this article you will end up having the ability to set-up your own server-side mail filter rules and automatically deliver emails to specific maildir based on a filter rule. The following article is part 6 of the mailserver set-up with virtual users and domains using Postfix and Dovecot series.