1

Topic: Unable to connect to managesieve on 127.0.0.1:4190

- iRedMail version: 1.0-beta2 MARIADB edition
- Deployed with  downloadable installer
- Linux/BSD distribution name and version: debian10
- Store mail accounts in MySQL backend
- Web server: Nginx

Hi,

reinstalled iRedMail 0.9.9 to 1.0-beta2 MARIADB edition.

Everything works fine, except when I try to create a new filter from roundcube web UI.

netstat:
-------8<------------------
# netstat -nptl|grep :4190
tcp        0      0 127.0.0.1:4190          0.0.0.0:*               LISTEN      709/dovecot
-------8<------------------

mail.log :
-------8<------------------
Dec  9 21:01:17 mail1 roundcube: ERROR: (TRYLATER) "Temporary authentication failure. [mail1.domain.tld:2019-12-09 20:01:17]" (3)
Dec  9 21:01:17 mail1 roundcube: <igbi3973> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /opt/www/roundcubemail-1.3.8/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /mail/?_task=mail&_action=plugin.managesieve&_framed=1&r[2]=To%3Ainfo%40domain.tld)
Dec  9 21:01:17 mail1 roundcube: ERROR: Not currently in AUTHORISATION state (1)
Dec  9 21:01:43 mail1 roundcube: ERROR: (TRYLATER) "Temporary authentication failure. [mail1.domain.tld:2019-12-09 20:01:43]" (3)
Dec  9 21:01:43 mail1 roundcube: <igbi3973> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /opt/www/roundcubemail-1.3.8/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /mail/?_task=mail&_action=plugin.managesieve&_framed=1&r[2]=To%3Ainfo%40domain.tld)
Dec  9 21:01:43 mail1 roundcube: ERROR: Not currently in AUTHORISATION state (1)
-------8<------------------

Any idea ?

----

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

2

Re: Unable to connect to managesieve on 127.0.0.1:4190

gilles.quenot wrote:

reinstalled iRedMail 0.9.9 to 1.0-beta2 MARIADB edition.

How did you "reinstall"?

gilles.quenot wrote:

Dec  9 21:01:17 mail1 roundcube: ERROR: (TRYLATER) "Temporary authentication failure. [mail1.domain.tld:2019-12-09 20:01:17]" (3)

It says "authentication failure", seems caused by incorrect username/password. Any related log in Dovecot log file (/var/log/dovecot/*.log)?

3 (edited by gilles.quenot 2019-12-10 14:11:05)

Re: Unable to connect to managesieve on 127.0.0.1:4190

What I have done :

cp -a /etc/postfix backup_postfix
cp -a /etc/nginx backup_nginx # tweaked between old and new versions (php-fpm is no more an unix socket...)
tar xjvf iRedMail-1.0-beta2.tar.bz2
cp iRedMail-0.9.9/config iRedMail-1.0-beta2
cd iRedMail-1.0-beta2
bash iRedMail.sh
cd
zcat mysql_dump-201912080041.sql.gz | mysql mysql
zcat sogo_dump-201912080041.sql.gz | mysql sogo
zcat vmail_dump-201912080042.sql.gz | mysql vmail
rsync -avP --delete  backup_nginx/ /etc/nginx/
rsync -avP --delete backup_postfix/ /etc/postfix/
crontab -e # flush duplicates entrys and test all scripts and 'GRANT ALL PRIVILEGES...' for wrong passwords in MariaDB
reboot

The log files (interesting) :

/var/log/dovecot/dovecot.log

Dec  8 00:55:06 mail1 dovecot: auth-worker(21012): Error: passwd-file /etc/dovecot/dovecot-master-users: User sogo_sieve_master@not-exist.com exists more than once

Tried to keep only last line in /etc/dovecot/dovecot-master-users but after restarting dovecot, still the issue

4

Re: Unable to connect to managesieve on 127.0.0.1:4190

gilles.quenot wrote:

What I have done :

We never try this way and it MAY mess up your server. I have no idea what's going under this way ... it won't change/update SQL structure (if there's any).

For the managesieve issue, try to turn on debug mode for IMAP in Roundcube and check log file:
https://docs.iredmail.org/debug.roundcubemail.html

5

Re: Unable to connect to managesieve on 127.0.0.1:4190

I have no errors in IMAP debug.

How can I just change the sieve password please ?

6

Re: Unable to connect to managesieve on 127.0.0.1:4190

Sieve password is the mailbox password.

7

Re: Unable to connect to managesieve on 127.0.0.1:4190

mailbox for admin user or postmaster ?

The password in the file /etc/dovecot/dovecot-master-users is in the form :

sogo_sieve_master@not-exist.com:{SSHA512}xxxxxxxxxxxxxxxxxxxx

is there a tool to generate the hash, maybe sha512sum ? But maybe it's salted ?

Thanks

8

Re: Unable to connect to managesieve on 127.0.0.1:4190

gilles.quenot wrote:

The password in the file /etc/dovecot/dovecot-master-users is in the form :

This file stores the Dovecot Master User, it can access all mailboxes withOUT knowing user's password.
FYI: https://docs.iredmail.org/dovecot.master.user.html