0

I have recently seen that my entire mailbox with mutt has suddenly disappeared. I don't know how to backup, if it is possible ?

I am on Linux Debian 10.

The sent file of all mails sent has not disappeared, that's weird.

Maybe there are traces of this removing into files /var/log/mail* ?

If someone could know what's happened.

0
+100

If your lucky, it's an update of default configuration. To confirm it, list directories in your /var/mail You should find a directory for a domain, then a directory for your user like: user@domain.tld > /var/mail/domain.tld/user/ A mail directory should have at least directories : cur, new, tmp Each file in thoses directories are a single mail.

Check into your ~/.muttrc (if it exist) to define where your mail are stored. https://wiki.debian.org/Mutt like:

set mbox_type=maildir
set mbox="~/mail/inbox/"
set spoolfile="~/mail/inbox/"
set folder="~/mail/"
set record="~/mail/sent/"
set postponed="~/mail/postponed/"

If your mails are into /var/mail/domain.tld/user/ use something like this on your .muttrc file

set mbox_type=maildir
set mbox="/var/mail/domain.tld/user/inbox/"
set spoolfile="/var/mail/domain.tld/user/inbox/"
set folder="/var/mail/domain.tld/user/"
set record="/var/mail/domain.tld/user/sent/"
set postponed="/var/mail/domain.tld/user/postponed/"

You can backup the directory with your mailbox, using borg or other software: https://github.com/kahun/awesome-sysadmin#backups

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.