ddavness / power-mailinabox

A Mail-in-a-Box with extra capabilities and more customizability. Not just for power users!
Creative Commons Zero v1.0 Universal
168 stars 32 forks source link

adding encryption at rest for /home/user-data #18

Open guizmoau opened 3 years ago

guizmoau commented 3 years ago

This fork https://github.com/downtownallday/mailinabox-ldap has successfully implemented encryption at rest with LUKS for user-data folder.

You can make it optional, it just need to add the folder ehdd at root and start the install with script start-encrypted.sh and then after reboot to start the script startup.sh to launch server.

Could be a great new feature to add to your great powerfull fork !!

ddavness commented 3 years ago

Hi, and thanks!

I could look into this - but given there are passphrases involved I'm not sure how this would affect user experience in what maintenance is concerned.

I admit not being familiar with disk encryption, but a concern I have got is that resizing the LUKS file can either be a PITA, a very time-consuming process, or both.

What would be the difference between and mounting a dedicated partition on your disk just for mounting /home/user-data and the solution you're proposing?

guizmoau commented 3 years ago

Hi ddavness,

Thanks again for your great job on that forks !!

-the dedicated partition won't be encrypted so if someone access the disk of your server physically all data are in clear but you could use encrypted LVM for the whole system as well but it will be even more complicated at boot depending how you host your server yourself or totally or partially or with access to the hypervisor

alternatively there is a plugin for dovecot that does a similar job for the mails only https://doc.dovecot.org/configuration_manual/mail_crypt_plugin/ I haven't got time to try it yet but it could do the job for encryption at rest