1

Topic: Debian 13 Trixie - All works but Settings - Forward Rules

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Latest IRedMail Release
Debian Trixie (upgraded by mistake)
Backend (MySQL)
Web Svr Nginx
Manage accts with IRedAdmin

I can send/receive mail just fine, but in Web Interface Settings (RoundCube) I cannot set new filters and I get "Cannot Connect to Server" Error.   

From Log:
2025-12-21T08:29:01.242113-05:00 mail roundcube: <98cced7d> PHP Error: BYE "Internal error occurred. Refer to server log for more information. [2025-12-21 08:29:01]" (GET /mail/?_task=settings&_action=plugin.managesieve-forward)
2025-12-21T08:29:01.242212-05:00 mail roundcube: <98cced7d> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /opt/www/roundcubemail-1.6.11/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 227 (GET /mail/?_task=settings&_action=plugin.managesieve-forward)
2025-12-21T08:29:01.272582-05:00 mail ool inet: <98cced7d> PHP Error: Not currently connected (GET /mail/?_task=settings&_action=plugin.managesieve-forward)

----

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

2

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Is Dovecot listening on port 4190 for managesieve service?
For example:

service managesieve-login {
    inet_listener sieve {
        listen = 127.0.0.1
        port = 4190
    }
}

3

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Yes, it seems to be set properly :  I found the below in the /etc/dovecot.conf file on line 587

service managesieve-login {
    inet_listener sieve {
        listen = 127.0.0.1
        port = 4190
    }
}

4

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Any related error in log files under /var/log/dovecot/?

5

Re: Debian 13 Trixie - All works but Settings - Forward Rules

This is the tail from the log file you mentioned.

2025-12-21T15:04:51.421495-05:00 mail dovecot: sieve(michael@atni.net)<889020><XFPG0ntGSIx/AAAB>: Error: sieve: file storage: Sieve storage path '/var/vmail/vmail1/atni.net/m/i/c/michael-2024.07.08.14.13.36//sieve/dovecot.sieve' is not a directory, but it is to be opened for write access
2025-12-21T15:04:58.118692-05:00 mail dovecot: sieve(michael@atni.net)<889032><CYMs03tGYI9/AAAB>: Error: sieve: file storage: Sieve storage path '/var/vmail/vmail1/atni.net/m/i/c/michael-2024.07.08.14.13.36//sieve/dovecot.sieve' is not a directory, but it is to be opened for write access

6

Re: Debian 13 Trixie - All works but Settings - Forward Rules

This is what that file from the log error looks like permission wise

root@mail:/var/vmail/vmail1/atni.net/m/i/c# ls
michael-2024.07.08.14.13.36
root@mail:/var/vmail/vmail1/atni.net/m/i/c# ls -l
total 4
drwx------ 4 vmail vmail 4096 Jul  8  2024 michael-2024.07.08.14.13.36
root@mail:/var/vmail/vmail1/atni.net/m/i/c#

7

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Is this a directory, a file, or a symbol link?
/var/vmail/vmail1/atni.net/m/i/c/michael-2024.07.08.14.13.36//sieve/dovecot.sieve

8

Re: Debian 13 Trixie - All works but Settings - Forward Rules

It is a Directory

root@mail:/var/vmail/vmail1/atni.net/m/i/c# ls -l michael-2024.07.08.14.13.36/
total 16
drwx------ 133 vmail vmail 12288 Dec 23 07:25 Maildir
drwx------   3 vmail vmail  4096 Dec  4 20:10 sieve

9

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Just to be clear ALL users get the same error not just a single user

10

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Apparently inside that directory there however a sim link

root@mail:/var/vmail/vmail1/atni.net/m/i/c/michael-2024.07.08.14.13.36/sieve# ls
dovecot.sieve  dovecot.sieve.log  dovecot.svbin  managesieve.sieve  tmp
root@mail:/var/vmail/vmail1/atni.net/m/i/c/michael-2024.07.08.14.13.36/sieve# ls -l
total 16
lrwxrwxrwx 1 vmail vmail   17 Jul  8  2024 dovecot.sieve -> managesieve.sieve
-rw------- 1 vmail vmail  493 Jul 10  2024 dovecot.sieve.log
-rw------- 1 vmail vmail  252 Dec  4 20:10 dovecot.svbin
-rw------- 1 vmail vmail   18 Jul  8  2024 managesieve.sieve
drwx------ 2 vmail vmail 4096 May  3  2025 tmp
root@mail:/var/vmail/vmail1/atni.net/m/i/c/michael-2024.07.08.14.13.36/sieve#

11

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Here is the error:

2025-12-23T08:48:42.224309-05:00 mail roundcube: PHP Deprecated:  session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in /opt/www/roundcubemail-1.6.11/program/lib/Roundcube/rcube_session.php on line 119
2025-12-23T08:48:42.339917-05:00 mail roundcube: <e0c85663> PHP Error: BYE "Internal error occurred. Refer to server log for more information. [2025-12-23 08:48:42]" (GET /mail/?_task=settings&_action=plugin.managesieve-forward)
2025-12-23T08:48:42.340032-05:00 mail roundcube: <e0c85663> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /opt/www/roundcubemail-1.6.11/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 227 (GET /mail/?_task=settings&_action=plugin.managesieve-forward)
2025-12-23T08:48:42.357051-05:00 mail ool inet: <e0c85663> PHP Error: Not currently connected (GET /mail/?_task=settings&_action=plugin.managesieve-forward)

12

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Turns out it's a bug of the sample Dovecot config file offered in our upgrade tutorial. Please fix it with steps below:

- Replace the 3 `sieve_script` blocks by below ones. Note: If you use different path for mailbox storage, please replace `/var/vmail` by the real path.

sieve_script global {
    type = global
    driver = file
    path = /var/vmail/sieve
}

sieve_script before {
    type = before
    driver = file
    path = /var/vmail/sieve
    active_path = /var/vmail/sieve/dovecot.sieve
}

sieve_script personal {
    type = personal
    driver = file
    path = ~/sieve
    active_path = ~/sieve/dovecot.sieve
}

- Restart dovecot service.

13

Re: Debian 13 Trixie - All works but Settings - Forward Rules

Zhang thank you so much !  That absolutely resolved my problem.   I appreciate you