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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Missing emails after mail folder upload

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

  1. Wade John Beckett

    Joined:
    May 29, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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:
    204
    Likes Received:
    12
    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 ?
     
    Wade John Beckett likes this.
  3. Wade John Beckett

    Joined:
    May 29, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Wade John Beckett likes this.
Loading...

Share This Page