• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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 Relocation of mails on different hard disk for Linux

carodp

New Pleskian
Server operating system version
Linux
Plesk version and microupdate number
Version 18.0.63 Update #4
Hello,

I recently had a "Insufficient storag" problem due to mail.
So I added a volume on my ovh instance Créer et configurer un disque supplementaire sur une instance
I mounted it on my Plesk linux
I followed the tutorial https://support.plesk.com/hc/en-us/...ault-location-of-mailboxes-in-Plesk-for-Linux

However in spite of all that I still have a problem of storage like mail are still assigned to the old main hard disk and not the new one I mounted.
But I can see in the stats of usage that mail are stored on the new one ! So it is really like the old one has a kind of priority and the new one is not really used.

I am sorry this is not my domain of expertise.

What should i do so my new disk mounted o /mnt/disk handles everything for the mail ?


Thanks
 
Hey, @carodp. Could you please clarify what do you mean by mail are still assigned to the old main hard disk - are the new mailboxes created on the server assigned to the old location or emails you send/receive for particular mailboxes are still stored at the old location? Also, have you moved/removed the mail data from the old directory? Lastly, if you could provide code-snippets/screenshots of the configuration files (/etc/psa/psa.conf; /etc/dovecot/conf.d/example-custom_dir.conf; popuser's dorectory from /etc/passwd). Lastly, please confirm the exact Linux distribution/version of your server. Thank you in advance for your cooperation.
 
It seems that even after doing the full tutorial (https://support.plesk.com/hc/en-us/...ault-location-of-mailboxes-in-Plesk-for-Linux), and in spite of my new hard disk being only 30% occupied (because of the cp of the tutorial - I copied from the old to the new directory), I still have the error message "insufficient storage" like it is only using the old directory on the main hard disk and not the new one.

Yes I didn't delete yet the old location because I wanted to be sure that my "migration" was working.
I did rename it
however one hour ago so I don't know if that will change anything, and I created a symlink to the new directory (on the new disk).
So I looks like :
lrwxrwxrwx 1 root root mailnames -> /mnt/disk/mailnames
drwxr-xr-x 5 root root mailnames_backup(the new name of old directory)
drwxr-xr-x 4 popuser popuser popuser

/mnt/disk/ is the new directory to the new hard disk.

I really followed to the letter the tutorial I linked in first message. I just added the symlink.

In /etc/psa/psa.conf :
QMAIL_ROOT_D /var/qmail
PLESK_MAILNAMES_D /mnt/disk/qmail/mailnames
Do you need more ?

In /etc/dovecot/conf.d/99-mail.conf:
mail_home = /mnt/disk/qmail/mailnames/%Ld/%Ln
mail_location = maildir:/mnt/disk/qmail/mailnames/%Ld/%Ln/Maildir:UTF-8

In popuser /etc/passwd:
popuser:.......service user:/mnt/disk/qmail/popuser:/usr/sbin/nologin

Distribution : Linux Debian 5.10.46-4~bpo10+1 (2021-08-07) x86_64

Thank you very much
 
Sorry error :
So I looks like :
lrwxrwxrwx 1 root root mailnames -> /mnt/disk/qmail/mailnames
drwxr-xr-x 5 root root mailnames_backup(the new name of old directory)
drwxr-xr-x 4 popuser popuser popuser


So the old directory is now a symlink to the new directory

I hope this will work but i would like to know if there are better ways
 
What exactly is complaining about insufficient storage?
After all, if you haven't removed the old mail spool yet, you haven't gained any space on the root filesystem.
 
Back
Top