{"id":2117,"date":"2022-08-30T15:22:11","date_gmt":"2022-08-30T15:22:11","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/02\/backing-up-postfix-dovecot-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:11","modified_gmt":"2022-08-30T15:22:11","slug":"backing-up-postfix-dovecot-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/backing-up-postfix-dovecot-collection-of-common-programming-errors\/","title":{"rendered":"Backing up postfix + dovecot-Collection of common programming errors"},"content":{"rendered":"<p>I am renting a single server, on which I installed ubuntu 12.04, postfix and dovecot (and ISPConfig).<\/p>\n<p>I would like to backup the full postfix+dovecot configuration, in order to restore it in case of a HDD crash.<\/p>\n<p>I will need to restore all the imap mailboxes (users names, passwords, etc.) as well as the mails and the folders.<\/p>\n<p>In short, someone with a mail account on the server should not be able to see there was a server crash, unless he\/she tried to connect to the server during the short period of time during which it was under maintenance.<\/p>\n<p><strong>My question is:<\/strong><\/p>\n<p>Which files should I backup ? Ideally, I should backup some configuration files each time I create or delete mailboxes, and other files (that contain the mails) very frequently.<\/p>\n<p>I have already found that I should backup <code>\/var\/vmail<\/code>, but I don&#8217;t know if that&#8217;s enough. Also, should I stop postfix before backing up ? If so, will the mail still be delivered ?<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-02 12:06:32. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am renting a single server, on which I installed ubuntu 12.04, postfix and dovecot (and ISPConfig). I would like to backup the full postfix+dovecot configuration, in order to restore it in case of a HDD crash. I will need to restore all the imap mailboxes (users names, passwords, etc.) as well as the mails [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2117","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2117"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2117\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}