[Dovecot] maildir_copy_with_hardlinks on v.2.0.19

mailing list subscriber mailinglists35 at gmail.com
Mon Jul 30 13:36:49 EEST 2012


On Sat, Jul 28, 2012 at 8:04 PM, Timo Sirainen <tss at iki.fi> wrote:
> On 23.7.2012, at 22.12, mailing list subscriber wrote:
>
>> As requested, here is my update. As you can see I am running now the
>> latest release however emails delivered through lmtp gets split into
>> different files instead of expected hardlinked files.
> ..
>> userdb {
>>  driver = passwd
>> }
>
> Looks like you're using system users. Each mail then needs to be written using different permissions, so hard linking can't work.
>

I am afraid this is incorrect:

[root at email ~]# cd /tmp
[root at email tmp]# touch 1
[root at email tmp]# stat 1
  File: `1'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 803h/2051d      Inode: 46923784    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-07-30 13:34:45.000000000 +0300
Modify: 2012-07-30 13:34:45.000000000 +0300
Change: 2012-07-30 13:34:45.000000000 +0300
[root at email tmp]# ln 1 2
[root at email tmp]# stat 2
  File: `2'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 803h/2051d      Inode: 46923784    Links: 2
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-07-30 13:34:45.000000000 +0300
Modify: 2012-07-30 13:34:45.000000000 +0300
Change: 2012-07-30 13:34:51.000000000 +0300
[root at email tmp]# chown xfs:xfs 1
[root at email tmp]# stat 1
  File: `1'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 803h/2051d      Inode: 46923784    Links: 2
Access: (0644/-rw-r--r--)  Uid: (   43/     xfs)   Gid: (   43/     xfs)
Access: 2012-07-30 13:34:45.000000000 +0300
Modify: 2012-07-30 13:34:45.000000000 +0300
Change: 2012-07-30 13:35:03.000000000 +0300
[root at email tmp]# chown ntp:ntp 2
[root at email tmp]# stat 2
  File: `2'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 803h/2051d      Inode: 46923784    Links: 2
Access: (0644/-rw-r--r--)  Uid: (   38/     ntp)   Gid: (   38/     ntp)
Access: 2012-07-30 13:34:45.000000000 +0300
Modify: 2012-07-30 13:34:45.000000000 +0300
Change: 2012-07-30 13:35:15.000000000 +0300
[root at email tmp]# echo test > 2
[root at email tmp]# cat 1
test
[root at email tmp]#



More information about the dovecot mailing list