I have a homely postfix+dovecot server running in ubuntu.
I need to move the email storage to a different disk. There is not much information available on how to proceed, most of the use cases refer to migrating between different servers, which is not my case. Some other references say it would be fine if I just change mail_location variable in 10-mail.conf. I'm using mbox storage format.
What I want to do is to move all the files and folders to a different disk and mount that directory in the exact same location.
This is my plan:
- Stop dovecot and postfix services
- Move all the files in the current mailbox location to the new disk
- Create a symbollyc link so that the mail location points to the new disk
- Restart services
Can someone advise if my plan makes sense and if I am doing all what is needed?
cp -a). Other than that, I'd say your plan is sound - just make sure to backup first ;)