[Dovecot] Maildir hardlinks

Timo Sirainen tss at iki.fi
Thu Oct 18 06:18:49 EEST 2012


On 16.10.2012, at 10.11, Benedetto Vassallo wrote:

>> What are the permissions of the MailDir directory for user1/user2?
>> 
>> ls -ld /home/user1/MailDir
>> ls -ld /home/user2/MailDir
>> 
>> 
> 
> Thank you for your reply.
> They are different groups:
> 
> drwxr-xr-x 9 user1 grp1 4096 15 ott 14:52 /home/user1/MailDir/
> drwxr-xr-x 5 user2 grp2 4096  4 ott 23:43 /home/user2/MailDir/
> drwxr-xr-x 10 user3 grp3 4096 15 ott 14:52 /home/user3/MailDir/

Not very secure permissions.. Maybe would be easiest to just have one vmail user for everyone?

> I tryed to issue:
> chgrp -R mail /home/user1/MailDir
> chgrp -R mail /home/user2/MailDir
> chgrp -R mail /home/user3/MailDir

Dovecot doesn't do hard linking when it looks like the permissions aren't compatible. The current code checks that if the owner UIDs are different, then the group needs to be writable.


More information about the dovecot mailing list