Re: [Dovecot] Folder Management Dovecot >1.2

2009-10-02 Thread Carlos Candeias
Confirmed, that's it!
Thanks for the incredibly quick help!

Am Freitag, den 02.10.2009, 09:24 -0400 schrieb Timo Sirainen:

> On Oct 2, 2009, at 9:04 AM, Carlos Candeias wrote:
> 
> > Oct 02 14:58:19 IMAP(jcci): Error:
> > fchown(/candeias/home/jcci/.mail/Maildir/subscriptions.lock, -1,
> > 0(root)) failed: Operation not permitted (egid=1003(management), group
> > based on /candeias/home/jcci/.mail/Maildir)
> 
> The Maildir permissions are wrong. Either it shouldn't be owned by  
> group root (but by management), or its mode should be 0700.
> 


Re: [Dovecot] Folder Management Dovecot >1.2

2009-10-02 Thread Timo Sirainen

On Oct 2, 2009, at 9:04 AM, Carlos Candeias wrote:


Oct 02 14:58:19 IMAP(jcci): Error:
fchown(/candeias/home/jcci/.mail/Maildir/subscriptions.lock, -1,
0(root)) failed: Operation not permitted (egid=1003(management), group
based on /candeias/home/jcci/.mail/Maildir)


The Maildir permissions are wrong. Either it shouldn't be owned by  
group root (but by management), or its mode should be 0700.




Re: [Dovecot] Folder Management Dovecot >1.2

2009-10-02 Thread Carlos Candeias
Thanks for the super quick reply!

Dovecot -n:

# 1.2.25: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.30-ARCH x86_64  
log_path: /var/log/dovecot
info_log_path: /var/log/dovecot.info
protocols: imap
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
first_valid_uid: 999
last_valid_uid: 
last_valid_gid: 
mail_location: maildir:~/.mail/Maildir
mail_full_filesystem_access: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
lock_method: dotlock
maildir_copy_preserve_filename: yes
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd

Am Freitag, den 02.10.2009, 21:04 +0800 schrieb Carlos Candeias:

> Regardless of the mail client no user can modify, move, delete or
> subscribe an imap folder with Dovecot >1.2.1 (meanwhile 1.2.5). Dovecot
> apparently have some dotlock problems:
> (From dovecot.log)
> Oct 02 14:58:19 IMAP(jcci): Error:
> fchown(/candeias/home/jcci/.mail/Maildir/subscriptions.lock, -1,
> 0(root)) failed: Operation not permitted (egid=1003(management), group
> based on /candeias/home/jcci/.mail/Maildir)
> Oct 02 14:58:19 IMAP(jcci): Error: file_dotlock_open() failed with
> subscription file /candeias/home/jcci/.mail/Maildir/subscriptions:
> Operation not permitted
> Oct 02 14:58:20 IMAP(jcci): Error:
> fchown(/candeias/home/jcci/.mail/Maildir/subscriptions.lock, -1,
> 0(root)) failed: Operation not permitted (egid=1003(management), group
> based on /candeias/home/jcci/.mail/Maildir)
> Oct 02 14:58:20 IMAP(jcci): Error: file_dotlock_open() failed with
> subscription file /candeias/home/jcci/.mail/Maildir/subscriptions:
> Operation not permitted
> Oct 02 14:58:20 IMAP(jcci): Error:
> fchown(/candeias/home/jcci/.mail/Maildir/subscriptions.lock, -1,
> 0(root)) failed: Operation not permitted (egid=1003(management), group
> based on /candeias/home/jcci/.mail/Maildir)
> Oct 02 14:58:20 IMAP(jcci): Error: file_dotlock_open() failed with
> subscription file /candeias/home/jcci/.mail/Maildir/subscriptions:
> Operation not permitted
> Oct 02 14:58:21 IMAP(jcci): Error:
> fchown(/candeias/home/jcci/.mail/Maildir/subscriptions.lock, -1,
> 0(root)) failed: Operation not permitted (egid=1003(management), group
> based on /candeias/home/jcci/.mail/Maildir)
> Oct 02 14:58:21 IMAP(jcci): Error: file_dotlock_open() failed with
> subscription file /candeias/home/jcci/.mail/Maildir/subscriptions:
> Operation not permitted
> Oct 02 14:58:21 IMAP(jcci): Error:
> fchown(/candeias/home/jcci/.mail/Maildir/subscriptions.lock, -1,
> 0(root)) failed: Operation not permitted (egid=1003(management), group
> based on /candeias/home/jcci/.mail/Maildir)
> Oct 02 14:58:21 IMAP(jcci): Error: file_dotlock_open() failed with
> subscription file /candeias/home/jcci/.mail/Maildir/subscriptions:
> Operation not permitted
> 
> This was an attemt of changing a subscription.
> Another weird point: I can create an IMAP folder although it does not
> show up in the folder list. But the new folder is in the subscription
> list, just marked as unsubscribed and there is no way to change that.
> This problem is safely reproducible and I wonder whether I should be
> really the only person having this trouble.
> I'm using MAILDIR and simple plain test authentification (internal mail
> server).
> The location is mail_location: maildir:~/.mail/Maildir which means a
> subfolder in each user's home directory.
> All homes are exported to NFS, but the Dovecot is just on the same
> server and thus accesses locally.
> Downgrade to version 1.1.17 solves all problems.
> Archlinux x86_64, Linux 2.6.30
> It would be really great if somebody could understand the cause and
> suggest a solution!


Re: [Dovecot] Folder Management Dovecot >1.2

2009-10-02 Thread Charles Marcus
On 10/2/2009, Carlos Candeias (car...@candeias.com) wrote:
> Regardless of the mail client no user can modify, move, delete or
> subscribe an imap folder with Dovecot >1.2.1 (meanwhile 1.2.5). Dovecot
> apparently have some dotlock problems:

Dovecot -n output might be instructive...

-- 

Best regards,

Charles