{"id":374,"date":"2012-08-16T16:19:25","date_gmt":"2012-08-16T16:19:25","guid":{"rendered":""},"modified":"2015-11-04T10:13:59","modified_gmt":"2015-11-04T09:13:59","slug":"mail-system-implementation","status":"publish","type":"post","link":"https:\/\/drfugazi.eu.org\/en\/mail-system-implementation\/","title":{"rendered":"Mail system implementation"},"content":{"rendered":"<p>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. We can divide this into following stages:<\/p>\n<h4>Stage I<\/h4>\n<p>Basic configuration of sending and receiving mail for system users<br \/>\n<!--more--><\/p>\n<ol>\n<li>Installation and basic configuration of Dovecot and Postfix servers<\/li>\n<li>Authentication configuration &#8211; Dovecot AUTH<\/li>\n<li>Send and receive test in basic configuration<\/li>\n<\/ol>\n<h4>Stage II<\/h4>\n<p>Connection to data source (LDAP, MySQL) for virtual (non-system) users. You can omit this step if your system doesn&#8217;t require it.<\/p>\n<ol>\n<li>Rozszerzenie schematu katalogu LDAP o odpowiednie atrybuty (je\u015bli potrzeba)<\/li>\n<li>Uzupe\u0142nienie w\u0142a\u015bciwych atrybut\u00f3w w rekordach u\u017cytkownik\u00f3w (je\u015bli potrzeba)<\/li>\n<li>Konfiguracja serwera Dovecot (i Dovecot AUTH) do wsp\u00f3\u0142pracy z katalogiem LDAP<\/li>\n<li>Konfiguracja serwera Postfix do wsp\u00f3\u0142pracy z katalogiem LDAP<\/li>\n<li>Test nadawania i odbioru poczty w konfiguracji z dodatkowym \u017ar\u00f3d\u0142em danych<\/li>\n<\/ol>\n<h4>Stage III<\/h4>\n<p>Przy\u0142\u0105czenie skanera Antywirusowego i Antyspamowego do Postfixa przez interfejs Amavisd-new<\/p>\n<ol>\n<li>Instalacja i konfiguracja oprogramowania <a href=\"http:\/\/www.ijs.si\/software\/amavisd\/\">amavisd-new<\/a><\/li>\n<li>Instalacja oprogramowania antywirusowego <a href=\"http:\/\/clamav.net\/\">ClamAV<\/a> i konfiguracja pod amavisa<\/li>\n<li>Instalacja oprogramowania SpamAssassin<\/li>\n<li>Konfiguracja Postfixa aby korzysta\u0142 z Amavisd-new do filtrowania zawarto\u015bci (content filter)<\/li>\n<li>Test nadawania i odbioru poczty w konfiguracji z filtrowaniem tre\u015bci, inspekcja nag\u0142\u00f3wk\u00f3w<\/li>\n<\/ol>\n<h4>Etap IV<\/h4>\n<p>Uruchomienie dodatkowych filtr\u00f3w do walki ze spamem na r\u00f3\u017cnych etapach przyjmowania poczty<\/p>\n<ol>\n<li>Konfiguracja Greylistingu przy u\u017cyciu wbudowanego w Postfixa mechanizmu Postscreen<\/li>\n<li>Instalacja i konfiguracja w\u0142asnego serwera RBL (DNSBL)<\/li>\n<li>Instalacja i konfiguracja mechanizmu fail2ban, kt\u00f3ry na podstawie log\u00f3w z Postfixa uzupe\u0142nia wpisy w serwerze RBL<\/li>\n<li>Konfiguracja i uruchomienie mechanizmu Sieve i ManageSieve aby u\u017cytkownik m\u00f3g\u0142 tworzy\u0107 w\u0142asne filtry<\/li>\n<li>Test dzia\u0142ania mechanizm\u00f3w filtrowania, obserwacja log\u00f3w<\/li>\n<\/ol>\n<h4>Etap V<\/h4>\n<p>Instalacja i konfiguracja Webmaila i Proxy Imap<\/p>\n<ol>\n<li>Instalacja Webmaila, konfiguracja bazy danych i pod\u0142\u0105czenie bezpo\u015brednie do serwera IMAP<\/li>\n<li>Instalacja Proxy Imap i prze\u0142\u0105czenie Webmaila na Proxy<\/li>\n<li>Test nadawania i odbioru poczty przez Webmail<\/li>\n<\/ol>\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.Z mojego&#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":[48,49,12,6,22,34,50,11],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7M9Tz-62","jetpack-related-posts":[{"id":373,"url":"https:\/\/drfugazi.eu.org\/en\/budowa-systemu-pocztowego\/","url_meta":{"origin":374,"position":0},"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":226,"url":"https:\/\/drfugazi.eu.org\/en\/instalacja-systemu-pocztowego-na-ubuntu\/","url_meta":{"origin":374,"position":1},"title":"Instalacja systemu pocztowego na Ubuntu","author":"drfugazi","date":"Friday November 19th, 2010","format":false,"excerpt":"Zak\u0142adam, \u017ce system jest zainstalowany i posiada podstawow\u0105 konfiguracj\u0119 z uruchomion\u0105 us\u0142ug\u0105 SSH. Po zalogowaniu przyst\u0119pujemy do instalacji pakietu dovecot-postfix, kt\u00f3ry opisany jest jako w pe\u0142ni funkcjonalny serwer pocztowy: drfugazi@charr:~% sudo aptitude install dovecot-postfix [sudo] password for drfugazi: Czytanie list pakiet\u00f3w... Gotowe Budowanie drzewa zale\u017cno\u015bci Odczyt informacji o stanie... Gotowe\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":231,"url":"https:\/\/drfugazi.eu.org\/en\/konfiguracja-uwierzytelniania-poczty-w-ldap\/","url_meta":{"origin":374,"position":2},"title":"Konfiguracja uwierzytelniania poczty w LDAP","author":"drfugazi","date":"Friday December  3rd, 2010","format":false,"excerpt":"Zak\u0142adam, \u017ce Dovecot i Postfix ju\u017c dzia\u0142aj\u0105 i mo\u017cna odebra\u0107 i wys\u0142a\u0107 poczt\u0119 loguj\u0105c si\u0119 na u\u017cytkownika systemowego (patrz poprzednie wpisy). Nadszed\u0142 zatem czas na uruchomienie uwierzytelniania w naszym katalogu LDAP (patrz konfiguracja LDAP). Wykorzystanie LDAPa do uwierzytelniania u\u017cytkownik\u00f3w pozwala na elastyczne zarz\u0105dzanie hostingiem poczty i nie tylko. LDAP jest\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":232,"url":"https:\/\/drfugazi.eu.org\/en\/konfiguracja-dostarczania-poczty-w-oparciu-o-ldap\/","url_meta":{"origin":374,"position":3},"title":"Konfiguracja dostarczania poczty w oparciu o LDAP","author":"drfugazi","date":"Saturday December 18th, 2010","format":false,"excerpt":"Ostatnio pisa\u0142em o konfiguracji uwierzytelniania u\u017cytkownik\u00f3w w katalogu LDAP aby mogli odbiera\u0107 i wysy\u0142a\u0107 poczt\u0119. Teraz czas na konfiguracj\u0119 Postfixa aby t\u0119 poczt\u0119 dostarcza\u0142 do w\u0142a\u015bciwych domen i skrzynek. Je\u015bli kompilujecie\/instalujecie Postfixa samodzielnie, to nale\u017cy pami\u0119ta\u0107 o wkompilowaniu wsparcia dla LDAP oraz wskazaniu \u015bcie\u017cki do bibliotek LDAP. Ja p\u00f3jd\u0119 na\u2026","rel":"","context":"In \"LDAP\"","block_context":{"text":"LDAP","link":"https:\/\/drfugazi.eu.org\/en\/tag\/ldap\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":348,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-2\/","url_meta":{"origin":374,"position":4},"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":365,"url":"https:\/\/drfugazi.eu.org\/en\/pigeonhole-implementacja-sieve-dla-dovecot\/","url_meta":{"origin":374,"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\/374"}],"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=374"}],"version-history":[{"count":1,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/374\/revisions\/509"}],"wp:attachment":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}