seriv at parkheights.dyndns.org
2008-Jul-24 14:34 UTC
[Dovecot] how to store flags \Seen into read-only mailbox?
Hi, I'm trying to use dovecot for storing mailing lists and read-only access for users. The OS is Solaris, authentication for all readers of these lists are from Ldap through PAM, and one local user "listuser" will receive all mail and store them into it's folders (Maildirs). These maildirs are readable (read-only) for all others and they are shared by setting --- mail_location: maildir:/home/vmail/listuser/Maildir:CONTROL=/home/vmail/%u/Maildir/control:INDEX=/home/vmail/%u/Maildir/index --- Mail became readable because in each mail folder to be shared there is dovecot-shared with mode 064, and all users included into his group. But this is the problem: how to have flag \Seen stored in read-only mailbox? As recorded by rawlog, it is ignored now: --- bash-3.00# cat 20080724-103219-10616.in 3 namespace 4 lsub "" "*" 5 list "" "INBOX" 6 list "" "Trash" 7 create "Trash" 8 select "OmniTI.FreeLotto.Ops" 9 UID fetch 1:* (FLAGS) 10 uid store 1:3 +Flags (\Seen) 11 IDLE DONE 12 close 13 logout bash-3.00# cat 20080724-103219-10616.out * OK [RAWLOG TIMESTAMP] 2008-07-24 10:32:19 * NAMESPACE (("" ".")) NIL NIL 3 OK Namespace completed. * LSUB () "." "OmniTI.FreeLotto.ODS" * LSUB () "." "OmniTI.FreeLotto.Ops" 4 OK Lsub completed. * LIST (\HasNoChildren) "." "INBOX" 5 OK List completed. 6 OK List completed. 7 NO Internal error occurred. Refer to server log for more information. [2008-07-24 10:32:19] * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS ()] Read-only mailbox. * 3 EXISTS * 0 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 1216906857] UIDs valid * OK [UIDNEXT 4] Predicted next UID 8 OK [READ-ONLY] Select completed. * 1 FETCH (UID 1 FLAGS ()) * 2 FETCH (UID 2 FLAGS ()) * 3 FETCH (UID 3 FLAGS ()) 9 OK Fetch completed. 10 OK Store ignored with read-only mailbox. + idling 11 OK Idle completed. 12 OK Close completed. * BYE Logging out 13 OK Logout completed. --- -- Sergey ivanov.
seriv at parkheights.dyndns.org
2008-Jul-24 17:27 UTC
[Dovecot] how to store flags \Seen into read-only mailbox?
This problem is apparently about changeset http://hg.dovecot.org/dovecot-1.1/rev/eec74a6ad62e. This change makes dovecot behaviour different from what is described in wiki, about sharing and making private /Seen flags, see http://wiki.dovecot.org/SharedMailboxes?highlight=(flags are shared or private) When I've tried to revert it, first time with my client it worked perfectly. But then clients were not able to open any mail folders, and imap processes were dying. -- Sergey Ivanov. ----- seriv at parkheights.dyndns.org wrote:> Hi, > I'm trying to use dovecot for storing mailing lists and read-only > access for users. > The OS is Solaris, authentication for all readers of these lists are > from Ldap through PAM, and one local user "listuser" will receive all > mail and store them into it's folders (Maildirs). These maildirs are > readable (read-only) for all others and they are shared by setting > --- > mail_location: > maildir:/home/vmail/listuser/Maildir:CONTROL=/home/vmail/%u/Maildir/control:INDEX=/home/vmail/%u/Maildir/index > --- > Mail became readable because in each mail folder to be shared there is > dovecot-shared with mode 064, and all users included into his group. > > But this is the problem: how to have flag \Seen stored in read-only > mailbox? As recorded by rawlog, it is ignored now: > --- > bash-3.00# cat 20080724-103219-10616.in > 3 namespace > 4 lsub "" "*" > 5 list "" "INBOX" > 6 list "" "Trash" > 7 create "Trash" > 8 select "OmniTI.FreeLotto.Ops" > 9 UID fetch 1:* (FLAGS) > 10 uid store 1:3 +Flags (\Seen) > 11 IDLE > DONE > 12 close > 13 logout > bash-3.00# cat 20080724-103219-10616.out > * OK [RAWLOG TIMESTAMP] 2008-07-24 10:32:19 > * NAMESPACE (("" ".")) NIL NIL > 3 OK Namespace completed. > * LSUB () "." "OmniTI.FreeLotto.ODS" > * LSUB () "." "OmniTI.FreeLotto.Ops" > 4 OK Lsub completed. > * LIST (\HasNoChildren) "." "INBOX" > 5 OK List completed. > 6 OK List completed. > 7 NO Internal error occurred. Refer to server log for more > information. [2008-07-24 10:32:19] > * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) > * OK [PERMANENTFLAGS ()] Read-only mailbox. > * 3 EXISTS > * 0 RECENT > * OK [UNSEEN 1] First unseen. > * OK [UIDVALIDITY 1216906857] UIDs valid > * OK [UIDNEXT 4] Predicted next UID > 8 OK [READ-ONLY] Select completed. > * 1 FETCH (UID 1 FLAGS ()) > * 2 FETCH (UID 2 FLAGS ()) > * 3 FETCH (UID 3 FLAGS ()) > 9 OK Fetch completed. > 10 OK Store ignored with read-only mailbox. > + idling > 11 OK Idle completed. > 12 OK Close completed. > * BYE Logging out > 13 OK Logout completed. > --- > > -- > Sergey ivanov.
seriv at parkheights.dyndns.org
2008-Jul-24 18:37 UTC
[Dovecot] how to store flags \Seen into read-only mailbox?
I was looking for workaround, and tried to use one uid for all users, and ACL plugin to give permissions like: --- owner lrwstiekxa anyone rls --- rls should mean read, lookup and write-seen. Read and lookup works, and as soon as I remove these letters I can't read mail folder. But 's' is not working, I'm getting the same: --- 7 OK Store ignored with read-only mailbox. --- in rawlogs I can not find a way for users to keep their own track of what messages have been \Seen in read-only shared folder. -- Sergey Ivanov. ----- seriv at parkheights.dyndns.org wrote:> This problem is apparently about changeset > http://hg.dovecot.org/dovecot-1.1/rev/eec74a6ad62e. > This change makes dovecot behaviour different from what is described > in wiki, about sharing and making private /Seen flags, > see http://wiki.dovecot.org/SharedMailboxes?highlight=(flags are > shared or private) > When I've tried to revert it, first time with my client it worked > perfectly. > But then clients were not able to open any mail folders, and imap > processes were dying. > -- > Sergey Ivanov.
seriv at parkheights.dyndns.org
2008-Aug-06 02:15 UTC
[Dovecot] how to store flags \Seen into read-only mailbox?
Thank you, Timo, running dovecot with this changeset, \Seen stored perfectly. Only problems I saw were like: --- deliver(listuser): Aug 04 16:06:38 Error: Corrupted transaction log file /home/vmail/listuser/Maildir/index/.INBOX/dovecot.index.log: hdr.size too large (75497472) ... dovecot: Aug 04 16:07:31 Error: IMAP(listuser): Corrupted transaction log file /home/vmail/listuser/Maildir/index/.INBOX/dovecot.index.log: duplicate transaction log sequence (2) --- and after deleting dovecot.index.log files they were rebuilt. And I can not see any other problem. -- Sergey Ivanov. ----- "Timo Sirainen" <tss at iki.fi> ?????:> On Jul 24, 2008, at 1:27 PM, seriv at parkheights.dyndns.org wrote: > > > This problem is apparently about changeset > http://hg.dovecot.org/dovecot-1.1/rev/eec74a6ad62e > > . > > OK, changed, see if this helps: > http://hg.dovecot.org/dovecot-1.1/rev/b5388b21c4c2
Seemingly Similar Threads
- Problem: delivery with mode 600 into shared folder
- recent dovecot: assertion failed.
- First release (v0.1.0) of the new Sieve implementation for Dovecot v1.2
- First release (v0.1.0) of the new Sieve implementation for Dovecot v1.2
- dovecot-1.0.3 & apacheds ldap