1 (edited by Chrissicom 2017-08-28 20:29:41)

Topic: "Connection error" when managing sieve rules in SOGo

I am running the latest version of iRedMail with nginx and SOGo only (no Roundcubemail installed). When I try to manage sieve rules (vacation, forwarding) in SOGo I get a "Connection error" in the upper right. After logging out and logging back in again to SOGo the settings e.g. for forwarding are shown anyway. It seems they are only stored in SQL though and not written to disk.

/var/log/dovecot/sieve.log is showing this

Aug 28 13:38:47 orcus dovecot: managesieve-login: Login: user=<info@example.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13681, secured, session=<JrzgvM5XOI5/AAAB>
Aug 28 13:38:47 orcus dovecot: managesieve-login: Login: user=<info@example.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13683, secured, session=<gpnhvM5XOo5/AAAB>
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Error: sieve: file storage: Failed to stat active sieve script symlink (/var/vmail/vmail1/example.org/i/n/f/info-2017.08.28.13.21.22/sieve/dovecot.sieve): No data available.
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Error: sieve: file storage: Performing readlink() on active sieve symlink '/var/vmail/vmail1/example.org/i/n/f/info-2017.08.28.13.21.22/sieve/dovecot.sieve' failed: No data available
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Error: sieve: file storage: Performing readlink() on active sieve symlink '/var/vmail/vmail1/example.org/i/n/f/info-2017.08.28.13.21.22/sieve/dovecot.sieve' failed: No data available
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Error: sieve: file storage: Performing readlink() on active sieve symlink '/var/vmail/vmail1/example.org/i/n/f/info-2017.08.28.13.21.22/sieve/dovecot.sieve' failed: No data available
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Error: sieve: file storage: Performing readlink() on active sieve symlink '/var/vmail/vmail1/example.org/i/n/f/info-2017.08.28.13.21.22/sieve/dovecot.sieve' failed: No data available
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Error: sieve: file storage: Failed to stat active sieve script symlink (/var/vmail/vmail1/example.org/i/n/f/info-2017.08.28.13.21.22/sieve/dovecot.sieve): No data available.
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Connection closed bytes=105/284
Aug 28 13:38:47 orcus dovecot: managesieve(info@example.org): Connection closed bytes=0/17

Disclaimer: Domain is anonymized

When trying to send an e-mail to the address, /var/log/maillog shows the following:

Aug 28 13:47:03 eris amavis[5465]: (05465-10) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [2003::anon]:57373 [2003::anon] <mail@example.com> -> <info@example.org>, Queue-ID: C3F3724140E, Message-ID: <c65$
Aug 28 13:47:03 eris postfix/amavis/smtp[20530]: C3F3724140E: to=<info@example.org>, relay=127.0.0.1[127.0.0.1]:10026, delay=5.8, delays=0.11/0.01/0/5.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 7E03A24140D)
Aug 28 13:47:03 eris postfix/qmgr[1766]: C3F3724140E: removed
Aug 28 13:47:03 eris postfix/pipe[20545]: 7E03A24140D: to=<info@example.org>, relay=dovecot, delay=0.15, delays=0.01/0.03/0/0.11, dsn=4.3.0, status=deferred (temporary failure)

When looking at the directory where the sieve rule should be stored I see a "defective" file.

[root@orcus sieve]# ls -l
ls: cannot access dovecot.sieve: No data available
total 5
l????????? ? ?     ?        ?            ? dovecot.sieve
-rw------- 1 vmail vmail   26 Aug 28 13:50 sogo.sieve
drwx------ 2 vmail vmail 4096 Aug 28 13:50 tmp

What's going on there?
Thanks for any help in advance!



Edit:
Very strange, this seems to be a problem with the GlusterFS mail storage. When trying to create the symlink from dovecot.sieve to sogo.sieve manually I get the following error from ln "input/output error" and the situation is as shown above. This is only on the gluster.mount /var/vmail however, when I look at the GlusterFS Storage at /mnt/glusterfs/vmail the symlinks are fine. Hmmmm ....

----

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