Dovecot Error Mkdir Permission Denied
Contents |
Problem with POP3/SMTP Dovecot can't mkdir - Permission denied 5 posts / 0 new Log in dovecot imap failed permission denied or register to post comments Last post #1 Tue, 02/23/2010
Error Using Mkdir Permission Denied
- 03:59 moskit Problem with POP3/SMTP Dovecot can't mkdir - Permission denied I have dovecot permission denied /var/mail clean installation Debian 5.0 lenny and Virtualmin 3.76 GPL. I created new virtual server and e-mail user. I can send emails with TLS
Mkdir Permission Denied Mac
but I've got problem with receiving through POP3/SMTP (with SSL). Log after connecting from MS Outlook 2007 in /var/log/mail.log: Feb 23 09:32:03 hostname dovecot: pop3-login: Login: user=
Feb 23 09:32:03 hostname dovecot: POP3(user.domain): mkdir(/var/lib/dovecot/index/user.domain/.INBOX) failed: Permission denied
Feb 23 09:32:03 hostname dovecot: mkdir permission denied php POP3(user.domain): mkdir(/var/lib/dovecot/control/user.domain/.INBOX) failed: Permission denied
Feb 23 09:32:03 hostname dovecot: POP3(user.domain): mkdir(/var/lib/dovecot/index/user.domain/.INBOX) failed: Permission denied
Feb 23 09:32:03 hostname dovecot: POP3(user.domain): mkdir(/var/lib/dovecot/control/user.domain/.INBOX) failed: Permission denied
Feb 23 09:32:03 hostname dovecot: POP3(user.domain): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2010-02-23 09:32:03]
Feb 23 09:32:03 hostname dovecot: POP3(user.domain): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0 When I am logging to Usermin I can't read e-mails too. there is red message: An error occurred listing mail in this folder : Failed to login to POP3 server : Internal error occurred. Refer to server log for more information. [2010-02-23 09:31:38] and logs after this IMAP connection: Feb 23 09:31:38 hostname dovecot: imap-login: Login: user=
Feb 23 09:31:38 hostname dovecot: imap-login: Login: user=
Feb 23 09:31:38 hostname dovecot: IMAP(user.do
Docbook Delete Cache ------------------------ Check Spelling Like Pages Local Site Map ------------------------ Rename Page Delete Page ------------------------ Subscribe User ------------------------
Mkdir Permission Denied Linux
Remove Spam Revert to this revision Package Pages
Mkdir Permission Denied Ubuntu
------------------------ Load Save SlideShow Operation Not Permitted imap(user): Error: chown(/home/user/mail/.imap/INBOX, group=12(mail)) failed: Operation mkdir permission denied unix not permitted (egid=1000(user), group based on /var/mail/user - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)This means that Dovecot tried to copy /var/mail/user file's group (mail) to the https://www.virtualmin.com/node/13508 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 http://wiki2.dovecot.org/Errors/ChgrpNoPerm 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. chmod0600/var/mail/*, see MailLocation/mbox) 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. Errors/ChgrpNoPerm (last edited 2016-07-23 14:52:45 by TimoSirainen) Edit (Text)CommentsInfoAttachments More Actions: Raw Text Print View Render as Docbook Delete Cache ------------------------ Check Spelling Like Pages Local Site Map ------------------------ Rename Page Delete Page ------------------------ Subscribe User ------------------------ Remove Spam Revert to this revision Package Pages ------------------------ Load Save SlideShow MoinMoin PoweredPython PoweredGPL licensedValid HTML 4.01
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] On http://www.dovecot.org/list/dovecot/2011-April/058460.html Thu, 2011-04-07 at 16:43 -0700, Joseph Tam wrote: > Dovecot http://askubuntu.com/questions/118416/dovecot-cant-compact-mail-folder-var-mail-username seems to transfer group permissions of the mailbox to its > corresponding cache. If it can't set group ownership, you get > the fatal error message above. If the original mailbox is mode > 0600, dovecot is smart enough not to permission denied set group ownership. > > I couldn't find this information: shouldn't it be documented here? > > http://wiki2.dovecot.org/SharedMailboxes/Permissions Well, I don't know if documenting it there would actually help many people. Users having this problem aren't trying to share mailboxes, so they probably wouldn't be looking into that page. This is mkdir permission denied anyway mbox-specific problem, so I added it now to mbox page: http://wiki2.dovecot.org/MailLocation/mbox > Would it be useful to make this a configurable behaviour whereby a > chgrp() failure of cache files will fall back to chown'ing to user=owner, > mode=0600 instead? Or just leave the user to scratch their head? I think it's safer to let user to scratch their head than to automatically go change permissions in a way that might make things worse. I guess what I could do is add a wiki link to that error message explaining it. How about this now: imap(tss): Error: fchown(/home/tss/mail/.imap/INBOX/dovecot.index.log.newlock, group=8(mail)) failed: Operation not permitted (egid=1000(tss), group based on /var/mail/tss - see http://wiki2.dovecot.org/Errors/NoPerm) Previous message: [Dovecot] Permission Denied - cannot create inbox Next message: [Dovecot] Permission Denied - cannot create inbox Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the dovecot mailing list
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top dovecot can't compact mail folder /var/mail/username up vote 2 down vote favorite 2 ubuntu 11.10 32bit. Setup a dovecot imap server. Using Thunderbird on a different ubuntu machine (64bit) to access imap server. Everything else is fine, except I can not compact the deleted email in inbox, which is stored at /var/mail/username. Checking mail.log and I see this error message: Apr 3 00:10:11 autumn dovecot: imap(username): Error: file_dotlock_create(/var/mail/username) failed: Permission denied (euid=1000(username) egid=1000(username) missing +w perm: /var/mail, euid is not dir owner) (set mail_privileged_group=mail) what is wrong with the permission? Here are the permissions for the relevant files: $ ls -ld /var/mail drwxrwsr-x 2 mail mail 4096 2012-04-02 23:36 /var/mail $ ls -l /var/mail/username -rw------- 1 username mail 417 2012-04-02 23:36 /var/mail/username Anyone knows what's going on here? permissions mail dovecot share|improve this question asked Apr 3 '12 at 4:27 G. He 59521019 1 I went into /etc/dovecot/conf.d/10-mail.conf, added the group mail to the line "mail_privileged_group = ", stop dovecot, and then start dovecot. It works now. Although I wish this was documented somewhere. –G. He Apr 3 '12 at 11:56 It is documented here. Please convert your comment to an answer and accept it so that this question is not left hanging without an answer. –Celada Apr 4 '12 at 16:26 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote accepted I went into /etc/dovecot/conf.d/10-mail.conf, added the group mail to the line "mail_privileged_group = ", stop dovecot, and then start dovecot. It works now. As pointed out by Celada, it is documented here. share|improve this answer edited Jan 28 '14 at 10:56 BuZZ-dEE 6,600104163 answered Apr 4 '12 at