Author Topic: Move "/var/vmail" to "/home/vmail"  (Read 3037 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Move "/var/vmail" to "/home/vmail"
« on: April 23, 2016, 09:28:32 PM »
Hello,

I need to move the folder where the emails are storaged.

What is the best solution for that?

Offline
***
Re: Move "/var/vmail" to "/home/vmail"
« Reply #1 on: April 24, 2016, 12:31:25 AM »
may be not best solution

- in old server, from /var,  targz "vmail"  folder 
- move targz file into folder where we can wget it, exp "/home/user/public_html/

- in new server, from /var folder, wget archive.tar.gz from old server
- un targz it


Offline
*
Re: Move "/var/vmail" to "/home/vmail"
« Reply #2 on: September 09, 2016, 10:12:18 AM »
Hello,

I need to move the folder where the emails are storaged.

What is the best solution for that?

I don't test it, but:

Code: [Select]
/etc/init.d/postfix stop && mv /var/vmail/ /home/vmail && ln /home/vmail /var/vmail && /etc/init.d/postfix start

Offline
*
Re: Move "/var/vmail" to "/home/vmail"
« Reply #3 on: November 13, 2017, 07:27:30 PM »
Use this, as Ive tested this with Centos7

service postfix stop && mv /var/vmail/ /home/vmail && mv /var/vmail /var/vmailold && ln -s /home/vmail /var/vmail && service postfix start


you can remove the /var/vmailold at your leisure when you know all is working..