{"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":226,"url":"https:\/\/drfugazi.eu.org\/en\/instalacja-systemu-pocztowego-na-ubuntu\/","url_meta":{"origin":374,"position":0},"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":348,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-2\/","url_meta":{"origin":374,"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":217,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-20-sieve-020\/","url_meta":{"origin":374,"position":2},"title":"dovecot-2.0-sieve-0.2.0","author":"drfugazi","date":"Wednesday September 22nd, 2010","format":false,"excerpt":"Interpreter Pigeonhole Sieve Projekt Pigeonhole dostarcza Sieve jako plugina dla Dovecotowego agenta dostarczania poczty (LDA) jak r\u00f3wnie\u017c us\u0142ugi LMTP. Plugin implementuje interpreter j\u0119zyka Sieve, kt\u00f3ry pozwala na filtrowanie przychodz\u0105cych wiadomo\u015bci u\u017cywaj\u0105c skrypt\u00f3w zgodnych ze specyfikacj\u0105 j\u0119zyka Sieve (RFC 5228). Skrypty Sieve mog\u0105 by\u0107 modyfikowane przez u\u017cytkownik\u00f3w i dzi\u0119ki temu u\u017cytkownik\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":207,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-12-sieve-0117\/","url_meta":{"origin":374,"position":3},"title":"dovecot-1.2-sieve-0.1.17","author":"drfugazi","date":"Friday August 13th, 2010","format":false,"excerpt":"Dovecot Sieve jest kompletnie przepisan\u0105 implementacj\u0105 Sieve dla Dovecota w wersji 1.2 i nowszych. G\u0142\u00f3wnym powodem przepisania silnika Sieve by\u0142o zapewnienie bardziej niezawodnego wykonywania skryptu oraz lepszych komunikat\u00f3w b\u0142\u0119d\u00f3w dla u\u017cytkownik\u00f3w i administrator\u00f3w systemu. Ta implementacja jest cz\u0119\u015bci\u0105 Projektu Pigeonhole. \u0179r\u00f3d\u0142o: http:\/\/wiki.dovecot.org\/LDA\/Sieve\/Dovecot \u015aci\u0105gni\u0119cie \u017ar\u00f3de\u0142, rozpakowanie i edycja skryptu do konfiguracji\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":272,"url":"https:\/\/drfugazi.eu.org\/en\/mail-delivery-configuration-ldap\/","url_meta":{"origin":374,"position":4},"title":"Mail delivery configuration with LDAP","author":"drfugazi","date":"Wednesday May 25th, 2011","format":false,"excerpt":"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.Ostatnim razem pisa\u0142em o uwierzytelnianiu u\u017cytkownik\u00f3w w katalogu LDAP aby umo\u017cliwia\u0107 im odbieranie i nadawanie poczty. Teraz nadszed\u0142\u2026","rel":"","context":"In &quot;LDAP&quot;","block_context":{"text":"LDAP","link":"https:\/\/drfugazi.eu.org\/en\/category\/ldap\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":356,"url":"https:\/\/drfugazi.eu.org\/en\/postfix-2\/","url_meta":{"origin":374,"position":5},"title":"Postfix","author":"drfugazi","date":"Friday June 29th, 2012","format":false,"excerpt":"Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different. Built from source code, Postfix can run\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}]}}