{"action":"created","comment":{"url":"https://api.github.com/repos/linode/docs/pulls/comments/44601609","id":44601609,"diff_hunk":"@@ -0,0 +1,161 @@\n+---\n+author:\n+    name: Linode Community\n+    email: docs@linode.com\n+description: 'Quick introduction into hosting a Email Backup server with imapsync.'\n+keywords: 'email, backup, postfix, dovecot, mysql, imapsync, mx, email backup'\n+license: '[CC BY-ND 3.0](http://creativecommons.org/licenses/by-nd/3.0/us/)'\n+published: 'Weekday, September 21st, 2015'\n+modified: Weekday, September 21st, 2015\n+modified_by:\n+    name: Linode\n+title: 'Creating a E-Mail Backup Server'\n+contributor:\n+    name: Constantin Jacob\n+    link: https://www.twitter.com/Tzeejay\n+external-resources:\n+\t- '[IMAPSYNC](http://imapsync.lamiral.info/)'\n+\t- '[IMAPSYNC Github](https://github.com/imapsync/imapsync)'\n+---\n+\n+{: .note}\n+>\n+> This guide is written for a non-root user. Commands that require elevated privileges are prefixed with `sudo`. If you're not familiar with the `sudo` command, you can check our [Users and Groups](/docs/tools-reference/linux-users-and-groups) guide.\n+\n+\n+Before beginning this guide you should ask yourself two questions:\n+\n+1. Why would I want this?\n+\n+and\n+\n+2. Do I actually need this even if I don't run my own email servers?\n+\n+\n+The answers to these are  \n+you would want this in order to have control over your own destiny  \n+and  \n+yes you do want this even if you do not host your own email servers data corruption can happen even in the best systems. There is no number of engineers high enough to prevent any of that. \n+\n+This guide is for everyone who has critical information in any shape or form in their email inbox. From technical documentation you can never get a hold on again to your photos you can't afford to loose (kids, family you name it). The very first answer to all of this would and should be: don't leave stuff that is this important on any email server, ever. It's not the right medium and or system to store data indefinability. But as we all know this isn't always possible, or we forget about it or your server might even crash or corrupt files before you get a chance to do so.  \n+This is why automated email backups are important to everyone!\n+\n+And it isn't even that hard to do. Thanks to IMAP being a standart and everyone supporting it as the legacy access to their email servers next to their fancy new http based APIs it is possible for us to use great open source tools like imapsync to quickly create a copy.\n+\n+## Prerequesities\n+In order to setup a backup MX Server you should first consult the guides on how [Getting Started](/docs/gettings-started) how to secure your linode and how to setup a working email server with [mySQL, Dovecot and Postfix](/docs/email/email-with-postfix-dovecot-and-mysql).\n+\n+### Bonus\n+If you want to make your life easier you should go and take a look at how to setup [phpmyadmin](/docs/databases/mysql/mysql-phpmyadmin-ubuntu-14-04) in order to more easily maintain your TLDs and users.\n+If you would like to have easier access to the emails, for quick check ups for example, having something like [Roundcube](https://roundcube.net) or [Horde](http://www.horde.org/apps/webmail) installed is also a bonus. It will make everything easier and you don't waste more than 15 minutes on it.\n+\n+\n+## IMAPSYNC\n+[imapsync](http://imapsync.lamiral.info) is a command line tool written in Perl by Gilles Lamiral from France. You can buy it off of his [website](http://imapsync.lamiral.info/) and get lifetime instant updates and support (not instant) or you could use the open source version off of Github.com which he updates to the latest version usually a couple days or weeks later. So it is pretty fair use.\n+\n+\n+{: .note}\n+>\n+> For this guide we will use the Github version. You should really go and buy it though if you really like it. It's a great tool and the maintainer is really nice.\n+\n+\n+### Installing imapsync\n+\n+We will get a copy of imapsync off of Github with the help of git which comes pre-installed with a lot of Linux distributions nowadays.\n+\n+\t`git clone https://github.com/imapsync/imapsync.git`\n+\t\n+At this point we would just run the programm but it depends on a couple of perl libraries which might have to be installed first. Monsieur Lammiral has a list with a couple of Linux distributions and how to install the dependencies in his Github repo.\n+\n+{: .note}\n+>\n+> You should take a look at it if you use something different than Debian/Ubuntu. [Here](https://github.com/imapsync/imapsync/tree/master/INSTALL.d)\n+\n+\tsudo apt-get install \\ ","path":"docs/email/MX-Backup.md","position":74,"original_position":74,"commit_id":"495a9344aa3c14d112091a33f92605db97ebc857","original_commit_id":"495a9344aa3c14d112091a33f92605db97ebc857","user":{"login":"alexfornuto","id":2349184,"avatar_url":"https://avatars.githubusercontent.com/u/2349184?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfornuto","html_url":"https://github.com/alexfornuto","followers_url":"https://api.github.com/users/alexfornuto/followers","following_url":"https://api.github.com/users/alexfornuto/following{/other_user}","gists_url":"https://api.github.com/users/alexfornuto/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfornuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfornuto/subscriptions","organizations_url":"https://api.github.com/users/alexfornuto/orgs","repos_url":"https://api.github.com/users/alexfornuto/repos","events_url":"https://api.github.com/users/alexfornuto/events{/privacy}","received_events_url":"https://api.github.com/users/alexfornuto/received_events","type":"User","site_admin":false},"body":"These are not commands that you can run directly from the terminal. Please explain this section better.","created_at":"2015-11-11T23:18:04Z","updated_at":"2015-11-11T23:18:04Z","html_url":"https://github.com/linode/docs/pull/290#discussion_r44601609","pull_request_url":"https://api.github.com/repos/linode/docs/pulls/290","_links":{"self":{"href":"https://api.github.com/repos/linode/docs/pulls/comments/44601609"},"html":{"href":"https://github.com/linode/docs/pull/290#discussion_r44601609"},"pull_request":{"href":"https://api.github.com/repos/linode/docs/pulls/290"}}},"pull_request":{"url":"https://api.github.com/repos/linode/docs/pulls/290","id":45551659,"html_url":"https://github.com/linode/docs/pull/290","diff_url":"https://github.com/linode/docs/pull/290.diff","patch_url":"https://github.com/linode/docs/pull/290.patch","issue_url":"https://api.github.com/repos/linode/docs/issues/290","number":290,"state":"open","locked":false,"title":"MX-Backup","user":{"login":"thetechstewart","id":2175369,"avatar_url":"https://avatars.githubusercontent.com/u/2175369?v=3","gravatar_id":"","url":"https://api.github.com/users/thetechstewart","html_url":"https://github.com/thetechstewart","followers_url":"https://api.github.com/users/thetechstewart/followers","following_url":"https://api.github.com/users/thetechstewart/following{/other_user}","gists_url":"https://api.github.com/users/thetechstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/thetechstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetechstewart/subscriptions","organizations_url":"https://api.github.com/users/thetechstewart/orgs","repos_url":"https://api.github.com/users/thetechstewart/repos","events_url":"https://api.github.com/users/thetechstewart/events{/privacy}","received_events_url":"https://api.github.com/users/thetechstewart/received_events","type":"User","site_admin":false},"body":"This is an import from a submission given to us via email. It has not yet been reviewed for technical accuracy or edited for for proper formatting. It's purpose here is to gauge interest from the community on this subject, and solicit independent review of the contents.","created_at":"2015-09-21T13:59:33Z","updated_at":"2015-11-11T23:18:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fb06fc0c75190768aadf588297a9ec4b90080f9","assignee":{"login":"felicianotech","id":6017470,"avatar_url":"https://avatars.githubusercontent.com/u/6017470?v=3","gravatar_id":"","url":"https://api.github.com/users/felicianotech","html_url":"https://github.com/felicianotech","followers_url":"https://api.github.com/users/felicianotech/followers","following_url":"https://api.github.com/users/felicianotech/following{/other_user}","gists_url":"https://api.github.com/users/felicianotech/gists{/gist_id}","starred_url":"https://api.github.com/users/felicianotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicianotech/subscriptions","organizations_url":"https://api.github.com/users/felicianotech/orgs","repos_url":"https://api.github.com/users/felicianotech/repos","events_url":"https://api.github.com/users/felicianotech/events{/privacy}","received_events_url":"https://api.github.com/users/felicianotech/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/linode/docs/pulls/290/commits","review_comments_url":"https://api.github.com/repos/linode/docs/pulls/290/comments","review_comment_url":"https://api.github.com/repos/linode/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linode/docs/issues/290/comments","statuses_url":"https://api.github.com/repos/linode/docs/statuses/495a9344aa3c14d112091a33f92605db97ebc857","head":{"label":"thetechstewart:bounty-mxbackup","ref":"bounty-mxbackup","sha":"495a9344aa3c14d112091a33f92605db97ebc857","user":{"login":"thetechstewart","id":2175369,"avatar_url":"https://avatars.githubusercontent.com/u/2175369?v=3","gravatar_id":"","url":"https://api.github.com/users/thetechstewart","html_url":"https://github.com/thetechstewart","followers_url":"https://api.github.com/users/thetechstewart/followers","following_url":"https://api.github.com/users/thetechstewart/following{/other_user}","gists_url":"https://api.github.com/users/thetechstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/thetechstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetechstewart/subscriptions","organizations_url":"https://api.github.com/users/thetechstewart/orgs","repos_url":"https://api.github.com/users/thetechstewart/repos","events_url":"https://api.github.com/users/thetechstewart/events{/privacy}","received_events_url":"https://api.github.com/users/thetechstewart/received_events","type":"User","site_admin":false},"repo":{"id":23120424,"name":"docs","full_name":"thetechstewart/docs","owner":{"login":"thetechstewart","id":2175369,"avatar_url":"https://avatars.githubusercontent.com/u/2175369?v=3","gravatar_id":"","url":"https://api.github.com/users/thetechstewart","html_url":"https://github.com/thetechstewart","followers_url":"https://api.github.com/users/thetechstewart/followers","following_url":"https://api.github.com/users/thetechstewart/following{/other_user}","gists_url":"https://api.github.com/users/thetechstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/thetechstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetechstewart/subscriptions","organizations_url":"https://api.github.com/users/thetechstewart/orgs","repos_url":"https://api.github.com/users/thetechstewart/repos","events_url":"https://api.github.com/users/thetechstewart/events{/privacy}","received_events_url":"https://api.github.com/users/thetechstewart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thetechstewart/docs","description":"Linode guides and tutorials.","fork":true,"url":"https://api.github.com/repos/thetechstewart/docs","forks_url":"https://api.github.com/repos/thetechstewart/docs/forks","keys_url":"https://api.github.com/repos/thetechstewart/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thetechstewart/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thetechstewart/docs/teams","hooks_url":"https://api.github.com/repos/thetechstewart/docs/hooks","issue_events_url":"https://api.github.com/repos/thetechstewart/docs/issues/events{/number}","events_url":"https://api.github.com/repos/thetechstewart/docs/events","assignees_url":"https://api.github.com/repos/thetechstewart/docs/assignees{/user}","branches_url":"https://api.github.com/repos/thetechstewart/docs/branches{/branch}","tags_url":"https://api.github.com/repos/thetechstewart/docs/tags","blobs_url":"https://api.github.com/repos/thetechstewart/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thetechstewart/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thetechstewart/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/thetechstewart/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thetechstewart/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/thetechstewart/docs/languages","stargazers_url":"https://api.github.com/repos/thetechstewart/docs/stargazers","contributors_url":"https://api.github.com/repos/thetechstewart/docs/contributors","subscribers_url":"https://api.github.com/repos/thetechstewart/docs/subscribers","subscription_url":"https://api.github.com/repos/thetechstewart/docs/subscription","commits_url":"https://api.github.com/repos/thetechstewart/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/thetechstewart/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/thetechstewart/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/thetechstewart/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/thetechstewart/docs/contents/{+path}","compare_url":"https://api.github.com/repos/thetechstewart/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thetechstewart/docs/merges","archive_url":"https://api.github.com/repos/thetechstewart/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thetechstewart/docs/downloads","issues_url":"https://api.github.com/repos/thetechstewart/docs/issues{/number}","pulls_url":"https://api.github.com/repos/thetechstewart/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/thetechstewart/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/thetechstewart/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thetechstewart/docs/labels{/name}","releases_url":"https://api.github.com/repos/thetechstewart/docs/releases{/id}","created_at":"2014-08-19T18:06:27Z","updated_at":"2014-08-19T11:24:54Z","pushed_at":"2015-10-14T15:22:07Z","git_url":"git://github.com/thetechstewart/docs.git","ssh_url":"git@github.com:thetechstewart/docs.git","clone_url":"https://github.com/thetechstewart/docs.git","svn_url":"https://github.com/thetechstewart/docs","homepage":"https://www.linode.com/docs/","size":99643,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"linode:master","ref":"master","sha":"30461396488685fe5bc68c7db30c8f5ec915657a","user":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"repo":{"id":22214885,"name":"docs","full_name":"linode/docs","owner":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linode/docs","description":"Linode guides and tutorials.","fork":false,"url":"https://api.github.com/repos/linode/docs","forks_url":"https://api.github.com/repos/linode/docs/forks","keys_url":"https://api.github.com/repos/linode/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linode/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linode/docs/teams","hooks_url":"https://api.github.com/repos/linode/docs/hooks","issue_events_url":"https://api.github.com/repos/linode/docs/issues/events{/number}","events_url":"https://api.github.com/repos/linode/docs/events","assignees_url":"https://api.github.com/repos/linode/docs/assignees{/user}","branches_url":"https://api.github.com/repos/linode/docs/branches{/branch}","tags_url":"https://api.github.com/repos/linode/docs/tags","blobs_url":"https://api.github.com/repos/linode/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linode/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linode/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/linode/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linode/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/linode/docs/languages","stargazers_url":"https://api.github.com/repos/linode/docs/stargazers","contributors_url":"https://api.github.com/repos/linode/docs/contributors","subscribers_url":"https://api.github.com/repos/linode/docs/subscribers","subscription_url":"https://api.github.com/repos/linode/docs/subscription","commits_url":"https://api.github.com/repos/linode/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/linode/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/linode/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/linode/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/linode/docs/contents/{+path}","compare_url":"https://api.github.com/repos/linode/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linode/docs/merges","archive_url":"https://api.github.com/repos/linode/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linode/docs/downloads","issues_url":"https://api.github.com/repos/linode/docs/issues{/number}","pulls_url":"https://api.github.com/repos/linode/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/linode/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/linode/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linode/docs/labels{/name}","releases_url":"https://api.github.com/repos/linode/docs/releases{/id}","created_at":"2014-07-24T13:57:47Z","updated_at":"2015-11-11T08:13:53Z","pushed_at":"2015-11-11T22:46:39Z","git_url":"git://github.com/linode/docs.git","ssh_url":"git@github.com:linode/docs.git","clone_url":"https://github.com/linode/docs.git","svn_url":"https://github.com/linode/docs","homepage":"https://www.linode.com/docs/","size":118158,"stargazers_count":295,"watchers_count":295,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":255,"mirror_url":null,"open_issues_count":31,"forks":255,"open_issues":31,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linode/docs/pulls/290"},"html":{"href":"https://github.com/linode/docs/pull/290"},"issue":{"href":"https://api.github.com/repos/linode/docs/issues/290"},"comments":{"href":"https://api.github.com/repos/linode/docs/issues/290/comments"},"review_comments":{"href":"https://api.github.com/repos/linode/docs/pulls/290/comments"},"review_comment":{"href":"https://api.github.com/repos/linode/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linode/docs/pulls/290/commits"},"statuses":{"href":"https://api.github.com/repos/linode/docs/statuses/495a9344aa3c14d112091a33f92605db97ebc857"}}}}