1

I run Postfix with Dovecot. Now I need to begin to backup email messages. What directories should I backup? Such that later, if a server breaks down, I'll be able to restore all the email message on a new server with Postfix and Dovecot.

karneliy
  • 21
  • 1
  • 5
  • please be so kind to inform us what distribution you are using, are you using native administration or some kind of administration panel? – djdomi Sep 20 '20 at 16:17
  • 3
    Does this answer your question? [How to backup all the emails(content) of Postfix? What folders?](https://serverfault.com/questions/1033805/how-to-backup-all-the-emailscontent-of-postfix-what-folders) – Bob Sep 21 '20 at 07:28
  • Please don’t repeatedly ask the same question, because the answer is the same: it depends on your configuration so start by checking that. – Bob Sep 21 '20 at 07:29
  • These questions actually are subtly different (albeit closely related) and I expect them to have different answers, so I've reopened the question. – Michael Hampton Sep 30 '20 at 18:30

1 Answers1

2

As usual, there is more than one way to skin the cat. But dovecot-backup exists, so have a look, it might be just the ticket for you.

Some commenters advised you to check your configuration and that is good advice. In case you feel overwhelmed by where and what to check, I suggest you start with doveconf -n|less and check for the word 'location', in particular the variable mail_location.

You will have a learning curve ahead of you, either way. Good luck!

leggewie
  • 121
  • 4
  • Question: How do I backup email messages in dovecot? Answer: Use dovecot-backup. Well, at least to me that very much does look like an answer. Better luck with your questions next time, I guess. – leggewie Sep 25 '20 at 15:49
  • There're 2 more questions as well in my topic – karneliy Sep 25 '20 at 18:07
  • @karneliy He also answered how to find out what directory is being used. What other questions did you have? – Michael Hampton Sep 25 '20 at 19:09
  • 1
    @MichaelHampton Maybe his other, implied question was "why do people keep being friendly and helpful even when I am presenting myself as lazy, not following house rules and rude?" Dunno... – leggewie Sep 30 '20 at 13:38