1

Topic: We want change directory

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- 1.6.2
- installer
- Linux ubuntu 20.04.05 LTS:
- MySQL
- Apache
====
Hello we migrate our mail server to new one. After the migration i create new users in iredadmin. But their mailboxes in on the our ssd drives. We want to change it to hdd where are the other user are.

----

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

2

Re: We want change directory

Steps:

- Stop Postfix + Dovecot + Nginx services. make sure no access to all mailboxes.
- Move /var/vmail/vmail1 to HDD disk. Also make sure all files / directories are owned by "vmail:vmail" with permission 0700.
- Create a symbol link of moved vmail1 folder back to /var/vmail/vmail1.
- Start Postfix + Dovecot + Nginx services.

For example, let's say you want to move all mailboxes to /mnt/hdd which is a partition on HDD disk:

systemctl stop postfix dovecot nginx
mv /var/vmail/vmail1 /mnt/hdd
ln -sf /mnt/hdd/vmail1 /var/vmail/vmail1
systemctl start dovecot postfix nginx