Re: sievec fails when run as non-root - bug => caution with filename

2025-06-30 Thread Genes Lists via dovecot
On Mon, 2025-06-30 at 14:41 +0200, Christian Kivalo via dovecot wrote: > > > > ... > > possibly a default script). > >   2) ensure that certificate file must readable by all users, > > otherwise > > sievec will fail for non-root. > > Regarding your point about the certificate, there has been some

Re: sievec fails when run as non-root - bug => caution with filename

2025-06-30 Thread Christian Kivalo via dovecot
On June 30, 2025 1:44:44 PM GMT+02:00, Genes Lists via dovecot wrote: On Sun, 2025-06-29 at 16:25 -0400, Genes Lists via dovecot wrote: On Sun, 2025-06-29 at 15:04 -0400, Genes Lists via dovecot wrote: > On Sun, 2025-06-29 at 13:57 -0400, Genes Lists via dovecot wrote: I am not yet sure, but

Re: sievec fails when run as non-root - bug => caution with filename

2025-06-30 Thread Genes Lists via dovecot
On Sun, 2025-06-29 at 16:25 -0400, Genes Lists via dovecot wrote: On Sun, 2025-06-29 at 15:04 -0400, Genes Lists via dovecot wrote: On Sun, 2025-06-29 at 13:57 -0400, Genes Lists via dovecot wrote: I am not yet sure, but I  just renamed the "after" file from defa

Re: sievec fails when run as non-root - bug?

2025-06-29 Thread Genes Lists via dovecot
On Sun, 2025-06-29 at 15:04 -0400, Genes Lists via dovecot wrote: On Sun, 2025-06-29 at 13:57 -0400, Genes Lists via dovecot wrote: ... sieve_script after {     driver = file     path = /etc/dovecot/sieve     active_path = default.sieve } I am not yet sure,

Re: sievec fails when run as non-root - bug?

2025-06-29 Thread Genes Lists via dovecot
On Sun, 2025-06-29 at 13:57 -0400, Genes Lists via dovecot wrote: 1)  With 2.4.1, when a non-root user runs sievec on their own sieve scripts it fails to run due to permission denied on the dovecot certificate key (which is only readable by root). protocol lmtp {   p

Re: sievec: Misleading error message

2023-08-25 Thread Markus Schönhaber
25.08.23, 13:06 +0200, Robert Nowotny via dovecot: I would say "elsif" itself is a typo - in most languages it is "elseif". in that case both versions should be valid keywords - the current (but unusual) "elsif" and the more common "elseif" You are obviously entitled to your opinion, but wha

Re: sievec: Misleading error message

2023-08-25 Thread Robert Nowotny via dovecot
I would say "elsif" itself is a typo - in most languages it is "elseif". in that case both versions should be valid keywords - the current (but unusual) "elsif" and the more common "elseif" this would not introduce downsides but makes programmers life a bit more easy. Am 25.08.2023 um 12:38

Re: sievec *.sieve problem.

2019-11-05 Thread Reio Remma via dovecot
On 05/11/2019 10:03, Sami Ketola via dovecot wrote: On 5 Nov 2019, at 9.53, Reio Remma via dovecot > wrote: Hello! For the second time I've tripped onto this banana peel. :) I had 2 sieve files in a directory that I wanted to compile: sievec *.sieve The result

Re: sievec *.sieve problem.

2019-11-05 Thread Sami Ketola via dovecot
> On 5 Nov 2019, at 9.53, Reio Remma via dovecot wrote: > > Hello! > > For the second time I've tripped onto this banana peel. :) > > I had 2 sieve files in a directory that I wanted to compile: > > sievec *.sieve > > The result of this is that first.sieve is compiled into second.sieve inst

Re: sievec prints an error if no dovecot running with mail_plugins = stats

2018-06-25 Thread Stephan Bosch
Op 12/06/2018 om 19:28 schreef SATOH Fumiyasu: Dovecot 2.2.36 + Pigeonhole 0.4.24 Is this an intended behavior? ``` # service dovecot status dovecot is stopped # doveconf mail_plugins mail_plugins = stats # ls foo.* foo.sieve # sievec foo.sieve sievec(root): Error: stats: open(/var/run/dove

Re: sievec

2017-03-17 Thread Robert Moskowitz
On 03/17/2017 12:07 AM, Doug Barton wrote: Not precisely. You want to remove the 'else' in there, as the clause you have will do the opposite of what you intend. Also note that I removed your superfluous square brackets. require "fileinto"; if header :contains "X-Spam-Flag" "YES" {

Re: sievec

2017-03-17 Thread Robert Moskowitz
On 03/17/2017 12:07 AM, Doug Barton wrote: On 03/16/2017 11:50 PM, Robert Moskowitz wrote: Doug, On 03/16/2017 11:23 PM, Doug Barton wrote: Your pattern seems a little too complicated. See below. I acquired this script from: http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/C

Re: sievec

2017-03-17 Thread chaouche yacine
All sieve scripts need to be compiled."default" means absence. So default scripts are used when user scripts don't exist. If users have their sieves scripts then the default won't be executed. If you want to impose your script on all users then use sieve_before not sieve_default. For example, I

Re: sievec

2017-03-17 Thread Doug Barton
On 03/16/2017 11:50 PM, Robert Moskowitz wrote: Doug, On 03/16/2017 11:23 PM, Doug Barton wrote: Your pattern seems a little too complicated. See below. I acquired this script from: http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer No telling where he got i

Re: sievec

2017-03-16 Thread Robert Moskowitz
Doug, On 03/16/2017 11:23 PM, Doug Barton wrote: Your pattern seems a little too complicated. See below. I acquired this script from: http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer No telling where he got it from. So I greatly appreciate any and all advi

Re: sievec

2017-03-16 Thread Doug Barton
Your pattern seems a little too complicated. See below. On 03/16/2017 02:20 PM, Robert Moskowitz wrote: if exists "X-Spam-Flag" { This isn't needed. If the flag doesn't exist, the 'if header ...' line won't match. You're doing two tests for every message where one is all that's needed.

Re: sievec

2017-03-16 Thread Robert Moskowitz
On 03/16/2017 03:58 PM, Stephan Bosch wrote: Op 3/16/2017 om 10:20 PM schreef Robert Moskowitz: I am building a new mailserver on Centos7. My sieve is created with: mkdir /home/sieve cat

Re: sievec

2017-03-16 Thread Stephan Bosch
Op 3/16/2017 om 10:20 PM schreef Robert Moskowitz: > I am building a new mailserver on Centos7. > > My sieve is created with: > > mkdir /home/sieve > cat require "fileinto"; > if exists "X-Spam-Flag" { > if header :contains "X-Spam-Flag" "NO" { >

Re: sievec drops privileges unexpectedly

2014-06-25 Thread Matthijs Kooijman
Hey Stephan, > ># 2.1.7: /etc/dovecot/dovecot.conf > > This is a very old and obsolete version. This problem was fixed > almost two years ago: Ah, cool. This is what Debian/stable ships, so I'll probably stick to this version for a while. Good to hear it's already fixed, then I'll just work arou

Re: sievec drops privileges unexpectedly

2014-06-25 Thread Stephan Bosch
Hi Matthijs, Matthijs Kooijman schreef op 25-6-2014 14:53: Now I wrote this, I realized that it might be related that I have specified mail_uid and mail_gid globally in my dovecot.conf file. Perhaps those are intended to only be put inside the protocol imap and protocol lda blocks? This would me