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?

  • lnxtx (xe/xem/xyr)@feddit.nl
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    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