• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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