<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 24/05/16 12:59, Edda via Info-cyrus
wrote:<br>
</div>
<blockquote
cite="mid:7d7b30cf-2c47-115c-2c19-655a6474a0ad@sendmaid.org"
type="cite">Interesting <span class="moz-smiley-s3" title=";-)"><span>;-)</span></span>
Looks like fileinto wants to deliver to an existent (existent for
the user) but different folder as you expect, not the ones you
listed below.
<br>
<br>
What's your sieve script?
<br>
And what sees the user in the IMAP LIST command?
<br>
<br>
I can reproduce this issue with a test user (mailtest) and an
additionally created shared folder:
<br>
<br>
localhost> cm user/mailtest
<br>
localhost> cm user/mailtest/Drafts
<br>
localholocalhost> cm Drafts
<br>
localhost> lam Drafts
<br>
anyone lrs
<br>
<br>
Test user logs in and sees:
<br>
<br>
[root@popc ~]# telnet localhost 143
<br>
[...]
<br>
. login mailtest xxx
<br>
[...]
<br>
. LIST "" "*"
<br>
* LIST (\HasChildren) "/" "INBOX"
<br>
* LIST (\HasNoChildren) "/" "INBOX/Drafts"
<br>
* LIST (\HasNoChildren) "/" "Drafts"
<br>
. OK Completed (0.000 secs 4 calls)
<br>
<br>
If the test user wants to deliver mails directly to the shared
Drafts folder via sieve script:
<br>
<br>
if anyof (header :contains "to" "mailtest")
<br>
{
<br>
fileinto "Drafts";
<br>
stop;
<br>
}
<br>
<br>
I get the error:
<br>
<br>
May 24 13:23:24 popc lmtpunix[6959]: sieve runtime error for
mailtest id <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:201605241123.u4OBMqJK006976@popc.localdomain"><201605241123.u4OBMqJK006976@popc.localdomain></a>:
Fileinto: Permission denied
<br>
<br>
For delivering to the folder either the owner or "anyone" needs
the "p" right on it. Fortunately, nobody has, as the folder was
created with ACL "anyone lrs".
<br>
<br>
I think you created something similar.... but I admit, it's a bit
guessing... But iff this is the issue, you have unexpected folders
and selected the wrong folder in the sieve script.
<br>
<br>
Edda
<br>
</blockquote>
<br>
Hi, <br>
Edda's email pointed me into the right direction and found the
culprit, there was a custom script in the wrong place and was
stripping the Inbox prefix from the sieve script hence the fileinto
permission denied errors because it couldn't find the correct
folder. Our email servers uses Inbox.folder_name format and not the
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
UNIX separator character '/' for delimiting levels.<br>
<br>
Thanks<br>
</body>
</html>