Sieve 'fileinto' Public Mailbox gives "Permission denied"

NethServer Version: 8
Module: mail 1.6.3
Hallo,
we have a sieve filter created in roundcube in the “bcc all” account that should copy messages to a public mailbox. Manually moving a message to that public folder when connected as that user in roundcube is no problem.
In the GUI user “archiv” has read/write access.

Public Folder: Public/Webseite
User: archiv

/var/lib/vmail # doveadm acl get -u vmail Public/Webseite
ID              Global Rights
user=archiv     create insert lookup read write write-deleted write-seen

doveadm acl get -u archiv Public/Webseite
user=archiv     create insert lookup read write write-deleted write-seen
/var/lib/vmail#  tail archiv/.dovecot.sieve.log
fileinto action: failed to store into mailbox 'Public/Webseite': Permission denied.

Why is user “archiv” sieve unable to save a message in Public/Webseite?
Uwe

1 Like

I can confirm that the message isn’t moved to the public folder by a sieve rule, I tried with SOGo, Webtop and Roundcube but I get a “Mailbox doesn’t exist” error. The public folder does exist and moving a mail manually works.

fileinto action: failed to store into mailbox 'Public/technics': Mailbox doesn't exist: Public/technics

I need to check deeper…

EDIT:

I changed the topic category to Bug

strange, lmtp(vmail) is able to copy to public folder, lmtp(archiv) ist not
There ist only one sieve filter to copy to ‘Webseite’, in archiv’s roundcube.sieve
see different Foldernames, failed ‘Public/Webseite’ and stored ‘Webseite’

// Error
lmtp(archiv): sieve: Execution of script /var/lib/vmail/archiv/.dovecot.sieve failed, but implicit keep was successful (user logfile /var/lib/vmail/archiv/.dovecot.sieve.log may reveal additional details)
// archiv/.dovecot.sieve.log
fileinto action: failed to store into mailbox 'Public/Webseite': Permission denied.
// but
lmtp(vmail): sieve: msgid=<@www.hinz.de>: stored mail into mailbox 'Webseite'

Uwe

I added an ACL for vmail to the Public folder and the sieve filter started working.

doveadm acl set -u vmail Public user=vmail admin create delete expunge insert lookup post read write write-deleted write-seen

I still don’t know why you got the “Permission denied” error while I got “Mailbox doesn’t exist”
Did you already set some permissions for the public folder?

Hello Markus,
I think we are on to different issues.
I did not set any permissions on the command line for the public folder, just in the GUI.
After I entered your ‘doveadm acl set -u vmail Public…’ nothing changed.
Again “fileinto action: failed to store into mailbox ‘Public/Webseite’: Permission denied.”
The similar command changed to user “archiv” ‘doveadm acl set -u archiv Public…’ did not help neither.

But it’s not critical, more or less a cosmetical issue as those webshop orders correctly go to the sales apartement.
Uwe

1 Like

Could you please share the sieve script? So I can try to reproduce it.

runagent -m mail1 podman exec -ti dovecot cat archiv/.dovecot.sieve

After some more tests with orders I found out, that a testfilter in my own account successfully copies the incoming mail to public/webseite folder while the filter in the “archiv” user did not.
My account has “Full Access” set to this public folder in the GUI, user “archiv” has “read/write”
This translates to:

doveadm acl get -u archiv Public/Webseite
user=archiv  create insert lookup read write write-deleted write-seen
user=spielhagen admin create delete expunge insert lookup post read write write-deleted write-seen

So I gave “archiv” “Full Access” in the GUI and now it works, “archiv” successfully copies incoming messages to this public folder when the filter triggers.

Thank you Markus for taking me by the hand and not letting me give up on this.
Uwe

1 Like