• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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 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