Email messages are missing for all mailboxes since some time

Created:

2016-11-16 13:23:47 UTC

Modified:

2017-08-08 13:40:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Email messages are missing for all mailboxes since some time

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. Email messages are missing for all mailboxes since some time

  2. The directory for mail is custom:

    # find / -type d -name 'mailnames'
    /home/emails/mailnames

Cause

Dovecot configuration values have been reset to default.

Resolution

  1. Open /etc/dovecot/dovecot.conf with preferable editor, e.g. Vim:

    vi /etc/dovecot/dovecot.conf
  2. Edit the following values so that they point to the correct mail directory:

    mail_home = /home/emails/mailnames/%Ld/%Ln
    mail_location = maildir:/home/emails/mailnames/%Ld/%Ln/Maildir
  3. Copy missing mail messages respectively from:

    /var/qmail/mailnames/<example.com>/<mailbox>/Maildir/cur/
    /var/qmail/mailnames/<example.com>/<mailbox>/Maildir/new/

    to

    /home/emails/mailnames/<example.com>/<mailbox>/Maildir/cur/
    /home/emails/mailnames/<example.com>/<mailbox>/Maildir/new

    like as follows:

    # cp -p /var/qmail/mailnames/example.com/mailbox/Maildir/cur/* /home/emails/mailnames/example.com/mailbox/Maildir/cur/
Have more questions? Submit a request
Please sign in to leave a comment.