Author Topic: Move "/var/vmail" to "/home/vmail"  (Read 12569 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..

Offline
*
Re: Move "/var/vmail" to "/home/vmail"
« Reply #4 on: April 11, 2020, 02:23:07 PM »

Hello,

I need your help, because all emails are locate to /var/vmail/
and / is only 50 giga. I dont have more free space here,
How to change the directory of emails to correspondent folder for each user /home/%user...

Thank you so much.

Offline
*
Re: Move "/var/vmail" to "/home/vmail"
« Reply #5 on: April 11, 2020, 02:43:41 PM »

Hello,

I need your help, because all emails are locate to /var/vmail/
and / is only 50 giga. I dont have more free space here,
How to change the directory of emails to correspondent folder for each user /home/%user...

Thank you so much.

https://wiki.centos-webpanel.com/move-varvmail-to-another-partition
Partner de CWP

Hosting de calidad en Espaņa con soporte en Espaņol para CWP - https://www.coriaweb.hosting

Re: Move "/var/vmail" to "/home/vmail"
« Reply #6 on: April 11, 2020, 03:39:59 PM »
The ideal location would/should be /home/%user%/mail
Will also easily allow email to be included in a user's quota.
(As said a few times in the past.)

Offline
*
Re: Move "/var/vmail" to "/home/vmail"
« Reply #7 on: April 12, 2020, 02:32:21 AM »
The ideal location would/should be /home/%user%/mail
Will also easily allow email to be included in a user's quota.
(As said a few times in the past.)

YEs this is ideally, but how I can do it? any idea please!

Offline
*
Re: Move "/var/vmail" to "/home/vmail"
« Reply #8 on: April 12, 2020, 02:45:41 AM »

Hello,

I need your help, because all emails are locate to /var/vmail/
and / is only 50 giga. I dont have more free space here,
How to change the directory of emails to correspondent folder for each user /home/%user...

Thank you so much.

https://wiki.centos-webpanel.com/move-varvmail-to-another-partition

Hello, thank you for your help, i am trying to test these comands in my ServerLab  by sending emails with big attach, but I dont know why the size of home and the size of /root  are increase bothly ?!

before
[root@cwp var]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 5.8G     0  5.8G   0% /dev
tmpfs                    5.8G     0  5.8G   0% /dev/shm
tmpfs                    5.8G   60M  5.8G   2% /run
tmpfs                    5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/mapper/centos-root  193G  7.1G  176G   4% /
/dev/sda1                976M  141M  769M  16% /boot
/dev/mapper/centos-home  583G 245M  553G   1% /home
tmpfs                    1.2G     0  1.2G   0% /run/user/0

after
[root@cwp var]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 5.8G     0  5.8G   0% /dev
tmpfs                    5.8G     0  5.8G   0% /dev/shm
tmpfs                    5.8G   60M  5.8G   2% /run
tmpfs                    5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/mapper/centos-root  193G  7.3G  176G   4% /
/dev/sda1                976M  141M  769M  16% /boot
/dev/mapper/centos-home  583G 338M  553G   1% /home
tmpfs                    1.2G     0  1.2G   0% /run/user/0
« Last Edit: April 12, 2020, 02:48:56 AM by andipreza »

Offline
**
Re: Move "/var/vmail" to "/home/vmail"
« Reply #9 on: April 12, 2020, 08:22:11 AM »
The ideal location would/should be /home/%user%/mail
Will also easily allow email to be included in a user's quota.
(As said a few times in the past.)

Hope we will get a solution for this.

Offline
*
Re: Move "/var/vmail" to "/home/vmail"
« Reply #10 on: April 12, 2020, 10:19:16 AM »

Hello,

I need your help, because all emails are locate to /var/vmail/
and / is only 50 giga. I dont have more free space here,
How to change the directory of emails to correspondent folder for each user /home/%user...

Thank you so much.

https://wiki.centos-webpanel.com/move-varvmail-to-another-partition

Hello, thank you for your help, i am trying to test these comands in my ServerLab  by sending emails with big attach, but I dont know why the size of home and the size of /root  are increase bothly ?!

before
[root@cwp var]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 5.8G     0  5.8G   0% /dev
tmpfs                    5.8G     0  5.8G   0% /dev/shm
tmpfs                    5.8G   60M  5.8G   2% /run
tmpfs                    5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/mapper/centos-root  193G  7.1G  176G   4% /
/dev/sda1                976M  141M  769M  16% /boot
/dev/mapper/centos-home  583G 245M  553G   1% /home
tmpfs                    1.2G     0  1.2G   0% /run/user/0

after
[root@cwp var]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 5.8G     0  5.8G   0% /dev
tmpfs                    5.8G     0  5.8G   0% /dev/shm
tmpfs                    5.8G   60M  5.8G   2% /run
tmpfs                    5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/mapper/centos-root  193G  7.3G  176G   4% /
/dev/sda1                976M  141M  769M  16% /boot
/dev/mapper/centos-home  583G 338M  553G   1% /home
tmpfs                    1.2G     0  1.2G   0% /run/user/0

I see that for every email something is save here: /usr/local/cwpsrv/var/services/roundcube/temp
so i thing that is not a solution to move only /var/vmail