Topic: No permissions to move emails with sieve (fileto) to public folders
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: FreeBSD
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes 3.5
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I want to move specific emails with sieve to a public folder. After generating a sieve script like
require ["fileinto"];
if allof (header :contains "subject" "test", address :is "from" "X@Y.Z") {
fileinto "Public/test";
}
I get an error in the log file (user var/vmail/vmail1/account.com/.../sieve/dovecot.sieve.log):
error: from=X@Y.Z envelope_sender=X@Y.Z, subject=test, msgid=f6fdbb9e-b2d8-4e27-ad65-efd040f3b6cb@Y.Z, size=3079, failed to store into mailbox 'Public/test': Permission denied.
I think dovecot wants to access the public folder with the user/sender X@Y.Z which doesn't have permissions to do so. If I use a local IMAP folder the script has no problems. I can also drag the emails manually to the public folder.
Gerhard
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.