1

Topic: sieve not saving

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.3 Mariadb edition
- Deployed with iRedMail Easy or the downloadable installer? std installer
- Linux/BSD distribution name and version: Rocky 9.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

This is a std install done approx 2 years ago. Don't know if any users have used sieve before.
I went into roundcube to assist a user in setting up an out of office reply. Upon clicking save, get this error message:
"Unable to connect to managesieve server"

- I checked that dovecot.conf contains sieve in prototcols.
- I checked that dovecot is listening on port 4190:
tcp        0      0 127.0.0.1:4190          0.0.0.0:*               LISTEN      4015862/dovecot     

- There's nothing in the sieve log - hasn't been touched for nearly 2 years
- I can't see anything relevant in dovecot.log or maillog

Please let me know how to find the appropriate log or debug settings.
Thanks,
Steve

----

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

2

Re: sieve not saving

More info:

I just found this in /var/log/messages:

Oct  5 19:43:58 wdmail php[491890]: <dhicjm3c> PHP Error: Not currently connected (POST /mail/?_task=settings&_action=plugin.managesieve-vacation)

But I'm not sure where to go from here.

3

Re: sieve not saving

also found this in /var/log/maillog, but don't know what to do with it:

Oct  5 19:55:47 wdmail roundcube[491903]: PHP Warning:  stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/www/roundcubemail-1.5.3/vendor/pear/net_socket/Net/Socket.php on line 159
Oct  5 19:55:47 wdmail roundcube[491903]: PHP Warning:  stream_socket_client(): Unable to connect to [127.0.0.1:4190]:4190 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /opt/www/roundcubemail-1.5.3/vendor/pear/net_socket/Net/Socket.php on line 159
Oct  5 19:55:47 wdmail roundcube[491903]: <dhicjm3c> PHP Error: php_network_getaddresses: getaddrinfo failed: Name or service not known (POST /mail/?_task=settings&_action=plugin.managesieve-vacation)
Oct  5 19:55:47 wdmail roundcube[491903]: <dhicjm3c> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190:4190 in /opt/www/roundcubemail-1.5.3/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 227 (POST /mail/?_task=settings&_action=plugin.managesieve-vacation)

4

Re: sieve not saving

More info:

The above errors imply failure to connect to managesieve on 127.0.0.1:4190

I tried telnet and it appears to connect ok, but I have no idea what to try next:

[root@wdmail ~]# telnet 127.0.0.1 4190
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
"IMPLEMENTATION" "Dovecot Pigeonhole"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext"
"NOTIFY" "mailto"
"SASL" "PLAIN LOGIN"
"STARTTLS"
"VERSION" "1.0"
OK "Dovecot ready."

5

Re: sieve not saving

Also I note that in the log it is showing the port number twice:

127.0.0.1:4190:4190

Is this the issue and where is it constructing this from?

6

Re: sieve not saving

What's in you roundecube config?

$config['managesieve_port'] = 4190;

$config['managesieve_host'] = 'localhost';

I only can asume that currently managesieve_host is set to "localhost:4190"

7

Re: sieve not saving

Spot on - thanks!

This is what was in my /opt/www/roundcubemail/plugins/managesieve/config.inc.php

// $config['managesieve_port'] = 4190;
$config['managesieve_host'] = 'tls://127.0.0.1:4190';

It seems as the port line was commented out, it was adding the default port to the host string even though it already had a port. All working now thanks.


Cthulhu wrote:

What's in you roundecube config?

$config['managesieve_port'] = 4190;

$config['managesieve_host'] = 'localhost';

I only can asume that currently managesieve_host is set to "localhost:4190"