1

Topic: empty sieve log - sieve not working

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubunto 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have sieve rules in standard location but they don't seem to be loading
I turned on debug but /var/log/dovecot/sieve.log is empty
But /var/log/dovecot/dovecot.log shows this.

My understanding is that sieve in iredmail does not need compiling so not sure how to resolve this

====
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: Pigeonhole version 0.4.13 (7b14904) initializing
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: file storage: Storage path `/var/vmail/vmail1/xxxx.com/m/a/i/mail-2018.01.14.00.16.41//sieve' not found
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: file storage: Failed to normalize active script directory (path=/var/vmail/vmail1/xxxx.com/m/a/i/mail-2018.01.14.00.16.41//sieve): Part of the path does not exist (yet)
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: file storage: Using Sieve script path: /var/vmail/vmail1/xxxx.com/m/a/i/mail-2018.01.14.00.16.41//sieve/dovecot.sieve
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: file storage: Storage path `/var/vmail/vmail1/xxxx.com/m/a/i/mail-2018.01.14.00.16.41//sieve/dovecot.sieve' not found
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: storage: No default script location configured
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: User has no personal script
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: file storage: Using Sieve script path: /var/vmail/sieve/dovecot.sieve
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: file script: Opened script `dovecot' from `/var/vmail/sieve/dovecot.sieve'
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: Executed before user's personal Sieve script(1): /var/vmail/sieve/dovecot.sieve
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: Loading script /var/vmail/sieve/dovecot.sieve
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: file script: Sieve binary `/var/vmail/sieve/dovecot.svbin' is not newer than the Sieve script `/var/vmail/sieve/dovecot.sieve' (2018-01-18 13:35:34 <= 2018-01-28 08:37:10)
Jan 28 10:00:33 mail dovecot: lda(mail@xxxx.com): Debug: sieve: binary up-to-date: script metadata indicates that binary /var/vmail/sieve/dovecot.svbin is not up-to-date
Jan 28 10:00:33 mail dovecot: lda(mail@firstoption.com): Debug: sieve: Script binary /var/vmail/sieve/dovecot.svbin is not up-to-date
====

----

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

2 (edited by timcons 2018-01-28 18:56:07)

Re: empty sieve log - sieve not working

I went ahead to manually compile using  sudo sievec /var/vmail/sieve/dovecot.sieve

I discovered some errors from illegal characters from my editor

I resolved this and manual compile succeeds

But /var/log/dovecot/sieve.log is still empty

If I make further changes to sieve rules, please clarify if I need to re-compile each time or not

3

Re: empty sieve log - sieve not working

Did you check other log files under /var/log/dovecot/?

4

Re: empty sieve log - sieve not working

Did you check other log files under /var/log/dovecot/?

Errr, I thought sieve logs would be in sieve.log !   Silly me ;-)

I found some sieve logging in lda.log

But could you answer this part of the query :

If I make further changes to sieve rules, please clarify if I need to re-compile each time or not