{"id":281,"date":"2011-07-06T10:32:29","date_gmt":"2011-07-06T08:32:29","guid":{"rendered":""},"modified":"2016-02-22T11:48:41","modified_gmt":"2016-02-22T10:48:41","slug":"imap-proxy","status":"publish","type":"post","link":"https:\/\/drfugazi.eu.org\/en\/imap-proxy\/","title":{"rendered":"(Polski) Imap Proxy"},"content":{"rendered":"<p class=\"qtranxs-available-languages-message qtranxs-available-languages-message-en\">Sorry, this entry is only available in <a href=\"https:\/\/drfugazi.eu.org\/pl\/wp-json\/wp\/v2\/posts\/281\" class=\"qtranxs-available-language-link qtranxs-available-language-link-pl\" title=\"Polski\">Polish<\/a>. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.<\/p><p><\/p>\n<h3>IMAP Proxy jest cacheuj\u0105cym serwerem proxy IMAP przeznaczonym do u\u017cycia z klientami webmail, kt\u00f3re nie potrafi\u0105 utrzymywa\u0107 sta\u0142ych po\u0142\u0105cze\u0144 do serwera IMAP.<\/h3>\n<p>IMAP Proxy umieszcza si\u0119 pomi\u0119dzy serwerem webmail i serwerem IMAP. Przyjmuje on po\u0142\u0105czenia od serwera webmail dla ka\u017cdego klienta i przekazuje je do w\u0142a\u015bciwego serwera IMAP. Kiedy klient webmail roz\u0142\u0105czy si\u0119, IMAP Proxy pozostawia otwarte po\u0142\u0105czenie przez okre\u015blony czas i kiedy webmail zn\u00f3w si\u0119 po\u0142\u0105czy zostaje u\u017cyte istniej\u0105ce ju\u017c po\u0142\u0105czenie.<\/p>\n<p>IMAP Proxy jest bardzo lekkim daemonem napisanym w C z u\u017cyciem w\u0105tk\u00f3w POSIX. Kompiluje si\u0119 i dzia\u0142a na wi\u0119kszo\u015bci system\u00f3w UNIXowych i jest dost\u0119pny w prekompilowanej wersji dla wielu dystrybucji Linuxa, jak np. Debian, Ubuntu, Gentoo i Fedora.<\/p>\n<p>IMAP Proxy jest <a href=\"http:\/\/www.gnu.org\/philosophy\/free-sw.html\">wolnym oprogramowaniem<\/a>, na licencji <a href=\"http:\/\/www.gnu.org\/licenses\/gpl.html\">GNU GPL<\/a>.<\/p>\n<p>IMAP Proxy zosta\u0142 napisany w 2002 roku przez Dave McMurtrie. W 2010 roku zosta\u0142 zaadoptowany przez zesp\u00f3\u0142 <a href=\"http:\/\/squirrelmail.org\">SquirrelMail<\/a>.\n<\/p>\n<p><!--more--><\/p>\n<p>Postanowili\u015bmy zastosowa\u0107 IMAP Proxy aby poprawi\u0107 wydajno\u015b\u0107 webmaila opartego na Horde\/IMP. Kompilacja, instalacja i konfiguracja IMAP Proxy nie przysparza problem\u00f3w nawet na Solarisie, poni\u017cej znajduje si\u0119 zapis sesji oraz zawarto\u015b\u0107 pliku konfiguracyjnego. Skrypt w za\u0142\u0105czeniu.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsoft@hydra:~\/imapproxy% .\/drf_imapproxy-1.2.7_conf\r\ncc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007\/07\/12\r\nusage: cc &#x5B; options] files.  Use 'cc -flags' for details\r\nPATH=\/usr\/local\/bin:\/usr\/bin:\/opt\/SUNWspro\/bin:\/usr\/ccs\/bin:\/usr\/ucb\r\nCFLAGS=-fast\r\nCPPFLAGS=-I\/usr\/local\/include\r\nCXXFLAGS=-fast\r\nLDFLAGS=-L\/usr\/local\/lib -R\/usr\/local\/lib\r\n=============================================\r\ndmake clean &#x5B;y|n] ?\r\nn\r\n<\/pre>\n<p>Konfiguracja:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nconfigure &#x5B;y|n] ?\r\ny\r\nchecking whether dmake sets $(MAKE)... yes\r\nchecking for gcc... cc\r\nchecking for C compiler default output file name... a.out\r\nchecking whether the C compiler works... yes\r\n...\r\nconfigure: creating .\/config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating config.h\r\nconfig.status: executing default commands\r\n=============================================\r\n<\/pre>\n<p>Kompilacja:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndmake &#x5B;y|n] ?\r\ny\r\ncc -fast -I\/usr\/local\/include -I\/usr\/local\/ssl\/include -fast -I. -I.\/include -c -o src\/icc.o src\/icc.c\r\ncc: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=sparcvis2 which generates code that does not run on pre UltraSPARC III processors\r\n...\r\ncc -o bin\/pimpstat .\/src\/pimpstat.o .\/src\/config.o -lcurses\r\nCompilation successful\r\n<\/pre>\n<p>Imap Proxy nie posiada zestawu test\u00f3w, wi\u0119c skoro si\u0119 skompilowa\u0142, to mo\u017cna zainstalowa\u0107.<\/p>\n<p>Konfiguracja programu jest prosta i nie powinna stwarza\u0107 problemu nawet niezaawansowanym administratorom, trzeba utworzy\u0107 plik <code>\/etc\/imapproxy.conf<\/code> lub wskaza\u0107 w\u0142a\u015bciwy w opcjach przy uruchomieniu demona <code>in.impapproxyd<\/code>.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n## imapproxy.conf\r\n##\r\nserver_hostname imap.server.tld\r\n#connect_retries 10\r\n#connect_delay 5\r\ncache_size 1024\r\nlisten_port 143\r\nlisten_address 127.0.0.1\r\nserver_port 143\r\ncache_expiration_time 300\r\nproc_username imappr\r\nproc_groupname imappr\r\nstat_filename \/var\/run\/pimpstats\r\nprotocol_log_filename \/var\/log\/imapproxy.log\r\nsyslog_facility LOG_MAIL\r\nsend_tcp_keepalives no\r\nenable_select_cache no \r\nforeground_mode no\r\nforce_tls no\r\nenable_admin_commands no\r\n<\/pre>\n<p>M\u00f3j plik konfiguracyjny opiera si\u0119 na warto\u015bciach domy\u015blnych, zmieni\u0142em tylko limit po\u0142\u0105cze\u0144 (<code>cache_size<\/code>) i adres serwera (<code>server<\/code>). Opcje konfiguracyjne opisane s\u0105 w pliku README dostarczanym w dystrybucji\/\u017ar\u00f3d\u0142ach.<\/p>\n<p>Po uruchomieniu proponuj\u0119 sprawdzi\u0107 czy IMAP Proxy s\u0142ucha na wybranym porcie:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ntelnet localhost 143\r\nTrying 127.0.0.1...\r\nConnected to localhost.\r\nEscape character is '^]'.\r\n* OK &#x5B;CAPABILITY IMAP4rev1 LITERAL+ LOGIN-REFERRALS ID ENABLE AUTH=LOGIN  XIMAPPROXY] Dovecot ready.\r\n<\/pre>\n<p>Wida\u0107, \u017ce jest rozszerzenie XIMAPPROXY, a pod spodem wida\u0107 <code>Dovecot ready<\/code> od w\u0142a\u015bciwego IMAPa.<\/p>\n<p>Je\u015bli proxy ma chodzi\u0107 na tym samym serwerze co IMAP, to musimy uruchomi\u0107 serwer IMAP na innym porcie albo proxy. Osobi\u015bcie IMAPa bym zostawi\u0142 na domy\u015blnych portach, a zmieni\u0142 <code>listen_port<\/code> np. na 1143 w IMAP Proxy i przekonfigurowa\u0142 webmaila. To spowoduje, \u017ce normalne klienty IMAP (kt\u00f3re robi\u0105 sta\u0142e po\u0142\u0105czenia) b\u0119d\u0105 si\u0119 \u0142\u0105czy\u0107 bezpo\u015brednio do serwera IMAP a webmail b\u0119dzie korzysta\u0142 z proxy.<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in Polish. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language. IMAP&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[110],"tags":[16,11],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7M9Tz-4x","jetpack-related-posts":[{"id":374,"url":"https:\/\/drfugazi.eu.org\/en\/mail-system-implementation\/","url_meta":{"origin":281,"position":0},"title":"Mail system implementation","author":"drfugazi","date":"Thursday August 16th, 2012","format":false,"excerpt":"My experience, which I gained during implementation of different systems shows, that implementation should be done in stages. Then, at each stage you can see if it works, if there are some fields to improve and then go to the next stage of implementation. Mail system implementation is not exception.\u2026","rel":"","context":"In &quot;Mail system&quot;","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/category\/mail-system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":348,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-2\/","url_meta":{"origin":281,"position":1},"title":"Dovecot","author":"drfugazi","date":"Monday June  4th, 2012","format":false,"excerpt":"Dovecot is an open source IMAP and POP3 email server for Linux\/UNIX-like systems, written with security primarily in mind. Dovecot is an excellent choice for both small and large installations. It's fast, simple to set up, requires no special administration and it uses very little memory.","rel":"","context":"In &quot;Mail system&quot;","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/category\/mail-system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":373,"url":"https:\/\/drfugazi.eu.org\/en\/budowa-systemu-pocztowego\/","url_meta":{"origin":281,"position":2},"title":"Building mail system","author":"drfugazi","date":"Monday August 13th, 2012","format":false,"excerpt":"This description is based on my experience, which I gained during mail system implementation on University of Silesia (Katowice\/Poland). In the first stage there was about 3 000 of users, now the system is handling about 40 k of mail users. Whole system (exluding Sophos AV) is based on Open\u2026","rel":"","context":"In &quot;Mail system&quot;","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/category\/mail-system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":216,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-203\/","url_meta":{"origin":281,"position":3},"title":"dovecot-2.0.3","author":"drfugazi","date":"Tuesday September 21st, 2010","format":false,"excerpt":"Dovecot jest Open Sourceowym serwerem IMAP i POP3 dla system\u00f3w Linux\/UNIX, napisanym z naciskiem na bezpiecze\u0144stwo. Dovecot jest doskona\u0142ym wyborem zar\u00f3wno dla ma\u0142ych jak i wielkich instalacji. Jest szybki, \u0142atwy do ustawienia, nie wymaga specjalnej administracji i u\u017cywa niewiele pami\u0119ci. \u0179r\u00f3d\u0142o: http:\/\/dovecot.org\/ Poni\u017cej znajdziecie zapis sesji konfiguracji i kompilacji serwera\u2026","rel":"","context":"In \"Dovecot\"","block_context":{"text":"Dovecot","link":"https:\/\/drfugazi.eu.org\/en\/tag\/dovecot\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":206,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-1213\/","url_meta":{"origin":281,"position":4},"title":"dovecot-1.2.13","author":"drfugazi","date":"Friday August 13th, 2010","format":false,"excerpt":"Dovecot jest Open Sourceowym serwerem IMAP i POP3 dla system\u00f3w Linux\/UNIX, napisanym z naciskiem na bezpiecze\u0144stwo. Dovecot jest doskona\u0142ym wyborem zar\u00f3wno dla ma\u0142ych jak i wielkich instalacji. Jest szybki, \u0142atwy do ustawienia, nie wymaga specjalnej administracji i u\u017cywa niewiele pami\u0119ci. \u0179r\u00f3d\u0142o: http:\/\/dovecot.org\/ Poni\u017cej znajdziecie zapis sesji konfiguracji i kompilacji serwera\u2026","rel":"","context":"In \"Dovecot\"","block_context":{"text":"Dovecot","link":"https:\/\/drfugazi.eu.org\/en\/tag\/dovecot\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":365,"url":"https:\/\/drfugazi.eu.org\/en\/pigeonhole-implementacja-sieve-dla-dovecot\/","url_meta":{"origin":281,"position":5},"title":"Pigeonhole &#8211; Sieve support for Dovecot","author":"drfugazi","date":"Friday July  6th, 2012","format":false,"excerpt":"Overview Pigeonhole is the name of the project that adds support for the Sieve language (RFC 5228) and the ManageSieve protocol (RFC 5804) to the Dovecot Secure IMAP Server. In the literal sense, a pigeonhole is a a hole or recess inside a dovecot for pigeons to nest in. It\u2026","rel":"","context":"In &quot;Mail system&quot;","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/category\/mail-system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/281"}],"collection":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":0,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"wp:attachment":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}