Reconfigure Parallels Plesk Panel to store mail messages in another directory.
Original Location:
/var/qmail/mailnames/New Location:
/opt/qmail/mailnames/Note: to avoid sufficient performance degradation, the new location for the email message directory (
/opt/qmail/mailnames) should be within the local file system. It should not be mounted as a network (for example, NFS) share.
Stop mail services and xinetd:
# /etc/init.d/qmail stop
# /etc/init.d/postfix stop
# /etc/init.d/xinetd stop
1. Open the file
/etc/psa/psa.conf in a file editor (f.e., vim) and find the variable
PLESK_MAILNAMES_D.
Replace its value with the new location:
PLESK_MAILNAMES_D /opt/qmail/mailnames
2. Move the current directory to the new location:
# cp -a <current-mailnames-directory> <new-mailnames-directory>
3. After content is moved, start services that were stopped in step #0 and reconfigure mail settings using the mchk utility:
# /etc/init.d/qmail start
# /etc/init.d/postfix start
# /etc/init.d/xinetd start
# /usr/local/psa/admin/sbin/mchk –with-spam
DONE