Voytek Eymont
2020-Aug-28 14:35 UTC
moving /var/vmail/vmail1 Maildir tree to another partition?
I have a small Postfix/Dovecot/MariaDB on Centos 7 with a dozen virtual domains, I'm running out of space in /var but got space can I simply move the entire /var/vmail/vmail1 tree elsewhere ? like say /vmail/vmail1 is it as simple as shutting Dovecot/Postfix, move tree, edit conf and re start ? or am I missing something ..? or is the a better way of doing this ? # grep 'var/vmail' *.conf dovecot.conf: sieve_global_dir = /var/vmail/sieve dovecot.conf: sieve_global_path = /var/vmail/sieve/dovecot.sieve dovecot.conf:# location maildir:/var/vmail/public/:CONTROL=~/Maildir/public:INDEX=~/Maildir/public # cd ../postfix # grep 'var/vmail' *.cf main.cf:virtual_mailbox_base = /var/vmail # dovecot --version 2.3.11.3 (502c39af9)
Urban Loesch
2020-Aug-30 16:24 UTC
moving /var/vmail/vmail1 Maildir tree to another partition?
Hi, not testet but for a fast solution I think this should work: - stop dovecot/postfix - mv "/var/vmail" to the "/newspace/". - create a symlink which points from "/var/vmail" to "/newspace/vmail". - start dovecot/postfix Regards Urban Am 28.08.2020 um 16:35 schrieb Voytek Eymont:> I have a small Postfix/Dovecot/MariaDB on Centos 7 with a dozen virtual > domains, I'm running out of space in /var but got space > > can I simply move the entire /var/vmail/vmail1 tree elsewhere ? > like say /vmail/vmail1 > > is it as simple as shutting Dovecot/Postfix, move tree, edit conf and re > start ? > or am I missing something ..? or is the a better way of doing this ? > > # grep 'var/vmail' *.conf > dovecot.conf: sieve_global_dir = /var/vmail/sieve > dovecot.conf: sieve_global_path = /var/vmail/sieve/dovecot.sieve > dovecot.conf:# location > maildir:/var/vmail/public/:CONTROL=~/Maildir/public:INDEX=~/Maildir/public > > # cd ../postfix > # grep 'var/vmail' *.cf > main.cf:virtual_mailbox_base = /var/vmail > > # dovecot --version > 2.3.11.3 (502c39af9) > >