{"id":166,"date":"2011-10-09T14:26:48","date_gmt":"2011-10-09T12:26:48","guid":{"rendered":"http:\/\/www.idoru.be\/notes\/?p=166"},"modified":"2011-10-09T14:26:48","modified_gmt":"2011-10-09T12:26:48","slug":"fetchmail-gmail-via-imap-to-macosx-for-backup","status":"publish","type":"post","link":"http:\/\/www.idoru.be\/notes\/fetchmail-gmail-via-imap-to-macosx-for-backup\/","title":{"rendered":"fetchmail gmail via IMAP to macosx for backup"},"content":{"rendered":"<p>first, enable IMAP in gmail.<\/p>\n<p>$ vi .fetchmailrc<\/p>\n<p>if you have a mta running:<\/p>\n<p><em>poll imap.gmail.com protocol IMAP<br \/>\nuser &#8216;<\/em><em>&lt;snip&gt;<\/em><em>&#8216; there with password &#8216;&lt;snip&gt;&#8217; is &#8216;<\/em><em>&lt;snip&gt;<\/em><em>&#8216; here<br \/>\noptions ssl <strong>keep<\/strong> sslcertck sslcertpath &#8220;\/Users\/<\/em><em>&lt;snip&gt;<\/em><em>\/.ssl\/certs&#8221;<br \/>\nfolder &#8216;[Gmail]\/All Mail&#8217;<\/em><\/p>\n<p>if not, deliver via procmail to \/var\/mail&#8230;:<\/p>\n<p><em>poll imap.gmail.com protocol IMAP<br \/>\nuser &#8216;<\/em><em>&lt;snip&gt;<\/em><em>&#8216; there with password &#8216;&lt;snip&gt;&#8217; is &#8216;<\/em><em>&lt;snip&gt;<\/em><em>&#8216; here <\/em><em><strong>and wants mda &#8220;\/usr\/bin\/procmail -d %T&#8221;<\/strong><\/em><br \/>\n<em> options ssl <strong>keep<\/strong> sslcertck sslcertpath &#8220;\/Users\/<\/em><em>&lt;snip&gt;<\/em><em>\/.ssl\/certs&#8221;<br \/>\nfolder &#8216;[Gmail]\/All Mail&#8217;<\/em><\/p>\n<p>$ mkdir -p .ssl\/certs<\/p>\n<p>$ openssl s_client -connect pop.gmail.com:995 -showcerts<\/p>\n<p>(copy the key)<\/p>\n<p>$ vi .ssl\/certs\/gmailpop.pem<\/p>\n<p>(paste the key)<\/p>\n<p>$ wget  http:\/\/www.geotrust.com\/resources\/root_certificates\/certificates\/Equifax_Secure_Certificate_Authority.cer  ; mv Equifax_Secure_Certificate_Authority.cer .ssl\/certs\/equifax.pem ;  c_rehash ~\/.ssl\/certs\/<\/p>\n<p>$ fetchmail -v<\/p>\n","protected":false},"excerpt":{"rendered":"<p>first, enable IMAP in gmail. $ vi .fetchmailrc if you have a mta running: poll imap.gmail.com protocol IMAP user &#8216;&lt;snip&gt;&#8216; there with password &#8216;&lt;snip&gt;&#8217; is &#8216;&lt;snip&gt;&#8216; here options ssl keep sslcertck sslcertpath &#8220;\/Users\/&lt;snip&gt;\/.ssl\/certs&#8221; folder &#8216;[Gmail]\/All Mail&#8217; if not, deliver via procmail to \/var\/mail&#8230;: poll imap.gmail.com protocol IMAP user &#8216;&lt;snip&gt;&#8216; there with password &#8216;&lt;snip&gt;&#8217; is &#8216;&lt;snip&gt;&#8216; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-howto"],"_links":{"self":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/comments?post=166"}],"version-history":[{"count":1,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":167,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/166\/revisions\/167"}],"wp:attachment":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}