• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Additional disk only for emails on plesk ?

Erick Nunes

Basic Pleskian
Hello,

In plesk is it possible to choose a disk just for emails?

He currently uses Amazon Lightsail and would like to set all customer emails on a disk apart from everything else.

Is there a tutorial for this?

Thanks
 
You can use this as a blueprint:

Code:
# list existing block devices
fdisk -l
     -->  /dev/vdb


# partition the new block device
fdisk /dev/vdb
    n
    p
    <enter>
    <enter>
    w


# format the new partition
mkfs.ext4 /dev/vdb1


# disable automatic fs-check every X days/mounts
tune2fs -c0 -i0 /dev/vdb1


# stop services potentially accessing /var/qmail
service postfix stop
service dovecot stop


# rename old qmail directory and create new one
mv /var/qmail /var/qmail_old
mkdir /var/qmail


# get UUID of the new partition
blkid
    --> e725875b-0153-49c6-8e9b-132b0acf0b30


# edit fstab to make system automatically mount the new partition/block device (on boot)
vi /etc/fstab
    --> added "UUID=e725875b-0153-49c6-8e9b-132b0acf0b30 /var/qmail      ext4    errors=remount-ro 0       2"

   
# mount the new partition
mount -a


# move content from old qmail directory to new parition/block device
mv /var/qmail_old/* /var/qmail/
rmdir /var/qmail_old


# starting the stopped services again
service postfix start
service dovecot start
 
Obligatory warning that using fdisk or mkfs.ext4 on the wrong device can lead to total data loss, so be careful, double-check every parameter, and do NOT proceed if you're not really sure.
 
Back
Top