{"id":40765,"date":"2021-08-16T16:58:33","date_gmt":"2021-08-16T21:58:33","guid":{"rendered":"https:\/\/webirix.com\/?p=40765"},"modified":"2021-08-16T18:03:56","modified_gmt":"2021-08-16T23:03:56","slug":"sincronizar-correos-con-imapsync","status":"publish","type":"post","link":"https:\/\/webirix.com\/en\/sincronizar-correos-con-imapsync\/","title":{"rendered":"Synchronize emails with imapsync"},"content":{"rendered":"<p>There is a way to have two or more Imap servers synchronized, an example would be: If the email uno@uno.com receives an email, the email uno@uno.com also receives it, which is on a completely different server, in a few words will duplicate the mail on both servers, in case some are down, the others will work.<\/p>\r\n\r\n\r\n\r\n<p>The first thing you should do is install imapsync, we recommend installing it on a Ubuntu or Debian computer, <strong>NEVER ON PRODUCTION SERVERS<\/strong>, unless you know what you do<\/p>\r\n\r\n\r\n\r\n<p>The commands for its installation will be:<\/p>\r\n\r\n\r\n\r\n<p>log in as administrator user<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">its<\/pre>\r\n\r\n\r\n\r\n<p>enter the folder in which it will be installed<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cd \/ usr \/ src \/<\/pre>\r\n\r\n\r\n\r\n<p>update repositories and make sure we have git<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get update &amp;&amp; apt-get install git-core<\/pre>\r\n\r\n\r\n\r\n<p>download the git repository where the imapsync code is<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">git clone https:\/\/github.com\/imapsync\/imapsync.git<\/pre>\r\n\r\n\r\n\r\n<p>enter imapsync<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cd \/ usr \/ src \/ imapsync \/<\/pre>\r\n\r\n\r\n\r\n<p>Install the necessary packages (they could vary depending on the system or version)<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get install libauthen-ntlm-perl libcrypt-ssleay-perl libdigest-hmac-perl libfile-copy-recursive-perl libyan-compress-perl \\ libyan-socket-inet6-perl libyan-socket-ssl-perl libyan-tee- perl libmail-imapclient-perl libmodule-scandeps-perl libnet-ssleay-perl \\ libpar-packer-perl libterm-readkey-perl libtest-pod-perl libtest-simple-perl libunicode-string-perl liburi-perl<\/pre>\r\n\r\n\r\n\r\n<p>the installation is done with perl<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cpan Data :: Uniqid<\/pre>\r\n\r\n\r\n\r\n<p>we make sure that imapsync is available from any directory<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cp \/ usr \/ src \/ imapsync \/ imapsync \/ usr \/ bin \/<\/pre>\r\n\r\n\r\n\r\n<p>we verify the version<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">imapsync -v<\/pre>\r\n\r\n\r\n\r\n<p>We already have the application ready, here is an example of execution:<\/p>\r\n\r\n\r\n\r\n<p>Example<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">imapsync --host1 imap.host1.com --user1 noreply@host1.com --password1 XXX --host2 imap.host2.com --user2 host2@gmail.com --password2 XXX --port2 993 --ssl1 - ssl2<\/pre>","protected":false},"excerpt":{"rendered":"<p>There is a way to have two or more synchronized Imap servers, an example would be: If the mail uno@uno.com receives an email, the mail uno@uno.com also receives it, which is on a completely different server, in a few words the mail will be duplicated on both servers, in case some are down, the others ...<\/p>","protected":false},"author":27,"featured_media":40785,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-40765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"jetpack_featured_media_url":"https:\/\/webirix.com\/wp-content\/uploads\/2021\/08\/imapsync.jpg","_links":{"self":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/40765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/comments?post=40765"}],"version-history":[{"count":3,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/40765\/revisions"}],"predecessor-version":[{"id":40786,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/40765\/revisions\/40786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media\/40785"}],"wp:attachment":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media?parent=40765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/categories?post=40765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/tags?post=40765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}