Permissions problem with mdbox maildir

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Feb 24 07:07:38 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 23 Feb 2015, Emanuel Evans wrote:
> Emanuel Evans <emanuel.evans at gmail.com> writes:
>
>> Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> writes:
>>
>>> Could you try what happens, if you create the hardlink manually as the
>>> vmail user _two_ times, if the first link() succeeds. Maybe:
>>>
>>> 1) hard links won't work on your encfs,
>>> 2) link() fails with "Operation not permitted" instead of "File exists" in
>>> your case, if the target file already exists.
>>>
>>> Something like: sudo -u vmail ln  \
>>> /var/decrypted/vmail/aleme.nu/root/mailboxes/INBOX/dbox-Mails/dovecot.index \
>>> /var/decrypted/vmail/aleme.nu/root/mailboxes/INBOX/dbox-Mails/dovecot.index.backup.tmp
>>
>> It turns out (1) was the problem—encfs doesn't allow hard links in my
>> configuration. I've set maildir_copy_with_hardlinks to no; hopefully
>> that will resolve the issue. Thanks so much for your help!
>
> Unfortunately, even with maildir_copy_with_hardlinks set to "no", the
> problem still seems to persist. So my question becomes: is there a way
> to prevent dovecot from using hardlinks in all circumstances? (If it

I don't think so.

> isn't possible, I can change my encfs setup.)

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVOwjOnz1H7kL/d9rAQILcQgAxA6L0gs2cPeYYrW0th8BVsU6GWs7NweS
BkhZgawrAvgTxTFDna4hjG0CM57aWlDxvcGzHuVLg5Q35TijGJl+UY6OHY78v8dI
dw+l2H2VQjtt2qw2tlStes2XHW3eCM+PWVz9KRYKfIZoof53kwpn16sGlDE9kde8
J5ndgXYl4ACiNZHxkjumTgX/jNg0NMADWGQZUZoPU9KEUS2MPnKC08M0BWvryiQV
auOFK1ZVrrL3R9JKQ85E9yYYBfIWRFx/uY+vi7WZWlgPieaqsC3cxBYRriTVoW13
j1GflBwg6mwM0xF7kJ2iywLQzQHjCxnsrpqU+6X+sW7dfIhI5JNDhA==
=txun
-----END PGP SIGNATURE-----


More information about the dovecot mailing list