On 23.2.2025 23:47, Sam Varshavchik
wrote:
E.S.
Rosenberg via Courier-imap writes:
Thanks I hope you can make more of these errors than me...
Attached the log, am excerpt:
WRITE: 29 OK LSUB completed
READ: NUMBER: 30
READ: ATOM: LIST
READ: QUOTED_STRING:
READ: QUOTED_STRING: INBOX
READ: EOL
WRITE: * LIST (\Marked \HasChildren) "." "INBOX"
30 OK LIST completed
WRITE: 15 OK LOGIN Ok.
READ: NUMBER: 16
READ: ATOM: CAPABILITY
READ: EOL
WRITE: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE
AUTH=PLAIN ACL ACL2=UNION ENABLE UTF8=ACCEPT
16 OK CAPABILITY completed
READ: NUMBER: 17
READ: ATOM: ENABLE
READ: ATOM: UTF8=ACCEPT
READ: EOL
WRITE: * ENABLED UTF8=ACCEPT
17 OK Options enabled
READ: NUMBER: 18
READ: ATOM: SELECT
READ: QUOTED_STRING: INBOX
READ: EOL
WRITE: 18 NO Unable to open this mailbox.
There's nothing in the IMAP command log that points to an issue.
But it does show that the server did log in and cd to the
appropriate directory, and the error is in response to an actual
attempt to read the mailbox, so this is back to a filesystem
permissions issue.
As a measure of last resort, strace the IMAP process. Find the pid
of the process that's listening on the IMAP port, port 143 (fuser
-n tcp 143). If using imaps that's port 993. Then, attach strace
to the process:
strace -s 256 -f -o /tmp/strace.log -p {pid}
You'll need to manually CTRL-C this after a failed login attempt,
to stop it. This is likely to create a large log file, but you can
grep for the error message, and then inspect what the process was
doing just before emitting the error.
Hey Sam,
Thanks for walking me through the process!
My Maildirs were missing a tmp folder so Courier could not create
lock files, sadly it would seem that all the metadata of which
messages were read and which replies belong to what was lost in
the data recovery :(
newfstatat(AT_FDCWD,
"./tmp/1740389784.M121381P4014_courierlock.mail-test",
0x7ffccfb0fa40, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD,
"./tmp/1740389784.M121381P4014_courierlock.mail-test",
O_RDWR|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = -1 ENOENT (No such
file or directory)
write(1, "a NO Unable to open this mailbox"..., 35) = 35
For future reference from what I understand each Maildir folder
and child has 'new' 'cur' and 'tmp' folders.
As well as 'courierimapkeywords/' 'courierimapsubscribed'
'courierimapuiddb'
To some extent automatic creation of a ./tmp/ folder would seem
to me to be logical instead of that being a fatal error, but I
highly doubt that I have the full picture.
Thanks for all the help and Guido best of luck with the FreeBSD
issue (sorry I can't help more)!
Eliyahu - אליהו
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
|