Sieve vacation / redirect does not work

Hello,

When trying to configure a sieve filter for vacation or redirect, the system throws the following error:

lda([email protected])<228326><ra3UGxirP2XmewMA722AZw>: Error: duplicate db: transaction: file_dotlock_open(/home/xxx/.dovecot.lda-dupes) failed: Permission denied
lda([email protected])<228326><ra3UGxirP2XmewMA722AZw>: Error: duplicate db: transaction: Failed to lock /home/xxx/.dovecot.lda-dupes.locks/duplicate.lock.2bac0afd8de2def2cea7d55870b6cb9c: mkdir_parents(/home/xxx/.dovecot.lda-dupes.locks) failed: Permission denied
lda([email protected])<228326><ra3UGxirP2XmewMA722AZw>: Error: sieve: msgid=<[email protected]>: vacation action: failed to check for duplicate vacation response
lda([email protected])<228326><ra3UGxirP2XmewMA722AZw>: Info: sieve: msgid=<[email protected]>: stored mail into mailbox 'INBOX'
lda([email protected])<228326><ra3UGxirP2XmewMA722AZw>: Info: sieve: Execution of script /home/xxx/mail/probe.es/webmaster/dovecot.sieve failed, but implicit keep was successful (user logfile /home/xxx/mail/probe.es/webmaster/dovecot.sieve.log may reveal additional details)

There is a workaround here : Sieve redirect not sending ( permission denied duplicate check )
The patch works fine, although the dovecot log still shows the same errors.

But I don’t quite understand why this is happening.
I.e. In two different hestiacp installations, the sieve filter works perfectly in one of them and not in the other, without touching anything.
Another rather curious error is that the sieve filter does not work if the sender is an email sent from a hestia installation. If the mail is sent from, for example, gmail, it does work.

Anyone shed some light on this issue?

Thanks for the help.