Interesting ;-) 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.

What's your sieve script?
And what sees the user in the IMAP LIST command?

I can reproduce this issue with a test user (mailtest) and an additionally created shared folder:

localhost> cm user/mailtest
localhost> cm user/mailtest/Drafts
localholocalhost> cm Drafts
localhost> lam Drafts
anyone lrs

Test user logs in and sees:

[root@popc ~]# telnet localhost 143
[...]
. login mailtest xxx
[...]
. LIST "" "*"
* LIST (\HasChildren) "/" "INBOX"
* LIST (\HasNoChildren) "/" "INBOX/Drafts"
* LIST (\HasNoChildren) "/" "Drafts"
. OK Completed (0.000 secs 4 calls)

If the test user wants to deliver mails directly to the shared Drafts folder via sieve script:

if anyof (header :contains "to" "mailtest")
{
    fileinto "Drafts";
    stop;
}

I get the error:

May 24 13:23:24 popc lmtpunix[6959]: sieve runtime error for mailtest id <201605241123.u4OBMqJK006976@popc.localdomain>: Fileinto: Permission denied

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".

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.

Edda

Am 23.05.16 um 13:52 schrieb Sunny via Info-cyrus:
Hi,

I'm seeing the following error logs with some users sieve filtering
May 23 11:41:31 imap02 lmtpunix[26005]: sieve runtime error for test2 id <5742de5a.3040...@org.ac.uk>: Fileinto: Permission denied

Essentially emails are not being put into the specific folders.

Their cyrus:mail permissions are in place

[root@imap02 test2]# ls -ls /var/spool/imap/t/user/test2/
 4 -rw------- 1 cyrus mail  1663 May 23 10:36 747.
 4 -rw------- 1 cyrus mail  1904 May 23 10:53 748.
 4 -rw------- 1 cyrus mail  1661 May 23 10:54 749.
 4 -rw------- 1 cyrus mail  1666 May 23 10:56 750.
 4 -rw------- 2 cyrus mail  1613 May 23 11:00 751.
 4 -rw------- 1 cyrus mail  1541 May 23 11:12 752.
 4 -rw------- 1 cyrus mail  1541 May 23 11:20 753.
 4 -rw------- 1 cyrus mail  1537 May 23 11:22 754.
 4 -rw------- 1 cyrus mail  1537 May 23 11:23 755.
 4 -rw------- 1 cyrus mail  1539 May 23 11:40 756.
 4 -rw------- 1 cyrus mail  1541 May 23 11:41 757.
20 -rw------- 1 cyrus mail 16424 May 23 11:41 cyrus.cache
 4 -rw------- 1 cyrus mail   184 May 23 11:41 cyrus.header
 4 -rw------- 1 cyrus mail  1768 May 23 11:41 cyrus.index
 4 drwx------ 2 cyrus mail  4096 May 23 11:41 Drafts
 4 drwx------ 2 cyrus mail  4096 May 23 11:41 for-sale
 4 drwx------ 2 cyrus mail  4096 May 23 11:41 hello
 4 drwx------ 2 cyrus mail  4096 May 23 12:11 Sent
12 drwx------ 2 cyrus mail 12288 May 23 11:41 Trash


cyrus permissions - (I changed user cyrus permission to full to see if it worked - but it didn't)

localhost.localdomain> lam user.test2*
user.test2:
  test2 lrswipkxtea
  cyrus lrswipkxtecda
user.test2.Drafts:
  test2 lrswipkxtea
  cyrus lrswipkxtecda
user.test2.Sent:
  test2 lrswipkxtea
  cyrus lrswipkxtecda
user.test2.Trash:
  test2 lrswipkxtea
  cyrus lrswipkxtecda
user.test2.for-sale:
  test2 lrswipkxtea
  cyrus lrswipkxtecda
user.test2.hello:
  test2 lrswipkxtea
  cyrus lrswipkxtecda
user.test2.ssn:
  test2 lrswipkxtea
  cyrus lrswipkxtecda

cyrus.conf
SERVICES {
  # add or remove based on preferences
  imap        cmd="imapd" listen="imap" prefork=5
  imaps        cmd="imapd -s" listen="imaps" prefork=1
  pop3        cmd="pop3d" listen="pop3" prefork=3
  pop3s        cmd="pop3d -s" listen="pop3s" prefork=1
  sieve        cmd="timsieved" listen="sieve" prefork=0
  oldsieve      cmd="timsieved" listen="2000" prefork=0


Other sieve functions work like "reject" "vacation" but not fileinto.

Are there any other suggestions?

Regards
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Reply via email to