Articles in this section

Switch from Courier IMAP/POP3 server to Dovecot via Plesk Installer on CentOS7 removes /bin /sbin /lib /lib64 symlinks

kb: bug Plesk for Linux

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

Plesk bug PPPM-8862.

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.

  1. Access mail box jdoe@example.com using a webmail like Roundcube/SOGo.
  2. Rename folders that have spaces, asterisk "*", brackets "[]", curly braces "{}", question mark "?", quotes in its names
  3. Switch to Dovecot, or continue using 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 directory /var/qmail/mailnames is strongly recommended.

If there are many mailboxes affected, it is possible to use this other workaround which is applied to all server mailboxes at once:

Click here to reveal the advanced workaround
  1. Connect to the server via SSH.
  2. 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

  3. Run with check:

    # ./mbox_rename.sh check

  4. In case there are multiple mailboxes affected, perform a copy of the entire /var/qmail/mailnames directory:

    # tar -cvf backup_mailnames.tar /var/qmail/mailnames

  5. Run with encode:

    # ./mbox_rename.sh encode

  6. Use Plesk installer to switch from Courier to Dovecot in Tools & Settings > Updates > Add/Remove components:

  7. Run decode to revert changes back:

    # ./mbox_rename.sh decode

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.