Applicable to:
- Plesk for Linux
Symptoms
Switch from Courier IMAP/POP3 server to Dovecot via Plesk Installer on CentOS7 removes /bin /sbin /lib /lib64 symlinks
There is a mailbox that have IMAP hierarchy with spaces, asterisk "*", brackets "[]", curly braces "{}", question mark "?", quotes in IMAP folder names:
# ls -A /var/qmail/mailnames/example.com/jdoe/Maildir/
Cause
This is a Plesk bug #PPPM-8862. It will be fixed in future Plesk updates
Resolution
Note: please check for potential issues before switching to Dovecot.
As a workaround, the IMAP folders created for the mailboxes via webmail or any other mail client that have spaces, asterisk "*", brackets "[]", curly braces "{}", question mark "?", quotes in its names should be renamed.
- Access mail box jdoe@example.com using a webmail like Horde/Roundcube/MailEnable
- Rename folders that have spaces, asterisk "*", brackets "[]", curly braces "{}", question mark "?", quotes in its names
- After that switch to Dovecot.
- Otherwise, continue to use Courier as an IMAP/POP3 server.
WARNING: The next procedure below is dangerous if the script/server hangs or is stopped. A backup of the folder /var/qmail/mailnames is strongly recommended.
If there are many mailboxes affected, it's possible to use this other workaround which is applied to all server mailboxes at once:
-
Login to the server over SSH
-
Download and decompress the script to the server:
# wget https://plesk.zendesk.com/hc/article_attachments/12377108281495/mbox_rename.tar.gz
tar -xzf mbox_rename.tar.gz -
Run with check
# ./mbox_rename.sh check
-
In case there are mailboxes affected, perform a copy of the entire
/var/qmail/mailnames
directory# tar -cvf backup_mailnames.tar /var/qmail/mailnames
-
Run with encode
# ./mbox_rename.sh encode
-
Now use Plesk installer to switch from Courier to Dovecot in Tools&Settings > Updates and Upgrades > Add/Remove components:
-
Run decode to revert changes back
# ./mbox_rename.sh decode
Comments
0 comments
Please sign in to leave a comment.