On 2023-05-26 22:59, lie...@bfh.ch wrote:
May 26 21:57:06 imap(mutt)<16><Rkpg0Z/8pLfAqDAB>: Error: Mailbox Public/archive: open() failed with mbox: Read-only file system.


/etc/dovecot/dovecot.conf:

mail_uid=1000
mail_gid=1000

namespace {
  type = public
  prefix = Public/
  location = mbox:/var/mail/:INDEX=/var/indexes/public
  subscriptions = no
}

Might be worth also setting the location of control files:

location = mbox:/var/mail/:INDEX=/var/indexes/public:CONTROL=/var/control/%u

Where /var/control is writable by uid 1000.

https://doc.dovecot.org/configuration_manual/mail_location/mbox/

Has this to say about mbox control files:

"Under mbox format, Dovecot maintains the subscribed mailboxes list in a
file .subscriptions which by default is stored in the mail location root.
So in the example configuration this would be at ~/mail/.subscriptions.

If you want to put this somewhere else, you can change the directory in which
the .subscriptions file is kept by using the CONTROL parameter."

Also this:

https://doc.dovecot.org/admin_manual/mailbox_formats/mbox

Describes various file locking requirements for mbox format.

https://doc.dovecot.org/configuration_manual/mail_location/mbox/mboxlocking

Seems dovecot is going to check if it can create a .lock file (or otherwise
lock the file using flock())

A couple of workarounds are described there.

As the docs note, mbox isn't a great format to do this with.

You might also like to investigate Dovecot access lists to make 'read only'
folders etc:

https://doc.dovecot.org/configuration_manual/acl


Rob
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
  • Share liecj3
    • Re: Share Rob Lister

Reply via email to