Some advice regarding custom storage for mail location

AmVu

Registered
Dec 31, 2014
1
0
1
cPanel Access Level
Root Administrator
There seems to be no real info (Or I just cant find it) regarding custom storage lcoation for mail.

It seems most have a VM with xGBs of diskspace and they whack everything onto the same location.

Running dovecot currently and still in the process of migrating to cpanel. So I would like to know if someone has a working solution (cpanel update friendly) where they have custom (lets say SSD storage for mail). I have read alot about symlinks breaking backups (deemed not viable). Hardlinks isnt an option as you cant hardlink something over a different file system.

Hacking the account creation scripts doesnt seem viable either. (I suck at deciphering perl).

I would ideally want mail to live in eg /mailstore and the rest of the info lives in /home as per normal. Any advice?
 

Eric

Well-Known Member
Nov 25, 2007
754
14
143
Texas
cPanel Access Level
Root Administrator
Twitter
Howdy,

We're way off in unsupported territory but my thought would be to make LVM's on the SSD you can grow and shrink for each user. Then write you a post create account hook in bash (yep that'll work) to mount the LVM for the mail folder.

Thanks!