Am 23.10.24 um 17:59 schrieb Markus Winkler via dovecot:
Hi Stefan,

On 23.10.24 17:02, Stefan G. Weichinger via dovecot wrote:
I changed the setting slightly:

sieve = file:/home/vmail/%d/%u/sieve/scripts;active=/home/vmail/%d/%u/ sieve/.dovecot.sieve

edited filters in roundcube etc, checked symlink, looks ok

so in this directory:

/home/vmail/%d/%u/sieve

now there's:

1) the following symlink, right?:

.dovecot.sieve -> scripts/managesieve.sieve

2) and this file too?:

.dovecot.svbin

hm, no

root@mail2:/home/vmail/my.tld.at/stefan.weichin...@my.tld.at/sieve# ls -la
insgesamt 12
drwx------  3 vmail vmail 4096 23. Okt 16:55 .
drwx------ 19 vmail vmail 4096 23. Okt 17:30 ..
lrwxrwxrwx 1 vmail vmail 25 23. Okt 16:55 .dovecot.sieve -> scripts/managesieve.sieve
drwx------  3 vmail vmail 4096 23. Okt 16:55 scripts

root@mail2:/home/vmail/my.tld.at/stefan.weichin...@my.tld.at/sieve# ls -la scripts/
insgesamt 20
drwx------ 3 vmail vmail 4096 23. Okt 16:55 .
drwx------ 3 vmail vmail 4096 23. Okt 16:55 ..
-rw------- 1 vmail vmail  359 23. Okt 16:55 managesieve.sieve
-rw------- 1 vmail vmail  576 23. Okt 11:58 managesieve.svbin
drwx------ 2 vmail vmail 4096 23. Okt 16:55 tmp


So the binary version is in the subdir only.

I edited things over and over yesterday, I also had it both in one subdir already. On my own server, where sieve *works* I have:

sieve = file:/home/vmail/%d/%u/sieve/scripts;active=/home/vmail/%d/%u/sieve/scripts/.dovecot.sieve

I think I prefer that one, even if just to rule out that 2-dir-question.


But it seems sieve isn't really working to me.

Really strange ...

And another question - did you also change your 20-lmtp.conf, especially 'mail_plugins'?

Now your 'doveconf -n' shows (which seems OK to me):

protocol lmtp {
   mail_debug = yes
   mail_plugins = " notify quota acl sieve"
   postmaster_address = l...@xunil.at
}

but in your first posting you had this:

protocol lmtp {
  mail_debug = yes
  mail_plugins = sieve
  postmaster_address = l...@my.tld
}

I have to say that (after things broke) I disabled the whole
/etc/dovecot/conf.d subdir. The "doveconf -n" you see should be completely coming from dovecot.conf alone. I did that to avoid strange interactions etc / maybe that is wrong overall, I don't know.

As far as I understand it's valid like this also.

I edited that protocol section a few times yesterday.

To me it seems as if the sieve plugin isn't activated/used reliably.

I am quite sure that we use lmtp as transport between postfix and dovecot, so that *should* work.

I suspected that leading space also that is seen often:

mail_plugins = " notify quota acl sieve"

it wouldn't be there if I write

mail_plugins = sieve

so I also tried that

And one last question: are there any log entries regarding LMTP and Sieve while delivering a new mail to a mailbox with active filters?

way too little I think

I just check one of my Bookworm systems with a quite similar setup but with the original Debian Dovecot packages:

# 2.3.19.1 (9b53102964): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.19 (4eae2f79)
# OS: Linux 6.1.0-26-amd64 x86_64 Debian 12.7 ext4

and don't have any problems with Sieve - it just works.

Maybe some package is missing or some library, I don't know yet.

there is a package dovecot-sieve and dovecot-sieve-dev and a package dovecot-pigeonhole-dbg, but no package dovecot-pigeonhole itself. Maybe ok, I don't know.

-

I will try to correct the "sieve" parameter and see how to filter out a relevant part of the logs.

Thanks so far.

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to