Re: [Dovecot] id/permissions question

2009-12-11 Thread Kārlis Repsons
On Friday 11 December 2009 17:22:52 you wrote:
> On Fri, 2009-12-11 at 17:17 +, Kārlis Repsons wrote:
> > dovecot.conf contains this line: mail_privileged_group = mail
> 
> This is needed only with mbox format. You should probably just comment
> it out.

> chgrp user1 /path/user1
> chmod 0700 /path/user1

Thanks Timo, yes, was my own silly mistake...


signature.asc
Description: This is a digitally signed message part.


Re: [Dovecot] id/permissions question

2009-12-11 Thread Timo Sirainen
On Fri, 2009-12-11 at 17:17 +, Kārlis Repsons wrote:
> People,
> 
> There is an imap client, which runs with user1 uid, but when its accessed to 
> watch a maildir, whose (and its contents) ownership is user1:user1, this 
> error 
> occurs:
> 
> dovecot: IMAP(user1): fchown(/path/user1/dovecot-uidlist.tmp, -1, 12(mail)) 
> failed: Operation not permitted (egid=1000(user1), group based on /path/user1)
> 
> dovecot.conf contains this line: mail_privileged_group = mail

This is needed only with mbox format. You should probably just comment
it out.

> authentication happens through passwd-file, where for user1 its uid and gid 
> are 
> specified as in /etc/passwd and /etc/group.
> 
> So how should dovecot be told to use user1 group instead of mail group? (or 
> it 
> needs some other solution?)

chgrp user1 /path/user1

or

chmod 0700 /path/user1



signature.asc
Description: This is a digitally signed message part


[Dovecot] id/permissions question

2009-12-11 Thread Kārlis Repsons
People,

There is an imap client, which runs with user1 uid, but when its accessed to 
watch a maildir, whose (and its contents) ownership is user1:user1, this error 
occurs:

dovecot: IMAP(user1): fchown(/path/user1/dovecot-uidlist.tmp, -1, 12(mail)) 
failed: Operation not permitted (egid=1000(user1), group based on /path/user1)

dovecot.conf contains this line: mail_privileged_group = mail
authentication happens through passwd-file, where for user1 its uid and gid are 
specified as in /etc/passwd and /etc/group.

So how should dovecot be told to use user1 group instead of mail group? (or it 
needs some other solution?)


signature.asc
Description: This is a digitally signed message part.