This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 14, 2025, 07:25:26 AM »
The symbolic link is allready made.
ls -l /var/vmail
Output:
lrwxrwxrwx 1 root root 11 Mar 9 22:32 vmail -> /home/vmail/
I allreay moved /var/vmail
The folder /var/vmail contains only 2 clients left, The rest of 10 mail clients are allready moved to /home/vmail
But when i accesed an account Roundcube directly from cPanel (from that 10 account that are allready moved to /home/vmail), it connects to imap but none of the mails are loaded (Inbox empty, Sent, empty)...I should have a lot of e-mails in Inbox and Sent, and phisically exists on /home/vmail/USER
ls -l /var/vmail
Output:
lrwxrwxrwx 1 root root 11 Mar 9 22:32 vmail -> /home/vmail/
I allreay moved /var/vmail
The folder /var/vmail contains only 2 clients left, The rest of 10 mail clients are allready moved to /home/vmail
But when i accesed an account Roundcube directly from cPanel (from that 10 account that are allready moved to /home/vmail), it connects to imap but none of the mails are loaded (Inbox empty, Sent, empty)...I should have a lot of e-mails in Inbox and Sent, and phisically exists on /home/vmail/USER
2
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 13, 2025, 05:09:55 PM »
I did a test with one of the folders in /home/vmail
chown -R USER:mail /home/vmail/USER.ro
Then from cpanel I created an email address test@USER.ro
I sent an email that I received.
But the email address is still created in /var/vmail/USER.ro and not in /home/vmail/USER.ro
chown -R USER:mail /home/vmail/USER.ro
Then from cpanel I created an email address test@USER.ro
I sent an email that I received.
But the email address is still created in /var/vmail/USER.ro and not in /home/vmail/USER.ro

3
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 13, 2025, 03:25:09 PM »
Folders inside /home/vmail belongs to vmail:mail and have permission 700
4
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 13, 2025, 12:29:43 PM »Instead of mv i've used rsync -av. After that i've double checked and all the files and folders are there and are correct (home/vmail). And have the right permissions (i've used chmod 770 /home/vmail and chown vmail.mail /home/vmail
Maybe I should also restart cwpsrv, apache and nginx?
5
CentOS 7 Problems / Move /var/vmail to /home/vmail
« on: March 13, 2025, 08:08:19 AM »
Due to lack of space in centos-root, I am trying to change the location of the mail folder from /var/vmail to /home/vmail.
I used this tutorial:
https://wiki.centos-webpanel.com/move-varvmail-to-another-partition
I also changed in /etc/postfix/main.cf
virtual_mailbox_base = /var/vmail
to
virtual_mailbox_base = /home/vmail
And in /etc/dovecot/dovecot.conf
mail_location = maildir:/var/vmail/%d/%n
to
mail_location = maildir:/home/vmail/%d/%n
I restarted postfix and dovecot but when I try to log in to Roundcube, I get the error:
Cannot connect to imap server
Where am I going wrong?
I used this tutorial:
https://wiki.centos-webpanel.com/move-varvmail-to-another-partition
I also changed in /etc/postfix/main.cf
virtual_mailbox_base = /var/vmail
to
virtual_mailbox_base = /home/vmail
And in /etc/dovecot/dovecot.conf
mail_location = maildir:/var/vmail/%d/%n
to
mail_location = maildir:/home/vmail/%d/%n
I restarted postfix and dovecot but when I try to log in to Roundcube, I get the error:
Cannot connect to imap server
Where am I going wrong?

6
CentOS 7 Problems / Re: Increase size of centos-root
« on: March 10, 2025, 09:16:28 PM »
What tools do you use for backup image creation? Clonezilla?
7
CentOS 7 Problems / Increase size of centos-root
« on: March 10, 2025, 07:48:43 AM »
Hello everyone,
i want to take space from a hdd that i've just added to my server and extend space on /dev/mapper/centos-root.
df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 480K 16G 1% /dev/shm
tmpfs 16G 36M 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 40G 11G 79%
/dev/sda1 1014M 325M 690M 32% /boot
/dev/sdc1 550G 73M 522G 1% /mnt/SAS2-600GB
/dev/mapper/centos-home 1.9T 139G 1.8T 8% /home
tmpfs 3.2G 0 3.2G 0% /run/user/0
So i want to take some space from /dev/sdc1 (550G) and to add it in /dev/mapper/centos-root.
So, as far as i undestand, i should use the following commands:
1. Add /dev/sdc1 to volume group
pvcreate /dev/sdc1
vgextend centos /dev/sdc1
(This will add the space on /dev/sdc1 to the centos volume group)
2. Extend the logical volume /dev/mapper/centos-root:
lvextend -l +100%FREE /dev/centos/root
(this will extend the volume to the available capacity in the volume group (i.e. all available space on /dev/sdc1)
3. Expand the file system:
xfs_growfs /dev/mapper/centos-root
(expand the file system to utilize the added space).
Is that enough?
Those space modification will not affect my production server?
I can make them without loosing data?
i want to take space from a hdd that i've just added to my server and extend space on /dev/mapper/centos-root.
df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 480K 16G 1% /dev/shm
tmpfs 16G 36M 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 40G 11G 79%
/dev/sda1 1014M 325M 690M 32% /boot
/dev/sdc1 550G 73M 522G 1% /mnt/SAS2-600GB
/dev/mapper/centos-home 1.9T 139G 1.8T 8% /home
tmpfs 3.2G 0 3.2G 0% /run/user/0
So i want to take some space from /dev/sdc1 (550G) and to add it in /dev/mapper/centos-root.
So, as far as i undestand, i should use the following commands:
1. Add /dev/sdc1 to volume group
pvcreate /dev/sdc1
vgextend centos /dev/sdc1
(This will add the space on /dev/sdc1 to the centos volume group)
2. Extend the logical volume /dev/mapper/centos-root:
lvextend -l +100%FREE /dev/centos/root
(this will extend the volume to the available capacity in the volume group (i.e. all available space on /dev/sdc1)
3. Expand the file system:
xfs_growfs /dev/mapper/centos-root
(expand the file system to utilize the added space).
Is that enough?
Those space modification will not affect my production server?
I can make them without loosing data?
Pages: [1]