Rules do not work

They are completely ignored.
I use 90% of times “from”, “contains” and a part of the email (usually domain).
For example “From”, “Contains”, “ebay.com” and move to a folder AND stop processing filter conditions.

No go for any of the rules I added.

Note that roundcube shows webtop5 rules properly. So they seem to be stored properly. Still, server doesn’t run them.

Please verify whether the issue is reproducible with another account.

Also, check the Mail app in the Logs page to see if there are any log records from “sieve” when a message is delivered.

If I recall correctly, only one Sieve script is active and evaluated for incoming messages. Decide whether you want to use Webtop or Roundcube to configure the active Sieve filter.

Roundcube has a specific option to choose which script (filter rule group) to enable. Webtop does not, likely because it assumes it is the only Sieve client for the mailbox.

I am using only webtop. I visited roundcube only to see if I can see webtop rules (and I see them). I don’t have any roundcube rules.

Checking webtop log first, I see this:

2024-09-24T00:37:33+03:00 [1:webtop1:apache] 10.0.2.100 - - [23/Sep/2024:21:37:32 +0000] "GET /webtop/resources/com.sonicle.webtop.mail/5.22.1/laf/default/<mark>sieve</mark>filter_16.svg HTTP/1.1" 200 856 2024-09-24T21:33:14+03:00 [1:webtop1:apache] 10.0.2.100 - - [24/Sep/2024:18:33:14 +0000] "GET /webtop/resources/com.sonicle.webtop.mail/5.22.1/laf/default/<mark>sieve</mark>filter_16.svg HTTP/1.1" 200 856 2024-09-25T00:42:58+03:00 [1:webtop1:apache] 10.0.2.100 - - [24/Sep/2024:21:42:58 +0000] "GET /webtop/resources/com.sonicle.webtop.mail/5.22.1/laf/default/<mark>sieve</mark>filter_16.svg HTTP/1.1" 200 856

In roundcube…

2024-09-25T01:05:37+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:05:37 +0000] "GET /plugins/managesieve/managesieve.min.js?s=1722764714 HTTP/1.1" 200 7057 "https://roundcube.ilogic.gr/?_task=mail&_token=iYRjKof8LzDysWn64HeHdUxoxgswUGVW" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:07:58+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:07:58 +0000] "GET /plugins/managesieve/managesieve.min.js?s=1722764714 HTTP/1.1" 200 7057 "https://roundcube.ilogic.gr/?_task=mail&_caps=pdf%3D1%2Cflash%3D0%2Ctiff%3D0%2Cwebp%3D1%2Cpgpmime%3D0&_uid=23182&_mbox=INBOX&_action=show&_extwin=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:04+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:04 +0000] "GET /?_task=settings&_action=plugin.managesieve HTTP/1.1" 200 5186 "https://roundcube.ilogic.gr/?_task=settings&_action=responses" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:04+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:04 +0000] "GET /plugins/managesieve/managesieve.min.js?s=1722764714 HTTP/1.1" 200 7057 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:04+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:04 +0000] "GET /skins/elastic/watermark.html HTTP/1.1" 200 775 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:10+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:10 +0000] "GET /?_task=settings&_action=plugin.managesieve-action&_framed=1&_fid=0 HTTP/1.1" 200 8699 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:42+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:41 +0000] "GET /?_task=settings&_action=plugin.managesieve-action&_framed=1&_fid=1 HTTP/1.1" 200 12567 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:43+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:42 +0000] "GET /?_task=settings&_action=plugin.managesieve-action&_framed=1&_fid=6 HTTP/1.1" 200 7630 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:45+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:45 +0000] "GET /?_task=settings&_action=plugin.managesieve-action&_framed=1&_fid=5 HTTP/1.1" 200 10000 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:49+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:49 +0000] "GET /?_task=settings&_action=plugin.managesieve-action&_framed=1&_fid=0 HTTP/1.1" 200 8699 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
2024-09-25T01:09:50+03:00 [1:roundcubemail1:roundcubemail-app] 10.0.2.100 - - [24/Sep/2024:22:09:50 +0000] "GET /?_task=settings&_action=preferences HTTP/1.1" 200 4174 "https://roundcube.ilogic.gr/?_task=settings&_action=plugin.managesieve" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"

In mail log:
2024-09-24T00:37:23+03:00 [1:mail1:dovecot] managesieve-login: Login: user= - Pastebin.com

This is a Roundcube screenshot to check the “filter sets”.

Go to Settings > Filters > Actions > Enable/disable filter set

Ensure you have enabled the script from Webtop.

Erm… that’s a bit weird instruction. :smiley:
Enable webtop rules from roundcube?

In any case they were enabled, I toggled it (disable/enable) and will check if they work and get back to you.

1 Like

OK this seems to have done the trick. (I will need to see it working more within the day to be sure)
A residue from migration?
I cannot file it as a bug, because I tested another user and the rule worked.

Do you mean the rule set from another IMAP account that was migrated from NS7, like yours?

No rules were migrated.
But I don’t know what could be the issue…

Btw still no go after all.
It worked once.
Note that I even turned on NS7 (since I didn’t migrate webtop, I wanted to check if I used the same kind of rules) and indeed the rules that worked were looking the same (so nothing wrong with the actual rules).
Weird…

Do you mean the rule set from another IMAP account that was migrated from NS7, like yours?

I just tried another account. Made a new rule, as I did not migrate webtop anyway plus that user didn’t have any rules anyway.
That rule worked.

My own rules (my account) which is a much bigger set, seems to have worked once (at I saw a single email move) then nothing.
Again: In NS8 I rewrote rules from scratch. I did not do webtop migration (if you remember, webtop was stopping me from migrating to NS8).

See this…

You can check the currently active sieve script from the command line with a command like

runagent -m mail1 podman exec dovecot ls -lta davidep

Replace “davidep” and “mail1” with your values. Output should be similar:

total 20
drwx------   28 vmail    vmail         4096 Sep 25 08:17 Maildir
drwx------  106 vmail    vmail         4096 Sep 24 16:01 ..
-rw-------    1 vmail    vmail         5496 Apr  5 11:10 .dovecot.sieve.log
drwx------    4 vmail    vmail          104 Jan 30  2023 .
-rw-------    1 vmail    vmail         1549 Jan 30  2023 .dovecot.svbin
drwx------    3 vmail    vmail           40 Oct  6  2021 sieve
lrwxrwxrwx    1 vmail    vmail           21 Oct  6  2021 .dovecot.sieve -> sieve/roundcube.sieve

Note the symlink .dovecot.sieve -> sieve/roundcube.sieve

If something is wrong in the sieve script, its log file could contain useful information:

runagent -m mail1 podman exec dovecot cat davidep/.dovecot.sieve.log


no log file I can see…

Anybody?

I use WebTop to define the rules.
But now I check them using RoundCube.
Here is an example, maybe WebTop (current version) has a bug defining the rules?
See this:


…so it uses tag “…” and three “from” strings (different capitalization) to match if sender email contains “e-mails.microsoft.com”.
But is this correct?

See here:


…seems there is a special tag for actual “from”. Is it synonymous? Or how WebTop defines them is just wrong?

Remember the rules were NOT migrated, accounts were migrated, but without WebTop. So I rewrote the rules (again: In WebTop).

Any ideas? I need to have this working… E-mail server not doing filtering?
As I mentioned above, I don’t see a log generated. Which could simply mean that sieve is never matching anything? Or sieve not working?

I really need some help with this. :frowning:
Anybody has any idea?
You told me to see the log but sieve log isn’t even generating.

Where those three “FROM” entries generated by hand or by webtop?

sieve treats envelope-parts (from, to, cc, bcc…) as case insensitive, so shouldn’t matter if it’s “From”, “FROM” or “from”. Don’t know if webtop uses different forms or check against coincidence of a specific “from” within the code, but a single instance of “From” should be enough for sieve.

Have you tried behaviour creating the sieves rules from roundcube instead? (maybe deleting all the current rules beforehand, just to start from a clean slate).

Not by me. I suspect by webtop when I selected “from”, “contains”.
I actually even experimented and from roundcube, I edited one of the rules to remove the three “from” (in different cases) and reselect “from” field.
It still replaced that field with the three cases when I refreshed to see the rule.
Note than within webtop it shows a single “from”.
So I suspect it is just how it works and roundcube just shows the “internals” (you can also see the xml).
…now that I say… maybe I should post that xml?

I haven’t tried DOING the rules in roundcube no, because I don’t normally use it and because someone said that cannot have both roundcube and webtop rules on the server? (???)
In the end I may end up redoing them all on roundcube, but I suspect this is not the issue (because (a) roundcube wouldn’t see those rules, yet it shows them ok and (b) I think the xml seems clean to me anyway, but I didn’t look too deep).

Note that the xml shows the same thing even if I select subject or to. It makes all three cases. So it must be how it works.

my bad, I mixed up the screenshots in my mind

Here is the xml (removed personal but they are similar) …erm… it is not xml, but anyway.
# Generated by WebTop [http://www.sonicle.com]# com.sonicle.webtop.mail@5.22.1 - Pastebin.com