1

Topic: Disaster recovery

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): latest
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
My installation got a big trouble (backup and mail server corrupt). I was able to recovery only the Vmail folder.
Please tell me i can reinject all the mail smile
I already build fresh install with new server, create all the old mailbox and domain.
And add the Vmail backup
Thanks in advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Disaster recovery

FYI: https://docs.iredmail.org/backup.restore.html

3

Re: Disaster recovery

I already do it iredmail doesnt see the mail.
I loose the database.

4

Re: Disaster recovery

-The /var/vmail/vmail1 folder stores all mail messages.

- If you lost all databases, do the sql backup files still valid? If yes, restore it to get back all mail domains and accounts. If not, I’m afraid that you have to create all domains and accounts manually.

- if you have to re-create all mail accounts, please make sure the maildir path matches the one on file system (/var/vmail/vmail1/<domain>/...), so that user can access old messages.

5 (edited by kifurax 2020-03-03 12:52:41)

Re: Disaster recovery

Nothing work
I lost the DB
I do :
Create all domain and all mailbox
copy my old Vmail1 to the new one ( untar cp -r ect ....) i do manually a b ect for be sure it's the right path

chown -R vmail:vmail /var/vmail/vmail1/ &&  chmod -R 0700 /var/vmail/vmail1/ ## For the permission
and all mailbox still empty

6

Re: Disaster recovery

Please turn on debug mode in Dovecot to check whether it’s accessing correct mailbox:
https://docs.iredmail.org/debug.dovecot.html

7

Re: Disaster recovery

Thanks i change mail box name  and

Mar  3 06:11:56 mail dovecot: imap(@mydomain): Debug: acl: acl username = @mydomain
Mar  3 06:11:56 mail dovecot: imap(@mydomain): Debug: acl: owner = 0
Mar  3 06:11:56 mail dovecot: imap(@mydomain): Debug: acl vfile: Global ACLs disabled
Mar  3 06:11:56 mail dovecot: imap(@mydomain): Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Mar  3 06:11:57 mail dovecot: imap(contact@mydomain): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:11:57 mail dovecot: imap(contact@mydomain): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/dovecot-acl not found
Mar  3 06:11:57 mail dovecot: imap(bes@mydomain): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:11:57 mail dovecot: imap(bes@mydomain): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/dovecot-acl not found
Mar  3 06:11:57 mail dovecot: imap(@mydomain): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:11:57 mail dovecot: imap(@mydomain): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/dovecot-acl not found

8

Re: Disaster recovery

Mar  3 06:31:18 mail dovecot: imap(bestell@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:18 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/.Sent/dovecot-acl not found
Mar  3 06:31:18 mail dovecot: imap(bastien@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:18 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/dovecot-acl not found
Mar  3 06:31:18 mail dovecot: imap(bastien@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:18 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Sent/dovecot-acl not found
Mar  3 06:31:19 mail dovecot: imap(contact@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:19 mail dovecot: imap(bestell@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:19 mail dovecot: imap(bastien@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Sent/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Drafts/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Trash/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Junk/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: Trash: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/.Trash/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: Trash: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/.Trash/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/.Sent/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: Trash: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/.Sent/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bastien@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: Trash: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(contact@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/.Trash/dovecot-acl not found
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: Trash: Mailbox opened because: SELECT
Mar  3 06:31:48 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/.Trash/dovecot-acl not found
Mar  3 06:31:49 mail dovecot: imap(contact@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/.Drafts/dovecot-acl not found
Mar  3 06:31:49 mail dovecot: imap(contact@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/.Junk/dovecot-acl not found
Mar  3 06:31:49 mail dovecot: imap(bestell@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:49 mail dovecot: imap(bastien@mydomain.com): Debug: Trash: Mailbox opened because: SELECT
Mar  3 06:31:49 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Trash/dovecot-acl not found
Mar  3 06:31:49 mail dovecot: imap(bastien@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:49 mail dovecot: imap(contact@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:49 mail dovecot: imap(bastien@mydomain.com): Debug: Sent: Mailbox opened because: SELECT
Mar  3 06:31:49 mail dovecot: imap(bestell@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:49 mail dovecot: imap(contact@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/.Drafts/dovecot-acl not found
Mar  3 06:31:50 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/.Junk/dovecot-acl not found
Mar  3 06:31:50 mail dovecot: imap(contact@mydomain.com): Debug: Drafts: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(bestell@mydomain.com): Debug: Drafts: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(contact@mydomain.com): Debug: Junk: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(contact@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/c/o/n/contact-2020.03.02.17.17.39//Maildir/.Junk/dovecot-acl not found
Mar  3 06:31:50 mail dovecot: imap(bastien@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(bestell@mydomain.com): Debug: Junk: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(bestell@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/e/s/bestell-2020.03.02.17.07.19//Maildir/.Junk/dovecot-acl not found
Mar  3 06:31:50 mail dovecot: imap(bastien@mydomain.com): Debug: Drafts: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(bestell@mydomain.com): Debug: Trash: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(bastien@mydomain.com): Debug: Junk: Mailbox opened because: SELECT
Mar  3 06:31:50 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Junk/dovecot-acl not found
Mar  3 06:31:51 mail dovecot: imap(bastien@mydomain.com): Debug: INBOX: Mailbox opened because: SELECT
Mar  3 06:31:51 mail dovecot: imap(bastien@mydomain.com): Debug: Sent: Mailbox opened because: SELECT

9 (edited by kifurax 2020-03-03 13:45:47)

Re: Disaster recovery

I check dovecot-acl-list are on the maildir but they look empty

10

Re: Disaster recovery

Mar  3 06:31:50 mail dovecot: imap(bastien@mydomain.com): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir/.Junk/dovecot-acl not found

Are you sure user bastien@ mailbox is /var/vmail/vmail1/mydomain.com/b/a/s/bastien-2020.03.02.17.06.21//Maildir?
If it’s same as old mailbox, I suppose the time stamp in maildir path won’t be 2020.03.02?

If the account was created in (for example) 2019, old maildir path should have time stamp 2019.xx.yy. You copied the vmail folder, so it should still has this time stamp. This 2020.03.02 one is the newly created one, it’s not same as the old one.

11

Re: Disaster recovery

This is the mail from today
i find on the folder like this one bastien-2020.01.10.12.52.14 and 2019 too

But i dont see it on roundcube

12

Re: Disaster recovery

There’s no other trick, just check and make sure it’s accessing the correct maildir path. also make sure folder has correct owner/group (vmail:vmail) and permission (0700).

13

Re: Disaster recovery

I got last question
The old config was with MariaDB and the new one is with LDAP.
Its affect the dovecot conf path and stucture of mailbox?

14

Re: Disaster recovery

Just make sure the maildir path matches, then nothing else matters.

15

Re: Disaster recovery

Fixed with support ticket. Ticket closed.