1

Topic: roundcubemail filter not working

==== Required information ====
- iRedMail version (check /etc/iredmail-release): latest
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:

I have setup filter to store mails from server@domain.com to folder under inbox - server mails
but all mails gets into inbox and not in server mail folder.
And have no errors in mamagesieve
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: roundcubemail filter not working

I have enabled debug in dovecot and this is the only error which I get and don't know it is related to this.

Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl: initializing backend with data: vfile
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl: acl username = dennis@mydomain.com
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl: owner = 0
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl vfile: Global ACL directory: (none)
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Drafts/dovecot-acl not found
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Sent/dovecot-acl not found
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Junk/dovecot-acl not found
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Trash/dovecot-acl not found
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.INBOX.cron/dovecot-acl not found
Sep 18 15:02:47 imap(dennis@mydomain.com): Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/dovecot-acl not found

3

Re: roundcubemail filter not working

You should try to send a testing email to your account and trigger the filter, then check the Dovecot debug log.
Also, it's better to show us full mail filters in file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37/sieve/dovecot.sieve.

4

Re: roundcubemail filter not working

Everytime I send testing email from terminal as root I get this error in log.

here is sieve.dovecot

require ["fileinto","vacation"];
# rule:[Vacation]
if false # true
{
    vacation :days 1 "I'm on vacation.";
}
# rule:[logwatch]
if header :contains "from" "logwatch@mydomain.com"
{
    fileinto "INBOX/server";
}
# rule:[munin]
if anyof (header :contains "from" "munin@mydomain.com", header :contains "to" "root@mydomain.com")
{
    fileinto "INBOX/server";
}
# rule:[root]
if header :contains "from" "root@mydomain.com"
{
    fileinto "INBOX/server";
}

5

Re: roundcubemail filter not working

Ok finally I manage to make it work.
I did this from some other topic.

"$ mysql -uroot -p
mysql> USE vmail;
mysql> UPDATE domain SET transport='dovecot' WHERE domain='your_domain.com';"

And now managesieve filter works

But still have tons of ACL errors, how to fix that?
Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Drafts/dovecot-acl not found
Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Sent/dovecot-acl not found
Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Junk/dovecot-acl not found
Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.Trash/dovecot-acl not found
Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/.INBOX.cron/dovecot-acl not found
Debug: acl vfile: file /var/vmail/vmail/mydomain.com/d/a/m/dennis-2016.09.12.15.49.37//Maildir/dovecot-acl not found

6

Re: roundcubemail filter not working

This is not error, just normal logging by Dovecot.

7

Re: roundcubemail filter not working

thanks