Roundcube/Plugin/managesieve
Managesieve
Writes sieve scripts to filter the incoming mails (reject, move to a specific folders etc.). Note that to use this you must have Dovecot managesieve enabled.
- Plugin name: managesieve
- Requires: Dovecot Pigeonhole
- Shipped with Roundcube
cd /var/www/roundcube/plugins cd managesieve cp -p config.inc.php.dist config.inc.php
Modify in such a way the config file. Remember that the port of the dovecot-managesive service is now 4190 (2000 is obsolete).
$config['managesieve_port'] = 4190; $config['managesieve_host'] = '<mail-server-IP>'; // Enables separate management interface for vacation responses (out-of-office) $config['managesieve_vacation'] = 1; // Enables separate management interface for setting forwards (redirect to and copy to) $config['managesieve_forward'] = 1;
NB: <mail-server-IP> is the IP address of your mail server (localhost if qmail
and sql
share the same IP).
And this is what you are going to see in the dovecot log simply setting a redirect filter
Oct 22 00:03:13 lda(test@yourdomain.net): Info: sieve: msgid=<c3445037f979a8cb793df1f858b7a4f9@somedomain.com>: forwarded to <someone@somewhere.net>
Remember that, in order to the sieve rules to take place, you have to setup the .qmail
file at least for that user or the entire domain as explained earlier in the sieve note about Dovecot, otherwise the LDA will be vpopmail
instead of Dovecot
and the sieve rules will be ignored.
After ages of RoundCube usage I finally became aware ofthe fact that this plugin has separate management interface for vacation responses and forwarding!
It's worth to remember that using a sieve script for the forwarding breaks both SPF
and DKIM.