Changing the directory where mailboxes are stored

Is there a way to change where the mailboxes are stored, or on a fresh install change the directory.

I’m using a DigitalOcean droplet with an attached block storage, and would like to move/install the mailboxes to the attached storage as they can be resized as needed

You have to start being careful when you update if you do modifications like these, but you can simply use a symlink for this.

see `man ln’

use

move the folder to /path/to/extra/space/emails

ln -s /path/to/extra/space/emails /path/to/new/link