this post was submitted on 11 Oct 2023
0 points (NaN% liked)

Selfhosted

40329 readers
253 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
 

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 1 comments
sorted by: hot top controversial new old
[–] lnxtx@feddit.nl -1 points 1 year ago* (last edited 1 year 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