Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Missing emails after mail folder upload

Discussion in 'E-mail Discussion' started by Wade John Beckett, Aug 23, 2017.

  1. Wade John Beckett

    Joined:
    May 29, 2017
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Hi Guys,

    Today I uploaded the "mail" folder from an old cPanel server to a new one for one account.

    The old mail folder contained emails up to the 18th, today is the 23rd. After the upload all the mails from the 18th to the 23rd went missing (Aside from the ones received after the upload had completed).

    My suspicion is that it has something to do with the fact that I only uploaded the mail folder and not the cur folder.

    The passwords for these accounts are different on each server.

    Please tell me I have not lost the mails from between the 18th and today when I uploaded the mail folder?
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    267
    Likes Received:
    20
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    did you checked the permissions of the mail folder , make sure you have set proper ownship. also on what path did you uploaded the folder ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Wade John Beckett likes this.
  3. Wade John Beckett

    Joined:
    May 29, 2017
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Hi, I deleted the dovecot.index files.
    Do these files index the existing mails in the mailbox?

    The mails are back so I assume this may have been the issue.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You can read more about the Dovecot index files at:

    IndexFiles - Dovecot Wiki

    If you want to remove existing index files so they are regenerated, you'd use the following command:

    Code:
    /scripts/remove_dovecot_index_files
    Keep in mind that manually replacing the entire "mail" directory is not a supported method of restoring email. If you are using the Maildir mailbox format, then you'd want to upload the contents of the individual email account's "cur" directory and then run the "/scripts/mailperm $username" command.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Wade John Beckett likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice