• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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