{"id":259613,"date":"2015-06-18T15:19:02","date_gmt":"2015-06-18T11:19:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259613"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259613","title":{"rendered":"Kolab Groupware (\u0427\u0430\u0441\u0442\u044c 2 \u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430)"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ee8\/922\/938\/ee892293882e4e2487c48354109305bb.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Kolab, \u0442\u043e \u0432\u044b \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c <a href=\"http:\/\/habrahabr.ru\/post\/260469\/\">\u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e<\/a>, \u0433\u0434\u0435 \u044f \u0434\u0435\u043b\u0430\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u043e\u0431\u0437\u043e\u0440 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435, \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438 \u043a\u0430\u043a\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442.<br \/>  \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/h2>\n<p>  \u041f\u0430\u043a\u0435\u0442\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432: <a href=\"https:\/\/docs.kolab.org\">Red Hat Enterprise Linux<\/a>, <a href=\"https:\/\/docs.kolab.org\/installation-guide\/centos-community.html\">CentOS<\/a>, <a href=\"https:\/\/docs.kolab.org\/installation-guide\/fedora.html\">Fedora<\/a>, <a href=\"https:\/\/docs.kolab.org\/installation-guide\/debian.html\">Debian<\/a>, \u0442\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f <a href=\"https:\/\/kolab.org\/news\/2015\/04\/17\/kolab-3-rc1-released-planned-packaged-opensuse\">OpenSUSE<\/a> \u0438 <a href=\"https:\/\/docs.kolab.org\/installation-guide\/ubuntu.html\">Ubuntu<\/a>, \u0430 \u0432 <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Kolab\">ArchLinux<\/a> Kolab \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 <a href=\"https:\/\/aur.archlinux.org\/packages\/kolab\/\">AUR<\/a>.<br \/>  \u042f \u0431\u0443\u0434\u0443 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0421entos 7, \u043d\u043e \u043d\u0430 \u043c\u0435\u043d\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u0430\u043b\u043e \u0447\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0418\u0442\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438  <\/p>\n<pre><code class=\"bash\">yum -y update yum -y install wget epel-release  cd \/etc\/yum.repos.d wget http:\/\/obs.kolabsys.com\/repositories\/Kolab:\/3.4\/CentOS_7\/Kolab:3.4.repo wget http:\/\/obs.kolabsys.com\/repositories\/Kolab:\/3.4:\/Updates\/CentOS_7\/Kolab:3.4:Updates.repo <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043a\u043b\u044e\u0447\u0438  <\/p>\n<pre><code class=\"bash\">gpg --keyserver pgp.mit.edu --recv-key 0x446D5A45 gpg --export --armor devel@lists.kolab.org &gt; devel.asc rpm --import devel.asc rm devel.asc <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u0438 \u043f\u0430\u043a\u0435\u0442\u044b  <\/p>\n<pre><code class=\"bash\">yum -y install kolab <\/code><\/pre>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Kolab<\/h2>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043c\u0435\u043d\u0438 \u0445\u043e\u0441\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 FQDN, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"bash\">echo &quot;mail.example.org&quot; &gt; \/etc\/hostname <\/code><\/pre>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 dirsrv \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e \u0431\u044b \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0440\u0435\u0437\u043e\u043b\u044c\u0432\u0438\u043b\u043e\u0441\u044c \u0432 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0435\u0439 \u0435\u0439 IP-\u0430\u0434\u0440\u0435\u0441, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 DNS \u0438\/\u0438\u043b\u0438 \u0432 \/etc\/hosts \u0444\u0430\u0439\u043b.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0437\u043d\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Kolab \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e 389 Directory Server (\u0434\u0430\u043b\u0435\u0435 dirsrv), <font color=\"brown\"><i>\u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c Active Directory<\/i><\/font>, \u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \/etc\/kolab\/kolab.conf, \u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0435 \u0437\u0430 LDAP.<br \/>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c &#8212;with-ad<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0432 centos-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u043f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f dirsrv, \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043e\u043d \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f, \u0432 debian \u044d\u0442\u0438\u043c \u0432\u0441\u0435 \u0432\u043f\u043e\u0440\u044f\u0434\u043a\u0435.  <\/p>\n<pre><code class=\"bash\">adduser dirsrv <\/code><\/pre>\n<p>  \u041e\u043a, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443:  <\/p>\n<pre><code class=\"bash\">setup-kolab <\/code><\/pre>\n<p>  \u0412\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0431\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u0441\u0442 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041b\u0438\u0441\u0442\u0438\u043d\u0433<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">Please supply a password for the LDAP administrator user 'admin', used to login to the graphical console of 389 Directory server.  Administrator password [sQnPqqaKInB2ObB]:   Please supply a password for the LDAP Directory Manager user, which is the administrator user you will be using to at least initially log in to the Web Admin, and that Kolab uses to perform administrative tasks.  Directory Manager password [ohLY9kxxinHGOGE]:   Please choose the system user and group the service should use to run under. These should be existing, unprivileged, local system POSIX accounts with no shell.  User [dirsrv]:  Group [dirsrv]:   This setup procedure plans to set up Kolab Groupware for the following domain name space. This domain name is obtained from the reverse DNS entry on your network interface. Please confirm this is the appropriate domain name space.  example.org [Y\/n]: y  The standard root dn we composed for you follows. Please confirm this is the root dn you wish to use.  dc=example,dc=org [Y\/n]: y  Setup is now going to set up the 389 Directory Server. This may take a little while (during which period there is no output and no progress indication).  Shutting down dirsrv:      mail...                                                [  OK  ] Starting dirsrv:      mail...                                                [  OK  ]  Please supply a Cyrus Administrator password. This password is used by Kolab to execute administrative tasks in Cyrus IMAP. You may also need the password yourself to troubleshoot Cyrus IMAP and\/or perform other administrative tasks against Cyrus IMAP directly.  Cyrus Administrator password [0DIMW-CLUKmsNEU]:   Please supply a Kolab Service account password. This account is used by various services such as Postfix, and Roundcube, as anonymous binds to the LDAP server will not be allowed.  Kolab Service password [dDGgUZAue2Y-LTW]:  Shutting down postfix:                                     [FAILED] Starting postfix:                                          [  OK  ] Shutting down amavisd: The amavisd daemon is apparently not running, no PID file \/var\/run\/amavisd\/amavisd.pid                                                            [FAILED]  Starting amavisd:                                          [  OK  ]  Stopping clamd.amavisd:                                    [FAILED] Starting clamd.amavisd: LibClamAV Warning: ************************************************** LibClamAV Warning: ***  The virus database is older than 7 days!  *** LibClamAV Warning: ***   Please update it as soon as possible.    *** LibClamAV Warning: **************************************************                                                            [  OK  ] Stopping wallaced:                                         [FAILED] Starting wallaced:                                         [  OK  ] Stopping mysqld:                                           [  OK  ] Initializing MySQL database:  Installing MySQL system tables... OK Filling help tables... OK  To start mysqld at boot time you have to copy support-files\/mysql.server to the right place for your system  PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands:  \/usr\/bin\/mysqladmin -u root password 'new-password' \/usr\/bin\/mysqladmin -u root -h mail.example.org password 'new-password'  Alternatively you can run: \/usr\/bin\/mysql_secure_installation  which will also give you the option of removing the test databases and anonymous user created by default.  This is strongly recommended for production servers.  See the manual for more instructions.  You can start the MySQL daemon with: cd \/usr ; \/usr\/bin\/mysqld_safe &  You can test the MySQL daemon with mysql-test-run.pl cd \/usr\/mysql-test ; perl mysql-test-run.pl  Please report any problems with the \/usr\/bin\/mysqlbug script!                                                             [  OK  ] Starting mysqld:                                           [  OK  ] What MySQL server are we setting up?  - 1: Existing MySQL server (with root password already set).  - 2: New MySQL server (needs to be initialized). Choice: 2  Please supply a root password for MySQL. This password will be the administrative user for this MySQL server, and it should be kept a secret. After this setup process has completed, Kolab is going to discard and forget about this password, but you will need it for administrative tasks in MySQL.  MySQL root password [lhBkALCvQpocaiT]:   Please supply a password for the MySQL user 'kolab'. This password will be used by Kolab services, such as the Web Administration Panel.  MySQL kolab password [47rxdTc-vIk3WJ8]:   Please supply the timezone PHP should be using. You have to use a Continent or Country \/ City locality name like 'Europe\/Berlin', but not just 'CEST'.  Timezone ID [UTC]: Europe\/Moscow  Please supply a password for the MySQL user 'roundcube'. This password will be used by the Roundcube webmail interface.  MySQL roundcube password [o_yUViK4oRy7SX2]:  Stopping httpd:                                            [FAILED] Starting httpd:                                            [  OK  ] Stopping httpd:                                            [  OK  ] Starting httpd:                                            [  OK  ] Stopping kolab-saslauthd:                                  [FAILED] Starting kolab-saslauthd:                                  [  OK  ] Shutting down cyrus-imapd:                                 [FAILED] Starting cyrus-imapd:                                      [  OK  ] Stopping kolabd:                                           [FAILED] Starting kolabd:                                           [  OK  ] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u044b \u0438\u043c\u0435\u0435\u0442\u0435 \u0443\u0436\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e Kolab, \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043d\u043e \u0434\u043b\u044f \u0432\u044b\u043f\u0443\u0441\u043a\u0430 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u043f\u0438\u043b\u044c\u043d\u0438\u043a\u043e\u043c \ud83d\ude42<\/p>\n<h2>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433<\/h2>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c <b>\/etc\/kolab\/kolab.conf<\/b><br \/>  \u0417\u0434\u0435\u0441\u044c, \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u0447\u0435\u0433\u043e \u043f\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c, \u0432\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043e\u043f\u0446\u0438\u0439:<\/p>\n<h4>\u041b\u043e\u043a\u0430\u043b\u044c<\/h4>\n<p>  \u041b\u043e\u043a\u0430\u043b\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u0443\u043a\u0430\u0436\u0438\u0442\u0435 ru_RU  <\/p>\n<pre><code class=\"bash\">default_locale = en_US <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f uid&#8217;\u043e\u0432 \u0438 \u0438\u043c\u0435\u043d \u044f\u0449\u0438\u043a\u043e\u0432<\/h4>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u044f\u0449\u0438\u043a  <\/p>\n<pre><code class=\"bash\">primary_mail = %(surname)s@%(domain)s <\/code><\/pre>\n<p>  \u0410 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u044f\u0449\u0438\u043a\u0438, \u043a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0438\u043c\u0438, \u0447\u0435\u043c \u0434\u043b\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e  <\/p>\n<pre><code class=\"bash\">secondary_mail = {      0: {     &quot;{0}.{1}@{2}&quot;: &quot;format('%(givenname)s'[0:1].capitalize(), '%(surname)s', '%(domain)s')&quot;     },       1: {     &quot;{0}@{1}&quot;: &quot;format('%(uid)s', '%(domain)s')&quot;     },       2: {     &quot;{0}@{1}&quot;: &quot;format('%(givenname)s.%(surname)s', '%(domain)s')&quot;     }        }  <\/code><\/pre>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 Kolab \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u043c\u0438\u043d\u043a\u0443 primary email \u0438 uid, \u0442.\u0435. \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u0438 \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b.<br \/>  \u041c\u043d\u0435 \u043b\u0438\u0447\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u043c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c username \u0438 mail-\u0430\u0434\u0440\u0435\u0441\u0430 \u0432 \u0440\u0443\u0447\u043d\u0443\u044e, \u043d\u0443 \u0438\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u0447\u0442\u043e \u0431\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<p>  \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438\u043c\u0435\u043d \u044f\u0449\u0438\u043a\u043e\u0432  <\/p>\n<pre><code class=\"bash\">daemon_rcpt_policy = False <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0443 Kolab, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 <b>Settings<\/b> \u0438 \u0434\u043b\u044f \u0442\u0438\u043f\u0430 <b>Kolab User<\/b> \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <b>uid<\/b> \u0438 <b>mail<\/b> \u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u00abGenerated (read-only)\u00bb \u043d\u0430 \u00abGenerated\u00bb.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c uid&#8217;\u044b \u0438 mail-\u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n<h4>\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0447\u0442\u044b<\/h4>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433, \u0437\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u043f\u043a\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u043e\u0432\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e  <\/p>\n<pre><code class=\"bash\">autocreate_folders = {      'Archive': {     'quota': 0,     },       'Calendar': {     'annotations': {     '\/private\/vendor\/kolab\/folder-type': &quot;event.default&quot;,     '\/shared\/vendor\/kolab\/folder-type': &quot;event&quot;,     },  ... <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0430\u043f\u043a\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0442\u043e \u0431\u044b \u0432\u0441\u0435 \u043f\u0430\u043f\u043a\u0438 \u0431\u044b\u043b\u0438 \u043d\u0430 \u0431\u044b\u0441\u0442\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0430 \u043f\u0430\u043f\u043a\u0443 archive \u043d\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u043c.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 cyrus \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0433\u0434\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u044d\u0442\u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430.  <\/p>\n<pre><code class=\"cs\">echo &quot;partition-default: \/var\/spool\/imap&quot; &gt;&gt; \/etc\/imapd.conf echo &quot;partition-archive: \/var\/spool\/imap-archive&quot; &gt;&gt; \/etc\/imapd.conf <\/code><\/pre>\n<p>  \u0418 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 partition \u043a \u043f\u0430\u043f\u043a\u0435 Archive, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">...     'Archive': {     'quota': 0,     'partition': 'archive'     },   ... <\/code><\/pre>\n<h2>\u041c\u0443\u043b\u044c\u0442\u0438\u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/h2>\n<p>  Kolab \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432. \u0412\u0435\u0440\u043d\u0435\u0435 \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u0441\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c, \u043d\u043e \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a postfix, cyrus-imap, amavis, roundcube \u2014 \u0432\u0441\u0435 \u043e\u043d\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430.<br \/>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0432\u0441\u0435 \u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 wiki \u0435\u0441\u0442\u044c <a href=\"https:\/\/docs.kolab.org\/howtos\/multi-domain.html\">\u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0433\u0430\u0439\u0434<\/a> \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0437\u043e\u043e\u043f\u0430\u0440\u043a, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0434\u043e\u043c\u0435\u043d\u0430\u043c\u0438<br \/>  \u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432\u0430\u0448\u0438 \u043b\u043e\u0433\u0438\u043d\u044b \u0432 \u043f\u043e\u0447\u0442\u0443 \u043f\u043e\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e username \u043d\u0430 username@example.org<br \/>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 SSL<\/h2>\n<p>  \u041e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0438\u043c \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440, <a href=\"http:\/\/habrahabr.ru\/post\/127643\/\">\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442<\/a> \u043d\u0430 \u0432\u0430\u0448 \u0434\u043e\u043c\u0435\u043d, \u0435\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u043d\u0435\u0435.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0446\u0435\u043d\u0442\u0440\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435 StartSSL \u2014 <a href=\"http:\/\/www.startssl.com\/certs\/sub.class1.server.ca.pem\">sub.class1.server.ca.pem<\/a>)<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c mod_ssl \u0434\u043b\u044f apache  <\/p>\n<pre><code class=\"bash\">yum -y install  mod_ssl  <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448\u0438 \u043a\u043b\u044e\u0447\u0438 \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0443\u0442\u044f\u043c:<br \/>  \/etc\/pki\/tls\/private\/mail.example.org.key<br \/>  \/etc\/pki\/tls\/certs\/mail.example.org.crt<br \/>  \/etc\/pki\/tls\/certs\/sub.class1.server.ca.pem<\/p>\n<pre><code class=\"bash\"># C\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432  cat \/etc\/pki\/tls\/certs\/mail.example.org.crt \/etc\/pki\/tls\/private\/mail.example.org.key \/etc\/pki\/tls\/certs\/sub.class1.server.ca.pem &gt; \/etc\/pki\/tls\/private\/mail.example.org.bundle.pem cat \/etc\/pki\/tls\/certs\/mail.example.org.crt \/etc\/pki\/tls\/certs\/sub.class1.server.ca.pem &gt; \/etc\/pki\/tls\/certs\/mail.example.org.bundle.pem cat \/etc\/pki\/tls\/certs\/sub.class1.server.ca.pem &gt; \/etc\/pki\/tls\/certs\/mail.example.org.ca-chain.pem  # \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043f\u0440\u0430\u0432\u0430 chown -R root:mail \/etc\/pki\/tls\/private chmod 600 \/etc\/pki\/tls\/private\/mail.example.org.key chmod 750 \/etc\/pki\/tls\/private chmod 640 \/etc\/pki\/tls\/private\/*  # \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0446\u0435\u043d\u0442\u0440\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 cat \/etc\/pki\/tls\/certs\/sub.class1.server.ca.pem &gt;&gt; \/etc\/pki\/tls\/certs\/ca-bundle.crt  # \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0432 apache sed -i -e '\/SSLCertificateFile \\\/etc\\\/pki\/c\\SSLCertificateFile \/etc\/pki\/tls\/certs\/mail.example.org.crt' \/etc\/httpd\/conf.d\/ssl.conf sed -i -e '\/SSLCertificateKeyFile \\\/etc\\\/pki\/c\\SSLCertificateKeyFile \/etc\/pki\/tls\/private\/mail.example.org.key' \/etc\/httpd\/conf.d\/ssl.conf sed -i -e '\/SSLCertificateChainFile \\\/etc\\\/pki\/c\\SSLCertificateChainFile \/etc\/pki\/tls\/certs\/mail.example.org.ca-chain.pem' \/etc\/httpd\/conf.d\/ssl.conf          # \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 HTTPS \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e cat &gt;&gt; \/etc\/httpd\/conf\/httpd.conf &lt;&lt; EOF   &lt;VirtualHost _default_:80&gt;     RewriteEngine On     RewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}\\$1 [R=301,L] &lt;\/VirtualHost&gt; EOF  #  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0432 cyrus-imap sed -r -i \\     -e 's|^tls_server_cert:.*|tls_server_cert: \/etc\/pki\/tls\/certs\/mail.example.org.crt|g' \\     -e 's|^tls_server_key:.*|tls_server_key: \/etc\/pki\/tls\/private\/mail.example.org.key|g' \\     -e 's|^tls_server_ca_file:.*|tls_server_ca_file: \/etc\/pki\/tls\/certs\/mail.example.org.ca-chain.pem|g' \\     \/etc\/imapd.conf          # \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0432 Postfix postconf -e smtpd_tls_key_file=\/etc\/pki\/tls\/private\/mail.example.org.key postconf -e smtpd_tls_cert_file=\/etc\/pki\/tls\/certs\/mail.example.org.crt postconf -e smtpd_tls_CAfile=\/etc\/pki\/tls\/certs\/mail.example.org.ca-chain.pem          # \u0423\u043a\u0430\u0436\u0435\u043c kolab-cli \u043d\u043e\u0432\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 api sed -r -i \\       -e '\/api_url\/d' \\       -e &quot;s#\\[kolab_wap\\]#[kolab_wap]\\napi_url = https:\/\/$(hostname -f)\/kolab-webadmin\/api#g&quot; \\       \/etc\/kolab\/kolab.conf            # \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c Roundcube sed -i -e 's\/http:\/https:\/' \/etc\/roundcubemail\/libkolab.inc.php sed -i -e 's\/http:\/https:\/' \/etc\/roundcubemail\/kolab_files.inc.php sed -i -e '\/^?&gt;\/d' \/etc\/roundcubemail\/config.inc.php  # \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c iRony \u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u0441\u044b\u043b\u043a\u0430\u0445 \u0434\u043b\u044f DAV-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 cat &gt;&gt; \/etc\/roundcubemail\/config.inc.php &lt;&lt; EOF # caldav\/webdav \\$config['calendar_caldav_url']             = &quot;https:\/\/%h\/iRony\/calendars\/%u\/%i&quot;; \\$config['kolab_addressbook_carddav_url']   = 'https:\/\/%h\/iRony\/addressbooks\/%u\/%i'; EOF  # \u0423\u043a\u0430\u0436\u0435\u043c Rouncdcube \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e HTTPS cat &gt;&gt; \/etc\/roundcubemail\/config.inc.php &lt;&lt; EOF # Force https redirect for http requests \\$config['force_https'] = true; EOF <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 SSL \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0439.<\/p>\n<h2>DKIM \u0438 SPF<\/h2>\n<p>  \u0427\u0442\u043e \u0431\u044b Gmail \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0435 \u0437\u0430\u043d\u043e\u0441\u0438\u043b\u0438 \u043d\u0430\u0448\u0438 \u043f\u0438\u0441\u044c\u043c\u0430 \u0432 \u0441\u043f\u0430\u043c, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SPF \u0438 DKIM \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u043b\u044f DKIM \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c OpenDKIM, \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0443\u0436\u0435 \u0431\u044b\u043b\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/151904\/\">\u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a><\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0441\u043f\u0430\u043c\u0430 \u0441 Amavis<\/h2>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e amavis \u0432\u0435\u0441\u044c \u0441\u043f\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u0442. \u041b\u0438\u0447\u043d\u043e \u044f \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438 \u0447\u0442\u043e \u0441\u043f\u0430\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u043f\u0430\u043c-\u043f\u0430\u043f\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/p>\n<p>  \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 cyrus-imap \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 sieve \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 dovecot, \u043d\u043e \u0437\u0430\u0442\u043e \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0447\u0442\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0432 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0435.<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c amavis  <\/p>\n<pre><code class=\"bash\"># \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 ***spam*** \u0432 \u0442\u0435\u043c\u0443 \u043f\u0438\u0441\u044c\u043c\u0430 sed -i '\/^[^#]*$sa_spam_subject_tag\/s\/^\/#\/' \/etc\/amavisd\/amavisd.conf # \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 spam+ \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u043e\u0447\u0442\u044b sed -i '\/^# $recipient_delimiter\/s\/^# \/\/' \/etc\/amavisd\/amavisd.conf # \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u0441\u043f\u0430\u043c\u0430 sed -i 's\/^\\($final_spam_destiny.*= \\).*\/\\1D_PASS;\/' \/etc\/amavisd\/amavisd.conf <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442, \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0447\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0432 \u043f\u0430\u043f\u043a\u0443 spam, \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c anyone \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 p (\u0442.\u0435. \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u044d\u0442\u0443 \u043f\u0430\u043f\u043a\u0443 \u043f\u0438\u0441\u044c\u043c\u0430), \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u044b\u043f\u0430\u0442\u044c\u0441\u044f \u0432 INBOX.<br \/>  \u041a\u0441\u0442\u0430\u0442\u0438 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0438 Shared Folders, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432 \u043d\u0438\u0445 \u043f\u0438\u0441\u044c\u043c\u0430, \u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043b\u044f \u043d\u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0432 cyrus-imap \u0448\u0442\u0430\u0442\u043d\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0435\u0433\u043b\u0430\u0441\u0441\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f anyone.<br \/>  \u041d\u043e \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043d\u0430 \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 crontab, \u0438 \u043a\u0430\u0436\u0434\u044b\u0435 4 \u0447\u0430\u0441\u0430 kolab \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0440\u0433\u0430\u0442\u044c cyrus-imap \u0447\u0442\u043e \u0431\u044b \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0432\u0430\u0448\u0435\u043c \u0434\u043e\u043c\u0435\u043d\u0435 \u0441\u0442\u043e\u044f\u043b\u043e \u00abanyone p\u00bb \u0434\u043b\u044f \u043f\u0430\u043f\u043a\u0438 spam.  <\/p>\n<pre><code class=\"bash\">0 4 * * *  kolab sam user\/%\/Spam@example.org anyone p <\/code><\/pre>\n<p>  <i>\u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0437\u043d\u0430\u0435\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043b\u0443\u0447\u0448\u0435, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u044b\u0441\u043b\u0443\u0448\u0430\u0442\u044c \u0432\u0430\u0448\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0447\u0435\u0442<\/i><\/p>\n<h2>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430 \u0441 Fail2ban<\/h2>\n<p>  Fail2ban \u2014 \u044d\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u043b\u043e\u0433\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0432\u0445\u043e\u0434\u0430.<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0435\u0441\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0432\u0445\u043e\u0434\u0430 \u0441 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0441 \u043e\u0434\u043d\u043e\u0433\u043e IP, \u0442\u043e \u044d\u0442\u043e\u0442 IP \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0431\u0430\u043d \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Fail2ban \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432  <\/p>\n<pre><code class=\"bash\">yum -y install  fail2ban <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0434\u043b\u044f Fail2ban  <\/p>\n<pre><code class=\"bash\">cat &gt; \/etc\/fail2ban\/filter.d\/kolab-cyrus.conf &lt;&lt; EOF [Definition] failregex = (imaps|pop3s)\\[[0-9]*\\]: badlogin: \\[&lt;HOST&gt;\\] (plain|PLAIN|login|plaintext) .* ignoreregex = EOF  cat &gt; \/etc\/fail2ban\/filter.d\/kolab-postfix.conf &lt;&lt; EOF [Definition] failregex = postfix\\\/submission\\\/smtpd\\[[0-9]*\\]: warning: unknown\\[&lt;HOST&gt;\\]: SASL (PLAIN|LOGIN) authentication failed: authentication failure ignoreregex = EOF  cat &gt; \/etc\/fail2ban\/filter.d\/kolab-roundcube.conf &lt;&lt; EOF [Definition] failregex = &lt;.*&gt; Failed login for .* from &lt;HOST&gt; in session .* ignoreregex = EOF  cat &gt; \/etc\/fail2ban\/filter.d\/kolab-irony.conf &lt;&lt; EOF [Definition] failregex = &lt;.*&gt; Failed login for .* from &lt;HOST&gt; in session .* ignoreregex = EOF  cat &gt; \/etc\/fail2ban\/filter.d\/kolab-chwala.conf &lt;&lt; EOF [Definition] failregex = &lt;.*&gt; Failed login for .* from &lt;HOST&gt; in session .* ignoreregex = EOF  cat &gt; \/etc\/fail2ban\/filter.d\/kolab-syncroton.conf &lt;&lt; EOF [Definition] failregex = &lt;.*&gt; Failed login for .* from &lt;HOST&gt; in session .* ignoreregex = EOF <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0436\u0435 \u043d\u0430\u0442\u0440\u0430\u0432\u0438\u043c \u043d\u0430 \u043d\u0438\u0445 Fail2ban  <\/p>\n<pre><code class=\"bash\">cat &gt;&gt; \/etc\/fail2ban\/jail.conf &lt;&lt; EOF  [kolab-cyrus] enabled = true filter  = kolab-cyrus action  = iptables-multiport[name=cyrus-imap,port=&quot;143,993,110,995,4190&quot;] logpath = \/var\/log\/maillog maxretry = 5  [kolab-postfix] enabled = true filter  = kolab-postfix action  = iptables-multiport[name=kolab-postfix,port=&quot;25,587&quot;] logpath = \/var\/log\/maillog maxretry = 5  [kolab-roundcube] enabled = true filter  = kolab-roundcube action  = iptables-multiport[name=kolab-roundcube, port=&quot;http,https&quot;] logpath = \/var\/log\/roundcubemail\/userlogins maxretry = 5  [kolab-irony] enabled = true filter  = kolab-irony action  = iptables-multiport[name=kolab-irony,port=&quot;http,https&quot;] logpath = \/var\/log\/iRony\/userlogins maxretry = 5  [kolab-chwala] enabled = true filter  = kolab-chwala action  = iptables-multiport[name=kolab-chwala,port=&quot;http,https&quot;] logpath = \/var\/log\/chwala\/userlogins maxretry = 5  [kolab-syncroton] enabled = true filter  = kolab-syncroton action  = iptables-multiport[name=kolab-syncroton,port=&quot;http,https&quot;] logpath = \/var\/log\/kolab-syncroton\/userlogins maxretry = 5 EOF <\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c Roundcube<\/h2>\n<h4>\u0422\u0435\u043c\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/h4>\n<p>  \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b \u0432 <a href=\"http:\/\/habrahabr.ru\/post\/260469\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u0435\u043c\u0430 Chameleon, \u0432\u044b \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0435 \u043d\u0430 Larry  <\/p>\n<pre><code class=\"bash\">sed -i &quot;s\/\\$config\\['skin'\\] = '.*';\/\\$config\\['skin'\\] = 'larry';\/g&quot; \/etc\/roundcubemail\/config.inc.php <\/code><\/pre>\n<h4>\u041f\u043b\u0430\u0433\u0438\u043d zipdownload<\/h4>\n<p>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0436\u0430\u043b\u0443\u044e\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a \u043f\u0438\u0441\u044c\u043c\u0443 \u0441\u0440\u0430\u0437\u0443.<br \/>  \u0422\u0430\u043a \u0432\u043e\u0442, \u0442\u0430\u043a\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0435\u0441\u0442\u044c \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 zipdownload \u0434\u043b\u044f Roundcube<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 roundcube, \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c\u0438 \u043d\u0430\u0448\u0435\u0433\u043e Roundcube  <\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/roundcube\/roundcubemail\/ --depth 1 \/tmp\/roundcube mv \/tmp\/roundcube\/plugins\/zipdownload\/ \/usr\/share\/roundcubemail\/plugins\/ rm -rf \/tmp\/roundcube\/ <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043b\u0438\u0448\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0435\u0433\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0435\u0433\u043e \u0432 $config[&#8216;plugins&#8217;] \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/roundcubemail\/config.inc.php  <\/p>\n<pre><code class=\"bash\">sed -i &quot;\/'contextmenu',\/a \\            'zipdownload',&quot; \/etc\/roundcubemail\/config.inc.php <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442: \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 php_zlib, \u0432 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u0441 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u043c\u0438 \u0435\u0441\u0442\u044c \u0431\u0430\u0433, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e, \u0435\u0441\u043b\u0438 \u0432 \u043f\u0438\u0441\u044c\u043c\u0435 \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0441 \u043a\u0438\u0440\u0438\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438, \u0442\u043e \u043f\u0440\u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0435 \u0432 zip-\u0444\u0430\u0439\u043b \u0438\u0445 \u0438\u043c\u0435\u043d\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u0440\u0430\u043a\u043e\u0437\u044f\u0431\u0440\u0443.<br \/>  \u0427\u0442\u043e \u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u043e, \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u043d\u043e\u0432\u044b\u0439 php_zlib:  <\/p>\n<pre><code class=\"bash\">yum -y install php-devel zlib-devel pcre-devel gcc pecl install zip <\/code><\/pre>\n<h2>Kolab ActiveSync Server<\/h2>\n<p>  \u0415\u0449\u0435 \u043f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043e\u0431 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438: \u0441\u0435\u0440\u0432\u0438\u0441 kolab-synroton (\u0444\u043e\u0440\u043a <a href=\"https:\/\/z-push.org\/\">z-push<\/a>) \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u043c\u0435\u0435\u0442 2 \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b: folder-mode \u0438 flat-mode.<\/p>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 folder-mode \u0432\u0441\u0435 \u043f\u0430\u043f\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 Roundcube \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0441\u0442\u044c.<br \/>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0436\u0435 \u0441 flat-mode \u0432\u0441\u0435 \u044d\u0442\u0438 \u0436\u0435 \u043f\u0430\u043f\u043a\u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u0443 \u0434\u043b\u044f \u043f\u043e\u0447\u0442\u044b, \u043e\u0434\u043d\u0443 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432, \u043e\u0434\u043d\u0443 \u0434\u043b\u044f \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044f\u2026<\/p>\n<p>  Apple \u0438 Windows \u0442\u0435\u0445\u043d\u0438\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 folder-mode, \u043d\u043e \u0432\u043e\u0442 \u0434\u043b\u044f Android, \u0432\u0432\u0438\u0434\u0443 \u0441\u043b\u0430\u0431\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 folder-mode (\u0442\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0440\u0430\u0437\u0440\u043e\u0431\u043e\u0442\u0447\u0438\u043a\u0438), \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043a\u043b\u044e\u0447\u0435\u043d flat-mode.<br \/>  \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0438 \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 folder-mode, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043d\u0435\u0441\u0442\u0438 \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 $ext_devices \u0432 \u0444\u0430\u0439\u043b\u0435 \/usr\/share\/kolab-syncroton\/lib\/kolab_sync_data.php<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u043e\u0439, \u0435\u0449\u0435 \u0440\u0430\u0437 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  \u041f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/mail.example.org\/webmail\">mail.example.org\/webmail<\/a><br \/>  \u0410\u0434\u043c\u0438\u043d\u043a\u0430: <a href=\"https:\/\/mail.example.org\/kolab-webadmin\">mail.example.org\/kolab-webadmin<\/a><\/p>\n<p>  \u0412\u044b \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0441 <a href=\"https:\/\/mail.example.org\/\">mail.example.org<\/a> \u043d\u0430 <a href=\"https:\/\/mail.example.org\/webmail\">mail.example.org\/webmail<\/a>  <\/p>\n<pre><code class=\"bash\">sed -i -e 's\/&lt;Directory \\\/&gt;\/&lt;Directory \\\/&gt;\\n    RedirectMatch \\^\\\/$ \\\/webmail\\\/\/g' \/etc\/httpd\/conf\/httpd.conf <\/code><\/pre>\n<p>  <b>\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430: <a href=\"https:\/\/kolab.org\/\">kolab.org<\/a><\/b><\/p>\n<p>  <i>\u0422\u0430\u043a \u0436\u0435 \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0438\u0437\u0432\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Prosody, \u0445\u043e\u0442\u044c \u0438 \u043e\u0431\u0435\u0449\u0430\u043b, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u043d\u0430\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e.<\/i>     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/260527\/\"> http:\/\/habrahabr.ru\/post\/260527\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ee8\/922\/938\/ee892293882e4e2487c48354109305bb.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Kolab, \u0442\u043e \u0432\u044b \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c <a href=\"http:\/\/habrahabr.ru\/post\/260469\/\">\u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e<\/a>, \u0433\u0434\u0435 \u044f \u0434\u0435\u043b\u0430\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u043e\u0431\u0437\u043e\u0440 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435, \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438 \u043a\u0430\u043a\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442.<br \/>  \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-259613","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259613"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259613\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}