Topic: [SOLVED] Managesieve filters aren't working despite being loaded
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 PGSQL edition.
- Linux/BSD distribution name and version: Debian GNU/Linux 8 (jessie)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? Nope.
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I was going through topics related to sieve filters set through Roundcube not working, since I set them through Roundcube myself. Following instructions on those threads, checking /var/vmail/vmail1/.../sieve/dovecot.sieve for instructions, setting mail_debug in /etc/dovecot/dovecot.conf and checking the logs for dovecot and dovecot-sieve, I see no reason the scripts shouldn't be working.
From /var/log/dovecot.log:
May 29 23:35:02 chiba dovecot: lda: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so
May 29 23:35:02 chiba dovecot: lda(user@domain.tld): Debug: sieve: Pigeonhole version 0.4.2 initializing
May 29 23:35:02 chiba dovecot: lda(user@domain.tld): Debug: sieve: executed before user's personal Sieve script(1): /var/vmail/sieve/dovecot.sieve
May 29 23:35:02 chiba dovecot: lda(user@domain.tld): Debug: sieve: using the following location for user's Sieve script: /var/vmail/vmail1/domain.tld/u/s/e/user-2017.03.31.11.21.17//sieve/dovecot.sieve;name=main script
And the contents of the sieve file:
require ["fileinto"];
# rule:[Mailing Lists]
if address :contains "to" "lists@domain.tld"
{
fileinto "INBOX/Lists";
}
I also tried with the sieve file containing the rule:
if header :contains "to" "lists@domain.tld"
{
fileinto "INBOX/Lists";
}
But when I send an e-mail from outside to the address lists@domain.tld, it goes into my INBOX folder like every other e-mail.
The logs show it's properly recognizing the per-user sieve file. I also tried putting that same rule in /var/vmail/sieve/dovecot.sieve, to see if it'd work, but it doesn't.
What am I missing?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.