Re: [Dovecot] Dovecot mailbox in read-only mode, Permanentflags empty

2013-08-14 Thread Tommi Äijälä

Hi,
SELECT works! So there really wasn't a permananetflag problem at all, I 
just assumed so because no client (tested outlook and thunderbird) 
worked and the was the first thing I saw when testing manually. I now 
realize the mail clients are not working because of authentication 
problems (I need to fix but that's another story we don't need to ponder 
here).


This is solved.

Thank you for your support.

Best regards
Tommi



On 14.8.2013 17:26, Steffen Kaiser wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 14 Aug 2013, Tommi A wrote:


a LIST "" "*"
* LIST (\HasNoChildren) "." INBOX
a OK List completed.
a EXAMINE INBOX


try with:

a SELECT INBOX

- -- Steffen Kaiser
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUguTeV3r2wJMiz2NAQLwBgf9FHI4xhULeEIGD1thsBXHP+CYj4afs9yV
UnC+dMdRbcl3wm73FbxGnDYGi4LKZbzqS8SOD8Bs99bTl8Gz1V97zwJ5UVA7AAQa
sbNXSNyY9/HhaYQI/OP+tYcvvtokqQFE65COaihTJXHPHiCJst12kxzCWQ8Q1KXJ
4XCBDM7gyt+kcLIdFmZRdnO1MEx6FlDvJKpA1InWK+3xDT1oF3D9Q5igLsNq1ZgI
/PEbzfKM0iKywSgXsLnWnzdM5/FUvSAyd3N4N3I8fLBRSy4hFz2JfatCmluxbe6e
fny2cMCL7e7LlBqz9O61+y0yRSAgonCX2ZC+6stx6M/MHj+MUT7CQw==
=TWWR
-END PGP SIGNATURE-




Re: [Dovecot] Dovecot mailbox in read-only mode, Permanentflags empty

2013-08-14 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 14 Aug 2013, Tommi A wrote:


a LIST "" "*"
* LIST (\HasNoChildren) "." INBOX
a OK List completed.
a EXAMINE INBOX


try with:

a SELECT INBOX

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUguTeV3r2wJMiz2NAQLwBgf9FHI4xhULeEIGD1thsBXHP+CYj4afs9yV
UnC+dMdRbcl3wm73FbxGnDYGi4LKZbzqS8SOD8Bs99bTl8Gz1V97zwJ5UVA7AAQa
sbNXSNyY9/HhaYQI/OP+tYcvvtokqQFE65COaihTJXHPHiCJst12kxzCWQ8Q1KXJ
4XCBDM7gyt+kcLIdFmZRdnO1MEx6FlDvJKpA1InWK+3xDT1oF3D9Q5igLsNq1ZgI
/PEbzfKM0iKywSgXsLnWnzdM5/FUvSAyd3N4N3I8fLBRSy4hFz2JfatCmluxbe6e
fny2cMCL7e7LlBqz9O61+y0yRSAgonCX2ZC+6stx6M/MHj+MUT7CQw==
=TWWR
-END PGP SIGNATURE-


Re: [Dovecot] Dovecot mailbox in read-only mode, Permanentflags empty

2013-08-14 Thread Tommi A




What are the log entries for the telnet login?

# 2.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.5-1-ARCH x86_64
[...]
mail_debug = yes

good, then plenty of info should be in the logs, about home directory,
uids etc.pp.


Logfiles entries:

# dovecot.log
Aug 14 15:32:11 imap-login: Info: Login: user=, 
method=PLAIN, rip=::1, lip=::1, mpid=516, secured, 
session=
Aug 14 15:32:20 imap(hostmaster): Info: Disconnected: Logged out in=63 
out=1423


# dovecot_debug.log
Aug 14 15:32:08 auth: Debug: auth client connected (pid=515)
Aug 14 15:32:11 auth: Debug: client in: AUTH1   PLAIN   
service=imapsecured session=izfqi+fjwgAB
lip=::1 rip=::1 lport=143   rport=54210 resp=
Aug 14 15:32:11 auth-worker(505): Debug: pam(hostmaster,::1): lookup 
service=dovecot
Aug 14 15:32:11 auth-worker(505): Debug: pam(hostmaster,::1): #1/1 
style=1 msg=Password:
Aug 14 15:32:11 auth: Debug: client passdb out: OK  1   
user=hostmaster
Aug 14 15:32:11 auth: Debug: master in: REQUEST 808845313   515 
1   2e1914a23f0260f309e46cee1503b61dsession_pid=516

Aug 14 15:32:11 auth-worker(505): Debug: passwd(hostmaster,::1): lookup
Aug 14 15:32:11 auth: Debug: master userdb out: USER808845313   
hostmaster  system_groups_user=hostmaster   uid=1006gid=1006 
home=/home/hostmaster   
auth_token=2323b6910285b26361609c145854ff23f67b85ad
Aug 14 15:32:11 imap(hostmaster): Debug: Effective uid=1006, gid=1006, 
home=/home/hostmaster
Aug 14 15:32:11 imap(hostmaster): Debug: Namespace inbox: type=private, 
prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes 
location=maildir:~/Maildir
Aug 14 15:32:11 imap(hostmaster): Debug: maildir++: 
root=/home/hostmaster/Maildir, index=, indexpvt=, control=, 
inbox=/home/hostmaster/Maildir, alt=






You seem to use system users, should be visible in the logs. Do the
directory /Maildir and any file and directory below
belong to the particular user? Do your users have a home directory at
all?



Yes I do use system users, this system is supposed to be a simple as it 
gets, and it will only have a few users.
Home folder exists and Maildir gets created first time Postfix+dovecot 
is used for hostmaster user.


# cd /home/hostmaster/Maildir/
# ls -la
total 36
drwx-- 5 hostmaster hostmaster 4096 Aug 14 15:32 .
drwx-- 3 hostmaster hostmaster 4096 Aug 14 13:35 ..
drwx-- 2 hostmaster hostmaster 4096 Aug 14 13:35 cur
-rw--- 1 hostmaster hostmaster   92 Aug 14 15:32 dovecot-uidlist
-rw--- 1 hostmaster hostmaster8 Aug 14 13:35 dovecot-uidvalidity
-r--r--r-- 1 hostmaster hostmaster0 Aug 14 13:35 
dovecot-uidvalidity.520b5d6b

-rw--- 1 hostmaster hostmaster  364 Aug 14 15:32 dovecot.index.cache
-rw--- 1 hostmaster hostmaster  560 Aug 14 15:32 dovecot.index.log
-rw--- 1 hostmaster hostmaster0 Aug 14 13:35 maildirfolder
drwx-- 2 hostmaster hostmaster 4096 Aug 14 15:32 new
drwx-- 2 hostmaster hostmaster 4096 Aug 14 15:32 tmp


Best regards
Tommi


Re: [Dovecot] Dovecot mailbox in read-only mode, Permanentflags empty

2013-08-14 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 14 Aug 2013, Tommi A wrote:

When accessing mailbox through Dovecot IMAP, all user mailboxes are in 
READ-ONLY mode.


Here is a snippet from IMAP telnet conversation (after successful login).

a EXAMINE INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.

I have tried ALOT of different settings (mbox/maildir/acl) but nothing seems 
to help, also no error messages are found in any logfiles.


What are the log entries for the telnet login?


# 2.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.5-1-ARCH x86_64

[...]

mail_debug = yes


good, then plenty of info should be in the logs, about home directory, 
uids etc.pp.



mail_full_filesystem_access = yes
mail_location = maildir:~/Maildir



passdb {
driver = pam
}
userdb {
driver = passwd
}


You seem to use system users, should be visible in the logs. Do the 
directory /Maildir and any file and directory below belong 
to the particular user? Do your users have a home directory at all?


Kind regards,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUgt2AV3r2wJMiz2NAQKeFwf+MFcpmwDBVWd9GCT/JwgvCDunXmKsW7g0
TsOPLfTlOtjVHsFikPa7El4NZiymv8tSmfO6HJEtbJc4oEGwxZMyBfS3xbbo52FD
ZRl43YksxQtDQbPYsApTE7FecN3JLRCI+0SYunq/SUhtgBdVcfzoT9ZLfdRlIX18
XDhEcBeZmJTB890VI2wD2vMEhHLL+nMNnVjVdtatj+uSD8uAsCWloF9o+40hjcLi
XWdpNtqvdZdMHd5yusrIJwGl5qJt5Y8qPzVvpvFgwwjV7cqmfo+flxg1Dran8Zif
MexRAxAvfLPD5rOR+YlaNeP97zRJaCOOFI6nxNH0JzUWkcC09YWerA==
=y/g0
-END PGP SIGNATURE-


[Dovecot] Dovecot mailbox in read-only mode, Permanentflags empty

2013-08-14 Thread Tommi A

Hi,
I have installed Postfix + Dovecot 2.2.5 on a Fresh Arch Linux server 
(using Arch Linux repository packages).
When accessing mailbox through Dovecot IMAP, all user mailboxes are in 
READ-ONLY mode.


Here is a snippet from IMAP telnet conversation (after successful 
login).


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).

I can read the messages but trying to delete results in:

a uid store 1 +flags.silent (\Seen \Deleted)
a OK Store ignored with read-only mailbox.


I have tried ALOT of different settings (mbox/maildir/acl) but nothing 
seems to help, also no error messages are found in any logfiles.
I noticed from mailing list archive that Dovecot has had Permanentflags 
problem in the past, but bugs should have been fixed.


Is the bug back or is there something wrong with my configuration?

Best Regards
Tommi

P.S. Here is my dovecot configuration:
# 2.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.5-1-ARCH x86_64
auth_debug = yes
debug_log_path = /var/log/dovecot_debug.log
info_log_path = /var/log/dovecot.log
mail_debug = yes
mail_full_filesystem_access = yes
mail_location = maildir:~/Maildir
namespace inbox {
hidden = no
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
type = private
}
passdb {
driver = pam
}
plugin {
mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename

}
ssl_cert =