Emanuel Evans emanuel.evans@gmail.com writes:
Steffen Kaiser skdovecot@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:
- hard links won't work on your encfs,
- 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.tmpIt 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 isn't possible, I can change my encfs setup.)