If you want to change Plesk mailbox directories please review this technical article for guidance.
mkdir -p /home/var/mail
rsync -avz /var/mail /home/var/mail
Connect to the server using SSH/RDP.
Find what SMTP and IMAP/POP3 servers are in use:
# /usr/local/psa/admin/bin/mailmng --features | egrep 'SMTP_Server|IMAP_POP3_Server'
$features['SMTP_Server'] = "Postfix";
$features['IMAP_POP3_Server'] = "Dovecot"; $features['SMTP_Server_package'] = "postfix"; $features['IMAP_POP3_Server_package'] = "dovecot";
Stop the SMTP service:
# service postfix stop
Open the file /etc/psa/psa.conf and change the PLESK_MAILNAMES_D variable:
specify a new location for mailbox directory so that it is like:
# grep PLESK_MAILNAMES_D /etc/psa/psa.conf PLESK_MAILNAMES_D <new_mailnames_directory>
Note: To avoid performance degradation, the new location for the mailboxes directory should be located in the local file system - it should not be mounted as a network share, such as NFS.
Move mailboxes from the current directory to the new location with the
# cp -ap /var/qmail/mailnames/* <new-mailnames-directory> If dovecot is in use, set the new location in the file /etc/dovecot/dovecot.conf by modifying values in the lines below:
# egrep 'mail_home|mail_location' /etc/dovecot/dovecot.conf mail_home = <new_mailnames_directory>/%Ld/%Ln mail_location = maildir:<new_mailnames_directory>/%Ld/%Ln/Maildir
Restart the dovecot service:
# service dovecot restart
After all the steps are done, start SMTP service and reconfigure mail settings using the mchk utility:
# service postfix start
# plesk repair mail
Before creating new mailboxes on new domains configure SELinux in the following way:
following is not required for selinux disabled server.
# chcon -R -t mail_spool_t <new_mailnames_directory>
- 23 Users Found This Useful
Kindly share some details about VPS hosting?
We are currently offering VPS hosting services from two different locations (USA &...What is Virtual Private Server (VPS) Hosting?
Virtual Private Servers (VPS) are the most advanced step in server virtualization technology and...Why should I choose VPS hosting?
You can choose the Virtual Private Server if you are designers, webmaster and if you are running...What level of control do I receive with my VPS package?
We provide you with full root access to the system which means you can modify server...Do you perform data backups for VPS users?
Yes, we do provide free weekly backup of VPS users which could be obtained upon request.