Mike Benoit writes:
I recently installed Courier-pop3 with MySQL support on Debian, and everything seemed to be working perfectly, until I went to check my email and got this error:
-ERR Maildir: Permission denied
I tried it again immediately afterward and it worked! I thought nothing of it at the time, but within an hour or so, it happened again. This time it failed about 15times in a row, before it finally worked again. I changed nothing on the server to make it work, it just magically "breaks" and "fixes itself" at random it seems.
Following are some straces I captured about 130seconds apart, notice the chdir() calls, which I think are causing the issue.
As far as I know, the permissions are correct, because it works one second, then fails the next.
Any ideas what might be causing this? Is it a Courier problem, or libc/kernel issue perhaps?
Use the -v option to strace to capture all data. Of interest would be the preceding stat() call on the current directory. This should tell you whether the same current directory appears in both instances.
pgpMsgyKMM89b.pgp
Description: PGP signature
