1

Topic: Move mail directory

==== Required information ====
- 0.9.5-1
- Centos 7
- MySQL
-  Nginx
- RedAdmin-Pro
- Related log if you're reporting an issue:
====

We want to have all e-mails in another HD !  Changed in iRedadmin but it didn't work!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Move mail directory

*) The maildir path in iRedAdmin affects newly arrived emails, not existing emails.
*) You should move old mailbox by 'mv' command, then update the maildir path in SQL database (or keep the old one, but create a symbol link of new mailbox to old maildir path).

3

Re: Move mail directory

Can you name the database and tables to be modified ?
The one I can see is "vmail/mailbox" but when modified all mail boxes disappear!
changing storagebasedirectory from "/var/vmail" to "/maildata/vmail" !

4

Re: Move mail directory

Are you going to move all users’ mailboxes to a new directory, or just one/few users'?

5

Re: Move mail directory

all current users !

6

Re: Move mail directory

Default mailbox storage is /var/vmail/vmail1, let's say you want to move them all to /new/vmail1, the easiest way is: Move /var/vmail/vmail1 to /new, then create a symbol link to old directory (/var/vmail/vmail1).

mv /var/vmail/vmail1 /new
ln -s /new/vmail1 /var/vmail/vmail1

No additional change required.