cPanel mail/hard link issue

When creating a new email account through cPanel, cPanel creates two seperate directories: one under /home/<user>/mail/<mailbox-username> and the other under /home<user>/mail/<domain>/<mailbox-username>.

Now, from what it appears, both inbox use the same inode, which means that one of them is a hard link, my guess is that it's under /home/<user>/mail.

Looks like the lots of inbox hard links are broken on my machine, which means that old email just sits there, counted against my customers quota.

Anyone knows a quick fix besides typing manually ln blah blah one thousand times, or writing a script from scratch?

P.S. /scripts/mailperm didn't work.

 

 

 

 

Top