You are not logged in.
I have working Postfix (send/receive is working) and I now installed dovecot (2.2.5) (without sieve) for IMAP like described in Arch Wiki.
https://wiki.archlinux.org/index.php/Dovecot
Malibox is have set as following:
mail_location = maildir:/home/%u/Maildir
I have one user on server named: hostmaster
Now if I connect to IMAP with any client it only opens mailbox in read-only mode.
Here is example with telnet
First I login ok:
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
a LOGIN hostmaster password
a EXAMINE INBOXa OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE ACL RIGHTS=texk] Logged in
but then when I list folders and examine INBOX, PERMANENTFLAGS is empty and mailbox is (set to?) READ-ONLY.
a LIST "" "*"
* LIST (\HasNoChildren) "." INBOX
a OK List completed.
a EXAMINE INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 1 EXISTS
* 1 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1376459543] UIDs valid
* OK [UIDNEXT 2] Predicted next UID
* OK [NOMODSEQ] No permanent modsequences
a OK [READ-ONLY] Examine completed (0.000 secs).
Reading mail works (cleaned up result):
a FETCH 1 BODY[]
* 1 FETCH (BODY[] {589}
Message-Id: <20130814055126.E5C312203D@localhost>
From: root@localhost (root)
test
)
a OK Fetch completed.
Unsurprisingly deleting doesn't:
a uid store 1 +flags.silent (\Seen \Deleted)
a OK Store ignored with read-only mailbox.
I enabled logging but debug log shows only this, no reason why it's read-only:
Aug 14 10:20:34 imap(hostmaster): Debug: Effective uid=1006, gid=1006, home=/home/hostmaster
Aug 14 10:20:34 imap(hostmaster): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/hostmaster/Maildir
Aug 14 10:20:34 imap(hostmaster): Debug: maildir++: root=/home/hostmaster/Maildir, index=, indexpvt=, control=, inbox=/home/hostmaster/Maildir, alt=
I googled also about PERMANENTFLAGS being empty and found there have been bugs with this in the (dovecot) past. Any ideas how to debug/fix this or change PERMANENTFLAGS?
Answer: I should use a SELECT inbox command instead of examine, also other clients failed because of atuhentication problems.
Last edited by aaneton (2013-08-15 05:56:51)
Offline