-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I notice this message (in my L15.5 laptop): 2023-08-13T14:05:41.043174+02:00 Laicolasse dovecot: imap(cer)<31114><85PAw8wCLJF/AAAB>: Error: fchown(/home/cer/Mail/.imap/INBOX, group=482(mail)) failed: Operation not permitted (egid=100(users), group based on /var/mail/cer - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm) I read the link, but I don't understand what I should do. Change Group Operation Not Permitted imap(user): Error: chown(/home/user/mail/.imap/INBOX, group=12(mail)) failed: Operation not permitted (egid=1000(user), group based on /var/mail/user - see https://doc.dovecot.org/admin_manual/errors/chgrp_no_perm/) This means that Dovecot tried to copy /var/mail/user file’s group (mail) to the index file directory it was creating (/home/user/mail/.imap/INBOX), but the process didn’t belong to the mail group, so it failed. This is important for preserving access permissions with Shared mailboxes. Group copying is done only when it actually changes the access permissions; for example with 0600 or 0666 mode the group doesn’t matter at all, but with 0660 or 0640 it does. To solve this problem you can do only one of two things: * If the group doesn’t actually matter, change the permissions so that the group isn’t copied (e.g. chmod 0600 /var/mail/*, see Mbox Mailbox Format). * Give the mail process access to the group (e.g. mail_access_groups=mail setting). However, this is dangerous. It allows users with shell access to read other users’ INBOXes. I don't understand why I have to change the permissions of /var/mail/*. Why should dovecot copy the group? Just don't copy it. - -- Cheers Carlos E. R. (from 15.4 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZNjLDxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVRDgAn3VMUDtPQTVYBZXtNOZH 9fxO34jUAJ9JehLPl4jEZIMunaMIoCf2N6PlqA== =q4i2 -----END PGP SIGNATURE-----
On 8/13/2023 08:22:39, Carlos E. R. wrote:
I notice this message (in my L15.5 laptop):
2023-08-13T14:05:41.043174+02:00 Laicolasse dovecot: imap(cer)<31114><85PAw8wCLJF/AAAB>: Error: fchown(/home/cer/Mail/.imap/INBOX, group=482(mail)) failed: Operation not permitted (egid=100(users), group based on /var/mail/cer - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
I read the link, but I don't understand what I should do.
Change Group Operation Not Permitted
imap(user): Error: chown(/home/user/mail/.imap/INBOX, group=12(mail)) failed: Operation not permitted (egid=1000(user), group based on /var/mail/user - see https://doc.dovecot.org/admin_manual/errors/chgrp_no_perm/)
This means that Dovecot tried to copy /var/mail/user file’s group (mail) to the index file directory it was creating (/home/user/mail/.imap/INBOX), but the process didn’t belong to the mail group, so it failed. This is important for preserving access permissions with Shared mailboxes. Group copying is done only when it actually changes the access permissions; for example with 0600 or 0666 mode the group doesn’t matter at all, but with 0660 or 0640 it does.
To solve this problem you can do only one of two things:
* If the group doesn’t actually matter, change the permissions so that the group isn’t copied (e.g. chmod 0600 /var/mail/*, see Mbox Mailbox Format).
* Give the mail process access to the group (e.g. mail_access_groups=mail setting). However, this is dangerous. It allows users with shell access to read other users’ INBOXes.
I don't understand why I have to change the permissions of /var/mail/*. Why should dovecot copy the group? Just don't copy it.
-- Cheers
Carlos E. R. (from 15.4 x86_64 at Telcontar)
Too hard for my current state. I'd say ask on the dovecot list, but I get little out of that. Perhaps my questions are far too "noob". Maybe yours will tickle someone's fancy over there?
On 2023-08-13 19:36, joe a wrote:
On 8/13/2023 08:22:39, Carlos E. R. wrote:
I notice this message (in my L15.5 laptop):
2023-08-13T14:05:41.043174+02:00 Laicolasse dovecot: imap(cer)<31114><85PAw8wCLJF/AAAB>: Error: fchown(/home/cer/Mail/.imap/INBOX, group=482(mail)) failed: Operation not permitted (egid=100(users), group based on /var/mail/cer - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
I read the link, but I don't understand what I should do.
...
Too hard for my current state. I'd say ask on the dovecot list, but I get little out of that. Perhaps my questions are far too "noob". Maybe yours will tickle someone's fancy over there?
I just did (as root): touch /home/cer/Mail/.imap/INBOX chown cer:mail /home/cer/Mail/.imap/INBOX and that shuts up dovecot, and gets the local inbox folder working in Thunderbird. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
participants (3)
-
Carlos E. R.
-
Carlos E. R.
-
joe a