1 (edited by FMB 2020-04-20 01:08:34)

Topic: [SOLVED] Messages no longer moved to folders according to Sieve rules

Sieve filter rules no longer seem to be evaluated: messages which ought to be moved to specific folders (according to Sieve rules specified via Roundcube) remain in the main folder. This could be related to the recent OS upgrade from Stretch to Buster. As far as I remember, the only configuration file I had to modify was /etc/dovecot/dovecot.conf.

Could you please point me to the relevant configuration files or logs (I could not find anything in /var/log/mail.{err,info,log,warn}) which could help me diagnose this issue?

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

----

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

2

Re: [SOLVED] Messages no longer moved to folders according to Sieve rules

Please check Dovecot log file(s) (/var/log/dovecot*) to figure it out, i expect Dovecot logs some error if sieve file can not be read or executed.

You may need to turn on debug mode in Dovecot to get detailed log.
FYI: https://docs.iredmail.org/debug.dovecot.html

3

Re: [SOLVED] Messages no longer moved to folders according to Sieve rules

Thanks ZhangHuangbin. I can see nothing out of the ordinary in logs (debug mode is enabled) apart from this message:

Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead

Here is my dovecot.conf file: https://bin.res-telae.cat/?7252cd1467be … VpuQgy2UW4

4

Re: [SOLVED] Messages no longer moved to folders according to Sieve rules

I think you didn't enable debug mode at all. You have "mail_debug = yes" in first line, but it was overwrote by the later line (line 45).
Please keep only one "mail_debug" and set it to "yes", restart Dovecot service, then send a testing email to trigger sieve filter. Let's see any useful info logged by Dovecot.

5

Re: [SOLVED] Messages no longer moved to folders according to Sieve rules

ZhangHuangbin wrote:

Let's see any useful info logged by Dovecot.

Thanks for you time. I found it in /var/log/sieve.log:

Error: sieve: Failed to initialize script execution: Invalid postmaster_address: invalid address `root' specified for the postmaster_address setting

which points us to this issue. I commented out "postmaster_address = root" in /etc/dovecot/dovecot.conf under "protocol lda", restarted dovecot, and messages are filtered correctly again!

By the way, should I worry about this warning: "autocreate plugin is deprecated, use mailbox { auto } setting instead"?

6

Re: [SOLVED] Messages no longer moved to folders according to Sieve rules

FMB wrote:

By the way, should I worry about this warning: "autocreate plugin is deprecated, use mailbox { auto } setting instead"?

It's not a mistake and won't cause mail delivery issue, so it's safe. But since this plugin is deprecated by upstream, it's better migrate it to the "mailbox {auto} setting". Search "auto =" in our sample dovecot.conf:
https://github.com/iredmail/iRedMail/bl … cot22.conf

FYI:

- https://doc.dovecot.org/settings/plugin … autocreate
- https://wiki.dovecot.org/MailboxSettings

7

Re: [SOLVED] Messages no longer moved to folders according to Sieve rules

Thanks!