Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: H9w to change location of mail directories in Plesk?  (Read 1945 times)

0 Members and 1 Guest are viewing this topic.

Givin Varghese

  • Guest
H9w to change location of mail directories in Plesk?
« on: November 28, 2013, 02:33:17 pm »
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:

Code: [Select]
# /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:
Quote
PLESK_MAILNAMES_D /opt/qmail/mailnames

2. Move the current directory to the new location:
Code: [Select]
# 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:
Code: [Select]
# /etc/init.d/qmail start
# /etc/init.d/postfix start
# /etc/init.d/xinetd start
# /usr/local/psa/admin/sbin/mchk –with-spam

DONE  >:(