13
submitted 11 months ago by salvador@lemmy.world to c/selfhosted@lemmy.world

I have a backup of one of my email accounts in the Maildir format. I made it manually, and it’s not from a Mailcow instance.

How to import such a backup into a Mailcow? Will I also have to create a domains and mailboxes that exist in a backup in Mailcow first?

I’m aware of the 2 import/export bash scripts of Mailcow, however, can they be used in this case?

top 3 comments
sorted by: hot top controversial new old
[-] lnxtx@feddit.nl 1 points 11 months ago* (last edited 11 months ago)

Yeah, first create domains and mailboxes.

Then you can find user's Maildirs here for example:

/var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/DOMAIN/USERNAME/Maildir

If you done with the restore, remember to execute:

docker exec mailcowdockerized_dovecot-mailcow_1 chown -R vmail:vmail /var/vmail
docker exec mailcowdockerized_dovecot-mailcow_1 /usr/bin/doveadm quota recalc -A
[-] salvador@lemmy.world 1 points 10 months ago

But the mailboxes of MailCow are always encrypted

[-] lnxtx@feddit.nl 1 points 10 months ago

Ohh, I didn't know that.

But:

The key pair can be found in crypt-vol-1. Please don't forget to backup this and other volumes.[1]

[1] https://docs.mailcow.email/

this post was submitted on 11 Oct 2023
13 points (78.3% liked)

Selfhosted

39143 readers
284 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS