[Dovecot] mkdir no permission
Hallo list-member,
Please ignore my bad english. I cant wright bad but i understand well.
I reinstalled my server and have big problems with (V 1.1.11) dovecot
now.
I work with Ubuntu 9.04 Server and want to use pop and imap with easy
configuration. I fetch all my Mails on the server and want to look
them up
by apple Mail.
Until yesterday dovecot only worked after I logged in and did
something on
the server, for example call "mail" oder call "mail.log".
After reinstall yesterday it works no more. The new entry in log is
"Internal error".
Anything else was before yesterday also.
My Error Logs:
mail.log: May 19 10:00:38 ubuntu dovecot: POP3(annalein): mkdir(/home/annalein/Maildir/cur) failed: Permission denied (euid=1000(annalein) egid=1000(annalein) missing +w perm: /home/ annalein) May 19 10:00:38 ubuntu dovecot: POP3(annalein): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2009-05-19 10:00:38] May 19 10:00:38 ubuntu dovecot: POP3(annalein): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0 May 19 10:00:43 ubuntu dovecot: IMAP(annalein): mkdir(/home/annalein/Maildir/cur) failed: Permission denied (euid=1000(annalein) egid=1000(annalein) missing +w perm: /home/ annalein)
syslog:
May 19 10:22:34 ubuntu dovecot-auth: pam_sm_authenticate: Called
May 19 10:22:34 ubuntu dovecot-auth: pam_sm_authenticate: username =
[annalein]
May 19 10:22:34 ubuntu dovecot-auth: Warning: Using default salt value
(undefined in ~/.ecryptfsrc)
May 19 10:22:36 ubuntu dovecot-auth: Passphrase key already in
keyring; rc
= [1]
May 19 10:22:36 ubuntu dovecot-auth:
ecryptfs_add_passphrase_key_to_keyring: Error adding auth tok with sig
[e54db404244691b7] to the keyring; rc = [1]
May 19 10:22:36 ubuntu dovecot-auth: Error attempting to add filename
encryption key to user session keyring; rc = [1]
May 19 10:22:36 ubuntu dovecot-auth: Passphrase key already in
keyring; rc
= [1]
May 19 10:22:36 ubuntu dovecot-auth:
ecryptfs_add_passphrase_key_to_keyring: Error adding auth tok with sig
[d7f23dd0d7e04b51] to the keyring; rc = [1]
May 19 10:22:36 ubuntu dovecot-auth: Error attempting to add
passphrase key
to user session keyring; rc = [1]
May 19 10:22:36 ubuntu dovecot-auth: There is already a key in the user
session keyring for the given passphrase.
My configuration ist in dovecot-postfix.conf. I can't call it by dovecot -n. But i changed allmost nothing from default- disable_plaintext_auth=no Some points in the file: protocols = imap pop3 imaps pop3s managesieve mail_location = maildir:~/Maildir
Please tell what i should show you. Thank you for help.
Greetings, Anna Obertacke.
On Tue, 2009-05-19 at 11:07 +0200, Anna Obertacke wrote:
May 19 10:00:38 ubuntu dovecot: POP3(annalein): mkdir(/home/annalein/Maildir/cur) failed: Permission denied (euid=1000(annalein) egid=1000(annalein) missing +w perm: /home/ annalein)
It says /home/annalein isn't writable by annalein user. I'd guess /home/annalein is no longer owned by annalein?
Hi,
that is not the problem
drwxr-x--x 20 annalein annalein 12288 2009-05-18 19:05
annalein
/home/annalein is writable by annalein.
Am 19.05.2009 um 21:46 schrieb Timo Sirainen:
On Tue, 2009-05-19 at 11:07 +0200, Anna Obertacke wrote:
May 19 10:00:38 ubuntu dovecot: POP3(annalein): mkdir(/home/annalein/Maildir/cur) failed: Permission denied (euid=1000(annalein) egid=1000(annalein) missing +w perm: /home/ annalein)
It says /home/annalein isn't writable by annalein user. I'd guess /home/annalein is no longer owned by annalein?
From: Anna Obertacke anna@obertacke.de
Am 19.05.2009 um 21:46 schrieb Timo Sirainen:
On Tue, 2009-05-19 at 11:07 +0200, Anna Obertacke wrote:
May 19 10:00:38 ubuntu dovecot: POP3(annalein): mkdir(/home/annalein/Maildir/cur) failed: Permission denied (euid=1000(annalein) egid=1000(annalein) missing +w perm: /home/ annalein)
It says /home/annalein isn't writable by annalein user. I'd guess /home/annalein is no longer owned by annalein?
that is not the problem drwxr-x--x 20 annalein annalein 12288 2009-05-18 19:05
annalein /home/annalein is writable by annalein.
Maybe it complains about the group not having write access...? Try chmod 771 instead of 751 to test maybe...
JD
That's strange. Dovecot anyway used access() system call to verify that the directory isn't writable. Some possibilities:
Did you enable SELinux / AppArmor or something similar that prevents Dovecot from accessing home directories?
Some filesystem ACL was set to the home directory that prevents writes? I don't really know anything about ACLs..
Are there multiple annaleins? Check with ls -ldn /home/annalein that it's 1000.
I guess the last possibility is that Dovecot's check is just buggy. You could get a strace output to see what Dovecot is really doing and send it to me. You can do this by changing in dovecot.conf:
protocol pop3 { .. mail_location = /usr/bin/strace -o /tmp/dovecot.log /usr/lib/dovecot/pop3 }
On Wed, 2009-05-20 at 11:19 +0200, Anna Obertacke wrote:
Hi,
that is not the problem
drwxr-x--x 20 annalein annalein 12288 2009-05-18 19:05
annalein/home/annalein is writable by annalein.
Am 19.05.2009 um 21:46 schrieb Timo Sirainen:
On Tue, 2009-05-19 at 11:07 +0200, Anna Obertacke wrote:
May 19 10:00:38 ubuntu dovecot: POP3(annalein): mkdir(/home/annalein/Maildir/cur) failed: Permission denied (euid=1000(annalein) egid=1000(annalein) missing +w perm: /home/ annalein)
It says /home/annalein isn't writable by annalein user. I'd guess /home/annalein is no longer owned by annalein?
I tested Maildir to.
Point 1 and 2 i don't know the programms. Point 3: its 1000.
But you help me to another idea. I forgot that nothing works in my
homedir. no ftp, no apache (i had my website there) etc. The other
problems didn't bother me but now i remember.
Is there a possibility to delete the homedir and make it new? Or will
i have the same problems again when i save the data in there?
Do the other errors of dovecot refer to this error or are there other
problems.
I test your suggest, i think it should work, because it is not in
homedir.
Am 20.05.2009 um 19:10 schrieb Timo Sirainen:
That's strange. Dovecot anyway used access() system call to verify
that the directory isn't writable. Some possibilities:
Did you enable SELinux / AppArmor or something similar that
prevents Dovecot from accessing home directories?Some filesystem ACL was set to the home directory that prevents writes? I don't really know anything about ACLs..
Are there multiple annaleins? Check with ls -ldn /home/annalein
that it's 1000.I guess the last possibility is that Dovecot's check is just buggy.
You could get a strace output to see what Dovecot is really doing and send it to me. You can do this by changing in dovecot.conf:protocol pop3 { .. mail_location = /usr/bin/strace -o /tmp/dovecot.log /usr/lib/ dovecot/pop3 }
On Wed, 2009-05-20 at 11:19 +0200, Anna Obertacke wrote:
Hi,
that is not the problem
drwxr-x--x 20 annalein annalein 12288 2009-05-18 19:05 annalein
/home/annalein is writable by annalein.
Am 19.05.2009 um 21:46 schrieb Timo Sirainen:
On Tue, 2009-05-19 at 11:07 +0200, Anna Obertacke wrote:
May 19 10:00:38 ubuntu dovecot: POP3(annalein): mkdir(/home/annalein/Maildir/cur) failed: Permission denied (euid=1000(annalein) egid=1000(annalein) missing +w perm: /home/ annalein)
It says /home/annalein isn't writable by annalein user. I'd guess /home/annalein is no longer owned by annalein?
participants (3)
-
Anna Obertacke
-
John Doe
-
Timo Sirainen