Author Topic: Dovecot Sieve Error  (Read 3567 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Dovecot Sieve Error
« on: August 09, 2022, 08:27:10 PM »
Hello,

While checking the log file of Dovecot I saw something like this:

Code: [Select]
Aug 08 03:16:06 lmtp(mail@company.com): Error: EKcANMZV8GKG+gAAg5tnSg: sieve: binary save: failed to create temporary file: open(/var/sieve/globalfilter.svbin.) failed: Permission denied ( euid=1001(evoname) egid=12(mail) missing +w perm: /var/sieve, dir owned by 101:12 mode=0755)
Aug 08 03:16:06 lmtp(mail@company.com): Error: EKcANMZV8GKG+gAAg5tnSg: sieve: The LDA Sieve plugin does not have permission to save global Sieve script binaries; global Sieve scripts like `/var/sieve/globalfilter.sieve' need to be pre-compiled using the sievec tool
Aug 08 03:16:06 lmtp(mail@company.com): Error: EKcANMZV8GKG+gAAg5tnSg: sieve: binary save: failed to create temporary file: open(/var/sieve/globalfilter.svbin.) failed: Permission denied ( euid=1001(evoname) egid=12(mail) missing +w perm: /var/sieve, dir owned by 101:12 mode=0755)
Aug 08 03:16:06 lmtp(mail@company.com): Error: EKcANMZV8GKG+gAAg5tnSg: sieve: The LDA Sieve plugin does not have permission to save global Sieve script binaries; global Sieve scripts like `/var/sieve/globalfilter.sieve' need to be pre-compiled using the sievec tool

What does it mean  ?

How can I fix this error?


Thank you !

Offline
*
Re: Dovecot Sieve Error
« Reply #1 on: August 10, 2022, 07:28:22 AM »
Topic is up to date

Offline
*
Re: Dovecot Sieve Error
« Reply #2 on: September 12, 2022, 06:50:55 AM »
Create file /var/sieve/globalfilter.svbin owned by vmail.mail
Give +w perm for /var/sieve. Use SMTP relay server if use GoDaddy VPS.

Offline
*
Re: Dovecot Sieve Error
« Reply #3 on: October 21, 2024, 07:44:24 PM »
I'm with the same error.

Should I delete the file? How to create this file? Maybe compile?

I did the chmod +w and the directory and file already with permission:

drwxr-xr-x.  2 vmail mail    58 Oct 19 16:16 sieve

-rw-r--r-- 1 vmail mail 203 Mar 27  2017 globalfilter.sieve
-rw-r--r-- 1 vmail mail 346 Oct 19 16:16 globalfilter.svbin
« Last Edit: October 21, 2024, 07:54:37 PM by diogo-plta »

Offline
*
Re: Dovecot Sieve Error
« Reply #4 on: October 21, 2024, 09:57:54 PM »
The missing write permission is for mail group, to dir and files.

So, chmod -R g+w to /var/sieve

After that didn't have more errors, but I don't know about that and keeping searching.

If happen again maybe I should compile like the error show and suggested at some docs: sievec /var/sieve/globalfilter.sieve

Anyone knows about it?

And seen /var/log/dovecot.log :
 Fatal: master: service(lmtp): child 278485 returned error 83 (Out of memory (service lmtp { vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)

So I increase the memory to login and imap service at /etc/dovecot/dovecot.conf, maybe it is linked with the sieve error.
« Last Edit: October 21, 2024, 10:00:54 PM by diogo-plta »