Koozali.org: home of the SME Server

IMAP email Inbox subfolder disappeared

Offline girimia

  • **
  • 22
  • +0/-0
IMAP email Inbox subfolder disappeared
« on: November 22, 2016, 12:20:44 PM »
Hello,

An email server user are organized emails in IMAP Inbox subfolders. One of these folders disappeared from /home/e-smith/files/users/user_name/Maildir.Namefolder location.

It found nowhere else, although it exists in Outlook Inbox.
It can recover from this folder somewhere from the server?

Where can I see what happened?

I have a back-up server performing the DAR.
I can recover from this folder without restoring all the server?

Thank you!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #1 on: November 22, 2016, 01:39:06 PM »
well, I bet 30c that it was deleted by an user..

be aware that esch email client has its own folders, meaning that the trash folder in outlook maybe not be the same trash folder in TB..

I suggest you to use TB, subscribe all the folders and check again..

if you have to restore it, AFAIK you can restore selectively at folder/subfolder level

Offline girimia

  • **
  • 22
  • +0/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #2 on: November 23, 2016, 12:27:24 PM »
Hello Stefano,

I restored deleted emails folders from back-up, but emails are not displayed yet.
Indexing is required?
How can I do this?

Thank you!

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: IMAP email Inbox subfolder disappeared
« Reply #3 on: November 23, 2016, 01:27:11 PM »
You may need to subscribe again to the folder (depending on the client, it can display every folders, or just subscribed ones)
C'est la fin du monde !!! :lol:

Offline girimia

  • **
  • 22
  • +0/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #4 on: November 23, 2016, 01:45:02 PM »
I subscribed folders again in Outlook.
The folder is still empty.
It is the same in Horde.
I renamed Dovecot files to old.dovecot.index,  old.dovecot.index.cache and old.dovecot.index.log.
I rebooted the server but does not restore Dovecot index files in this folder.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: IMAP email Inbox subfolder disappeared
« Reply #5 on: November 23, 2016, 01:47:40 PM »
Then, there's most likely a problem with either the folder or its content. You said it was /home/e-smith/files/users/user_name/Maildir.Namefolder I assumed it was a typo. Can you confirm the folder is /home/e-smith/files/users/user_name/Maildir/.Namefolder and that it contains 3 sub folders (cur, new and tmp), and that you can see files in the cur folder ?
C'est la fin du monde !!! :lol:

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: IMAP email Inbox subfolder disappeared
« Reply #6 on: November 23, 2016, 01:49:47 PM »
If it was an INBOX subfolder, it should even be something like /home/e-smith/files/user_name/Maildir/.INBOX.Foldername
C'est la fin du monde !!! :lol:

Offline girimia

  • **
  • 22
  • +0/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #7 on: November 23, 2016, 01:52:41 PM »
 Yes, I confirm the folder is /home/e-smith/files/users/user_name/Maildir/.INBOX.Foldername and that it contains 3 sub folders (cur, new and tmp), and that I can see files in the cur folder.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: IMAP email Inbox subfolder disappeared
« Reply #8 on: November 23, 2016, 02:00:26 PM »
Anything intersting in /var/log/dovecot/current ? Have you checked the ownership and permissions are correct ?
C'est la fin du monde !!! :lol:

Offline girimia

  • **
  • 22
  • +0/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #9 on: November 23, 2016, 02:08:49 PM »
/var/log/Dovecot/current
This log file does not exist at this location.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: IMAP email Inbox subfolder disappeared
« Reply #10 on: November 23, 2016, 02:10:06 PM »
Thats rather surprising, unless you're not running SME Server 9.X
C'est la fin du monde !!! :lol:

Offline girimia

  • **
  • 22
  • +0/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #11 on: November 23, 2016, 04:39:26 PM »
Ah, sorry. You are right. It is SME Server 8.x.
But problem remains.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: IMAP email Inbox subfolder disappeared
« Reply #12 on: November 23, 2016, 04:46:06 PM »
So you can check in /var/log/imap/current and/or /var/log/imaps/current instead
C'est la fin du monde !!! :lol:

Offline girimia

  • **
  • 22
  • +0/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #13 on: November 23, 2016, 05:16:20 PM »
I checked. The cur directory and Dovecot index file returns the error "Permission denied" in /var/log/imap/current.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: IMAP email Inbox subfolder disappeared
« Reply #14 on: November 23, 2016, 05:17:52 PM »
So there's either an ownership, or permission problem, on the folder you have restored
C'est la fin du monde !!! :lol:

Offline girimia

  • **
  • 22
  • +0/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #15 on: November 23, 2016, 05:42:51 PM »
I have configured correctly the  owner and permissions and everything works.
Thank you very much!

Offline brianr

  • *
  • 990
  • +2/-0
Re: IMAP email Inbox subfolder disappeared
« Reply #16 on: November 23, 2016, 10:26:08 PM »
So there's either an ownership, or permission problem, on the folder you have restored

All mail folders have to be username:username

Suggest you do

chmod -R username:username <maildir folder>/*

Sorry - just seen the above, glad you got it sorted...
« Last Edit: November 23, 2016, 10:37:01 PM by brianr »
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........