{"id":723,"date":"2019-12-31T12:07:52","date_gmt":"2019-12-31T08:07:52","guid":{"rendered":"http:\/\/www.samara-it.ru\/?p=723"},"modified":"2020-01-10T20:48:32","modified_gmt":"2020-01-10T16:48:32","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-%d0%bf%d0%be%d1%87%d1%82%d0%be%d0%b2%d0%be%d0%b3%d0%be-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80%d0%b0-%d0%bd%d0%b0-%d1%81%d0%b2%d1%8f%d0%b7%d0%ba-2","status":"publish","type":"post","link":"https:\/\/www.samara-it.ru\/?p=723","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0441\u0432\u044f\u0437\u043a\u0435 Postfix+Dovecot+MySQL+PostixAdmin+Roundcube \u043d\u0430 Centos 8. \u0427\u0430\u0441\u0442\u044c 2"},"content":{"rendered":"<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c.<\/p>\n<p><strong>1. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Dovecot.<\/strong><\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0440\u0430\u0437\u0431\u0438\u0442 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.<br \/>\n<!--more--><br \/>\n\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 Dovecot \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434:<\/p>\n<p>\/etc\/dovecot<\/p>\n<p><strong>dovecot.conf<\/strong> \u2014 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b Dovecot;<\/p>\n<p>\/etc\/dovecot\/conf.d\/<\/p>\n<p><strong>10-auth.conf<\/strong> \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438;<br \/>\n<strong>10-director.conf<\/strong> \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b Dovecot Director;<br \/>\n<strong>10-logging.conf<\/strong> \u2014 \u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432;<br \/>\n<strong>10-mail.conf<\/strong> \u2014 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d;<br \/>\n<strong>10-master.conf<\/strong> \u2014 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432;<br \/>\n<strong>10-ssl.conf<\/strong> \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b SSL;<br \/>\n<strong>15-lda.conf<\/strong> \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b LDA;<br \/>\n<strong>20-imap.conf<\/strong> \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 IMAP;<br \/>\n<strong>20-lmtp.conf<\/strong> \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 LMTP;<br \/>\n<strong>20-pop3.conf<\/strong> \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 POP3;<br \/>\n<strong>90-acl.conf<\/strong> \u2014 \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u043c \u044f\u0449\u0438\u043a\u0430\u043c;<br \/>\n<strong>90-plugin.conf<\/strong> \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432;<br \/>\n<strong>90-quota.conf<\/strong> \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0432\u043e\u0442;<br \/>\n<strong>auth-*.conf.ext<\/strong> \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439;<\/p>\n<p>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u0430, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439.<\/p>\n<pre class=\"lang:sh decode:true\">mv \/etc\/dovecot\/dovecot.conf \/etc\/dovecot\/dovecot.conf.orig<\/pre>\n<p>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0432 \u043e\u0434\u043d\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0435, \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0434\u0430\u0442\u044c \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c. \u0412\u0441\u044f \u043f\u043e\u0447\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 <span class=\"lang:sh decode:true crayon-inline\">\/opt\/mail\/<\/span>. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u0443 \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u0447\u0442\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043c \u043f\u0440\u0430\u0432\u0430.<\/p>\n<pre class=\"lang:sh decode:true\">groupadd -g 5000 vmail\r\nuseradd -g vmail -u 5000 vmail -d \/opt\/mail -m\r\nchown -R vmail:vmail \/opt\/mail\r\n# chmod 655 \/opt\/mail\/\r\n<\/pre>\n<p>\u0418\u0442\u0430\u043a, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433<\/p>\n<pre class=\"lang:sh decode:true\">nano \/etc\/dovecot\/dovecot.conf<\/pre>\n<p>\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u044d\u0442\u043e:<\/p>\n<pre class=\"lang:sh decode:true \">## \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b Dovecot\r\n\r\n# \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043f\u043e \u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u0441\u0442\u0430\u0440\u0442\u0443 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c:\r\n# http:\/\/wiki2.dovecot.org\/QuickConfiguration\r\n\r\n# \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \"dovecot -n\" \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\r\n# \u044d\u0442\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438\r\n# \u0432 \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438.\r\n\r\n# \u0412\u0441\u0435, \u0447\u0442\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \"#\" \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c. \u041f\u0440\u043e\u0431\u0435\u043b\u044b\r\n# \u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0438 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c\r\n# \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u043e\u043b\u0436\u043d\u044b\u043c\r\n# \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 key = \"# char and trailing whitespace  \"\r\n\r\n# \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\r\n# \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u0441\u0435\u043a\u0446\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, namespaces {})\r\n# \u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0437\u0434\u0435\u0441\u044c \u043e\u043d\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430. \u041f\u0443\u0442\u0438 \u0442\u0430\u043a \u0436\u0435\r\n# \u0437\u0430\u0434\u0430\u043d\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435\r\n# \u0431\u044b\u043b\u0438 \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 ( --prefix=\/usr\/local\r\n# --sysconfdir=\/usr\/local\/etc --localstatedir=\/var )\r\n\r\n# \u0421 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c?\r\n#protocols = imap pop3 sieve\r\nprotocols = imap pop3\r\n\r\n# \u0421\u043f\u0438\u0441\u043e\u043a, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438, IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438\u043b\u0438 \u0438\u043c\u0435\u043d \u0445\u043e\u0441\u0442\u043e\u0432, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0445\r\n# \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \"*\" - \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u043e \u0432\u0441\u0435\u0445\r\n# \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 IPv4. \"[::]\" - \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u043e \u0432\u0441\u0435\u0445\r\n# \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 IPv6. \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \"*, [::]\", \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\r\n# \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443.\r\n# \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0442\u043e \u043f\u0440\u0430\u0432\u0442\u0435\r\n# \u0444\u0430\u0439\u043b conf.d\/master.conf.\r\nlisten = *\r\n\r\n# \u0414\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 Dovecot.\r\nbase_dir = \/var\/run\/dovecot\/\r\n\r\n# \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.\r\nlogin_greeting = POP3\/IMAP server ready.\r\n\r\n# \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 (\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f\r\n# \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 ps). \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\r\n# \u0438 IP \u0430\u0434\u0440\u0435\u0441. \u041f\u043e\u043b\u0435\u0437\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c \u043a\u043e\u0433\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442\r\n# IMAP \u043f\u0440\u043e\u0446\u0435\u0441\u0441.\r\nverbose_proctitle = no\r\n\r\n# \u041f\u0440\u0438\u0431\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Dovecot.\r\n# \u041f\u0440\u0438 \"no\" \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u0439\r\n# \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d (\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0433\u0434\u0430\r\n# \u0431\u044b\u043b\u0430 \u0432\u044b\u043f\u0443\u0449\u0435\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u0441\u044f\u043a\u0430\u043c\u0438 \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438).\r\n# \u041e\u0434\u043d\u0430\u043a\u043e, \u043a\u043e\u0433\u0434\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d, \u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0435\r\n# \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043d\u0435 \u0441\u043c\u043e\u0433\u0443\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b\u044b.\r\nshutdown_clients = yes\r\n\r\n##\r\n## \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438\r\n##\r\n\r\n# \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 LOGIN \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c,\r\n# \u0435\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 SSL\/TLS. \u0422\u043e\u043b\u044c\u043a\u043e\r\n# \u0443\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.\r\ndisable_plaintext_auth = yes\r\n\r\n# \u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0432 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u0430\u0445. 0 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043a\u044d\u0448 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d. \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e bsdauth,\r\n# PAM \u0438 vpopmail \u0442\u0440\u0435\u0431\u0443\u044e\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 cache_key \u0431\u044b\u043b \u0437\u0430\u0434\u0430\u043d, \u0447\u0442\u043e\u0431\u044b\r\n# \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.\r\nauth_cache_size = 0\r\n\r\n# \u0421\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0438\u043c\u0435\u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435\r\n# \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043c\u0435\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043d\u0435 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430, \u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\r\n# \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043e\u0442\u043b\u0443\u043f. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043b\u0430\u0442\u044c\r\n# \u043b\u0435\u0441\u043e\u043c \u0431\u043e\u0442\u043e\u0432, \u043d\u0443 \u0438 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445\r\n# \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u043a SQL\/LDAP. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0442\u043e\r\n# \u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u043f\u0443\u0441\u0442\u044b\u043c.\r\nauth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@\r\n\r\n# \u0424\u043e\u0440\u043c\u0430\u0442 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u043c \u0432 \u0411\u0414. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435\r\n# \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, %Lu\r\n# \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440, %n - \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0434\u043e\u043c\u0435\u043d, \u0435\u0441\u043b\u0438\r\n# \u043e\u043d \u0437\u0430\u0434\u0430\u043d, \u0438\u043b\u0438 \"%n-AT-%d\" - \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b '@' \u043d\u0430 '-AT-'. \u042d\u0442\u043e\r\n# \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 auth_username_translation.\r\nauth_username_format = %Lu\r\n\r\n# \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.\r\n# \u042d\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.\r\nauth_worker_max_count = 20\r\n\r\n# \u0421\u043f\u0438\u0441\u043e\u043a, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438:\r\n#   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey\r\n#   gss-spnego\r\n# \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 disable_plaintext_auth.\r\nauth_mechanisms = plain login cram-md5\r\n\r\n##\r\n## \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439\r\n##\r\n\r\n#\r\n# \u0411\u0414 \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u0431\u043e\u043b\u0435\u0435).\r\n# \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0411\u0414 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 (passdbs) \u0438\r\n# \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (userdbs). \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\r\n# \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u0447\u0442\u043e\u0431\u044b\r\n# \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0432 \u0431\u0430\u0437\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445.\r\n# &lt;doc\/wiki\/PasswordDatabase.txt&gt;\r\n#\r\n# \u0411\u0414 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0430 \u0438 \u043a\u0430\u043a\u043e\u043c\u0443\r\n# \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e\/\u0433\u0440\u0443\u043f\u043f\u0435 \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442. \u041f\u0440\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\r\n# single-UID \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \"static\".\r\n#\r\n# &lt;doc\/wiki\/UserDatabase.txt&gt;\r\n#\r\n# \u0442\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043a DB \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0431\u0430\u0437\u0435\r\n# \/etc\/dovecot\/dovecot-mysql.conf\r\n\r\npassdb {\r\n  args = \/etc\/dovecot\/dovecot-mysql.conf\r\n  driver = sql\r\n}\r\nuserdb {\r\n  args = \/etc\/dovecot\/dovecot-mysql.conf\r\n  driver = sql\r\n}\r\n\r\n##\r\n## \u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b\u043e\u0432.\r\n##\r\n\r\n# \u0424\u0430\u0439\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445.\r\n# \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \"syslog\", \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0432 syslog.\r\n# \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \/dev\/stderr, \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0432  stderr.\r\n#log_path = \/var\/log\/dovecot\/dovecot.log\r\nlog_path = syslog\r\n\r\n# \u041f\u0438\u0441\u0430\u0442\u044c \u0432 \u043b\u043e\u0433 \u043e \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0432\u0445\u043e\u0434\u0430 \u0438 \u0438\u0445 \u043f\u0440\u0438\u0447\u0438\u043d\u0443.\r\nauth_verbose = yes\r\n\r\n# \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0435\u0432\u0435\u0440\u0435\u043d, \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u043b\u043e\u0433 \u043f\u0430\u0440\u043e\u043b\u044c.\r\n# \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: no, plain \u0438 sha1. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 sha1 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\r\n# \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439\r\nauth_verbose_passwords = no\r\n\r\n# \u0412\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u043b\u043e\u0433. \u0422\u0430\u043a \u0436\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f\r\n# \u0437\u0430\u043f\u0440\u043e\u0441\u044b SQL.\r\n#auth_debug = no\r\n\r\n# \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043b\u043e\u0433 \u043f\u0430\u0440\u043e\u043b\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0443\u044e\r\n# \u0441\u0445\u0435\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438. \u041f\u0435\u0440\u0435\u0434 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c\r\n# \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435 auth_debug.\r\n#auth_debug_passwords = no\r\n\r\n# \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c,\r\n# \u043f\u043e\u0447\u0435\u043c\u0443 Dovecot \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0432\u0430\u0448\u0438 \u043f\u0438\u0441\u044c\u043c\u0430.\r\n#mail_debug = no\r\n\r\n# \u0412\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u043d\u0444\u0443 \u043f\u0440\u043e SSL \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u0445 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445.\r\n#verbose_ssl = no\r\n\r\n##\r\n## \u0424\u043e\u0440\u043c\u0430\u0442 \u043b\u043e\u0433 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.\r\n##\r\n\r\n# \u041f\u0440\u0435\u0444\u0438\u043a\u0441 \u0434\u043b\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0444\u043e\u0440\u043c\u0430\u0442 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u043c\u0430\u043d\u0435 \u043f\u043e strftime(3).\r\n#log_timestamp = \"%b %d %H:%M:%S \"\r\n\r\n# \u0421\u043f\u0438\u0441\u043e\u043a, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c.\r\n# \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0442\u044c\u0441\u044f\r\n# \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043f\u044f\u0442\u043e\u0439.\r\n#login_log_format_elements = user=&lt;%u&gt; method=%m rip=%r lip=%l mpid=%e %c\r\n\r\n# \u0424\u043e\u0440\u043c\u0430\u0442 \u043b\u043e\u0433\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439. %$ \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 login_log_format_elements,\r\n# %s \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435.\r\n#login_log_format = %$: %s\r\n\r\n# \u041f\u0440\u0435\u0444\u0438\u043a\u0441 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b. \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435\r\n# &lt;doc\/wiki\/Variables.txt&gt;, \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u0442\u044c - \u043a\u0430\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0437\u0434\u0435\u0441\u044c\r\n# \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b.\r\n#mail_log_prefix = \"%s(%u): \"\r\n\r\n# \u0424\u043e\u0440\u043c\u0430\u0442 \u043b\u043e\u0433 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0434\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u043f\u0438\u0441\u0435\u043c. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:\r\n#  %$ - \u0441\u0442\u0430\u0442\u0443\u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 (e.g. \"saved to INBOX\")\r\n#  %m - Message-ID\r\n#  %s - \u0442\u0435\u043c\u0430\r\n#  %f - \u043e\u0442 \u043a\u043e\u0433\u043e\r\n#  %p - \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440\r\n#  %w - \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440\r\n#deliver_log_format = msgid=%m: %$\r\n\r\n##\r\n## \u041f\u0443\u0442\u0438 \u043a \u044f\u0449\u0438\u043a\u0430\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d\r\n##\r\n\r\n# \u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u0430,\r\n# \u043f\u043e\u044d\u0442\u043e\u043c\u0443 Dovecot \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u044f\u0449\u0438\u043a\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.\r\n# \u042d\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430,\r\n# \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440.\r\n#\r\n# \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 mbox, \u0442\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430\r\n# (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \/var\/mail\/%u) \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b\r\n# \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Dovecot,\u0443, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u044f\u0449\u0438\u043a\u0438.\r\n# \u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \"root mail directory (\u043a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u043f\u043e\u0447\u0442\u044b)\" \u0438 \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430\r\n# \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 mail_location.\r\n#\r\n#  \u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:\r\n#\r\n#   %u - \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\r\n#   %n - \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u0434\u043e\u043c\u0435\u043d\u0430\r\n#   %d - \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430 (\u043f\u0443\u0441\u0442\u043e, \u0435\u0441\u043b\u0438 \u0434\u043e\u043c\u0435\u043d \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d)\r\n#   %h - \u0434\u043e\u043c\u0430\u0448\u043d\u044f\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\r\n#\r\n# \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c - &lt;doc\/wiki\/Variables.txt&gt;. \u041f\u0440\u0438\u043c\u0435\u0440\u044b:\r\n#\r\n#   mail_location = maildir:~\/Maildir\r\n#   mail_location = mbox:~\/mail:INBOX=\/var\/mail\/%u\r\n#   mail_location = mbox:\/var\/mail\/%d\/%1n\/%n:INDEX=\/var\/indexes\/%d\/%1n\/%n\r\n#\r\n# &lt;doc\/wiki\/MailLocation.txt&gt;\r\n#\r\nmail_home = \/opt\/mail\/%d\/%n\r\nmail_location = maildir:~\/\r\n\r\n# \u0413\u0440\u0443\u043f\u043f\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0438\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442\r\n# \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441 INBOX, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043b\u0438\r\n# \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 (dotlock). \u041e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0433\u0440\u0443\u043f\u043f\u0430 \"mail\" \u0434\u043b\u044f\r\n# \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \/var\/mail.\r\nmail_privileged_group = mail\r\n\r\n##\r\n## \u041f\u0440\u043e\u0446\u0435\u0441\u0441, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0441 \u043f\u0438\u0441\u044c\u043c\u0430\u043c\u0438\r\n##\r\n\r\n# \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 mmap(). \u0422\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\r\n# \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439\r\n# \u0424\u0421 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, NFS \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u0430\u044f \u0424\u0421).\r\nmmap_disable = yes\r\n\r\n# \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b UID \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0442 500 \u0438 \u0432\u044b\u0448\u0435.\r\n# \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u043d\u0438\u0436\u0435\/\u0432\u044b\u0448\u0435\r\n# \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e. \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0440\u0443\u0442\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u043e\u0434\u0430.\r\nfirst_valid_uid = 5000\r\n#last_valid_uid = 0\r\n\r\n# \u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f. \u0415\u0441\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430\r\n# \u0441 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c, \u0432\u044b\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0438\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430, \u0442\u043e \u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\r\n# \u0442\u0430\u043a\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u0430\u0437\u0430\u043d\u043e.\r\nfirst_valid_gid = 5000\r\n#last_valid_gid = 0\r\n\r\n# \u041f\u0443\u0442\u044c \u043a UNIX \u0441\u043e\u043a\u0435\u0442\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.\r\n# \u0421\u043e\u043a\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f imap (for shared users) \u0438 lda.\r\nauth_socket_path = \/var\/run\/dovecot\/auth-userdb\r\n\r\n# \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b\r\n# \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b. \u041f\u043b\u0430\u0433\u0438\u043d\u044b \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0434\u043b\u044f IMAP, LDA  \u0438 \u0442.\u043f.\r\n# \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 (\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445) \u0444\u0430\u0439\u043b\u0430\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.\r\nmail_plugins = $mail_plugins quota\r\n\r\ndefault_process_limit = 100\r\ndefault_client_limit = 1000\r\n\r\nservice imap-login {\r\n  inet_listener imap {\r\n    port = 143\r\n  }\r\n  inet_listener imaps {\r\n    port = 993\r\n    ssl = yes\r\n  }\r\n\r\n  # \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u043f\u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\r\n  # \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 0 (\u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439) \u0438\u043b\u0438 1.\r\n  # \u041f\u043e\u0434\u0445\u043e\u0434 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 1 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c, \u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c\r\n  # \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 0. &lt;doc\/wiki\/LoginProcess.txt&gt;\r\n  service_count = 1\r\n\r\n  # \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u0436\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.\r\n  process_min_avail = 3\r\n\r\n  # \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 service_count=0, \u0442\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435.\r\n  vsz_limit = 64M\r\n}\r\n\r\nservice pop3-login {\r\n  inet_listener pop3 {\r\n    port = 110\r\n  }\r\n  inet_listener pop3s {\r\n    port = 995\r\n    ssl = yes\r\n  }\r\n  # \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u043f\u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\r\n  # \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 0 (\u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439) \u0438\u043b\u0438 1.\r\n  # \u041f\u043e\u0434\u0445\u043e\u0434 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 1 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c, \u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c\r\n  # \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 0. &lt;doc\/wiki\/LoginProcess.txt&gt;\r\n  service_count = 1\r\n\r\n  # \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u0436\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.\r\n  process_min_avail = 3\r\n\r\n  # \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 service_count=0, \u0442\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435.\r\n  vsz_limit = 64M\r\n\r\n}\r\n\r\nservice auth {\r\n  # auth_socket_path \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Unix \u0441\u043e\u043a\u0435\u0442\u0430. \u041e\u043d \u043c\u043e\u0436\u0435\u0442\r\n  # \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f dovecot-lda, doveadm, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 imap process \u0438 \u0442.\u0434.\r\n  # \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c root \u0438\u043c\u0435\u0435\u0442 \u043a \u043d\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f, \u043f\u0440\u0438\u0447\u0435\u043c\r\n  # \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u043d\u043e \u0432\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430\r\n  # \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a Unix \u0441\u043e\u043a\u0435\u0442\u0443. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u043e\u043a\u0435\u0442\u0443\r\n  # \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435,\r\n  # \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.\r\n  unix_listener auth-userdb {\r\n    mode = 0600\r\n    user = vmail\r\n    group = vmail\r\n  }\r\n\r\n  unix_listener auth-master {\r\n    mode = 0600\r\n    user = vmail\r\n    group = vmail\r\n  }\r\n\r\n  unix_listener \/var\/spool\/postfix\/private\/auth {\r\n      mode = 0660\r\n      # Assuming the default Postfix user and group\r\n      user = postfix\r\n      group = postfix\r\n  }\r\n\r\n  # \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.\r\n  # user = $default_internal_user\r\n}\r\n\r\n##\r\n## \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b SSL\r\n##\r\n\r\n# \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SSL\/TLS: yes, no, required. &lt;doc\/wiki\/SSL.txt&gt;\r\n# SSL\/TLS \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0431\u0435\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e\r\n# \u0442\u0435\u043a\u0441\u0442\u0430. \u041b\u044e\u0431\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f SSL\/TLS \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u0441\u0431\u043e\u044e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.\r\nssl = required\r\n\r\n# \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 X.509 SSL\/TLS. \u0424\u0430\u0439\u043b\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c,\r\n# \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 root, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\r\n# \u0434\u043b\u044f \u0432\u0441\u0435\u0445, \u043a\u0440\u043e\u043c\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root. \u0412 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0441\u043a\u0440\u0438\u043f\u0442 (doc\/mkcert.sh),\r\n# \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442 \u0432\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432.\r\nssl_cert = &lt;\/etc\/pki\/tls\/certs\/fullchain.pem\r\nssl_key = &lt;\/etc\/pki\/tls\/private\/privkey.pem\r\n\r\nssl_protocols = TLSv1.1 TLSv1.2\r\n\r\n# \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u044b SSL\r\nssl_cipher_list = ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256\r\n\r\n##\r\n## \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b LDA (\u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f LMTP)\r\n##\r\n\r\n# \u0410\u0434\u0440\u0435\u0441, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043d\u044b\u0445 \u043f\u0438\u0441\u0435\u043c.\r\n# \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e postmaster@example.com.\r\npostmaster_address = postmaster@samara-it.ru\r\n\r\nprotocol lda {\r\n  # \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438\r\n  # (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 mail_plugins).\r\n#  mail_plugins = $mail_plugins sieve \r\n  mail_plugins = $mail_plugins\r\n}\r\n\r\n##\r\n## \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b IMAP\r\n##\r\n\r\nprotocol imap {\r\n\r\n  # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043e\u0434\u043d\u043e\u0433\u043e IP \u0430\u0434\u0440\u0435\u0441\u0430.\r\n  # \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0432 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0431\u0443\u043a\u0432.\r\n  mail_max_userip_connections = 5\r\n\r\n  # \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438\r\n  # (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 mail_plugins).\r\n  mail_plugins = $mail_plugins imap_quota\r\n\r\n}\r\n\r\n##\r\n## \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b POP3\r\n##\r\n\r\nprotocol pop3 {\r\n\r\n  # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c POP3 UIDL (\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0438\u0441\u044c\u043c\u0430).\r\n  # \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u043c\u0438\r\n  # \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 &lt;doc\/wiki\/Variables.txt&gt; (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, %Uf \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u044c,\r\n  # \u0447\u0442\u043e \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435).\r\n  #\r\n  #  %v - Mailbox's IMAP UIDVALIDITY\r\n  #  %u - Mail's IMAP UID\r\n  #  %m - \u0445\u044d\u0448 MD5 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u044f\u0449\u0438\u043a\u0430 \u0432 hex (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f mbox)\r\n  #  %f - \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 (\u0442\u043e\u043b\u044c\u043a\u043e maildir)\r\n  #  %g - Mail's GUID\r\n  #\r\n  # \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 ,\u0447\u0442\u043e\u0431\u044b UIDL \u0431\u044b\u043b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 POP3 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438,\r\n  # \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:\r\n  #  UW's ipop3d         : %08Xv%08Xu\r\n  #  Courier             : %f or %v-%u (both might be used simultaneosly)\r\n  #  Cyrus (&lt;= 2.1.3)    : %u\r\n  #  Cyrus (&gt;= 2.1.4)    : %v.%u\r\n  #  Dovecot v0.99.x     : %v.%u\r\n  #  tpop3d              : %Mf\r\n  #\r\n  # \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e Outlook 2003 \u043a\u0440\u0438\u0432\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u043c %v.%u, \u043a\u043e\u0442\u043e\u0440\u044b\u0439\r\n  # \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e  \u0434\u043b\u044f Dovecot, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b\r\n  # \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\r\n  # \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440. \u0424\u043e\u0440\u043c\u0430\u0442 %08Xu%08Xv \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u0443\u0434\u0430\u0447\u043d\u044b\u043c.\r\n  #\r\n  pop3_uidl_format = %08Xu%08Xv\r\n\r\n  # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043e\u0434\u043d\u043e\u0433\u043e IP \u0430\u0434\u0440\u0435\u0441\u0430.\r\n  # \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0432 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0431\u0443\u043a\u0432.\r\n  mail_max_userip_connections = 5\r\n\r\n\r\n  # \u0425\u0430\u043a\u0438 \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u0436\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432:\r\n  #   outlook-no-nuls:\r\n  #     Outlook \u0438 Outlook Express \u043e\u0442\u0443\u043f\u043b\u044f\u044e\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u0438\u0441\u044c\u043c\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\r\n  #     \u0441\u0438\u043c\u0432\u043e\u043b\u044b NUL. \u0421 \u044d\u0442\u0438\u043c \u0445\u0430\u043a\u043e\u043c \u0442\u0430\u043a\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430\r\n  #     \u0441\u0438\u043c\u0432\u043e\u043b 0x80.\r\n  #   oe-ns-eoh:\r\n  #     Outlook Express \u0438 Netscape Mail \u0442\u0443\u043f\u044f\u0442, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435\r\n  #     \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445. \u0421 \u044d\u0442\u0438\u043c \u0445\u0430\u043a\u043e\u043c \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043c\u043e\u0435.\r\n  #\r\n  # \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438.\r\n  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh\r\n}\r\n\r\n##\r\n## \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b ManageSieve\r\n##\r\n\r\n#service managesieve-login {\r\n#  inet_listener sieve {\r\n#    port = 4190\r\n#  }\r\n#\r\n#  # \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u043f\u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\r\n#  # \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 0 (\u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439) \u0438\u043b\u0438 1.\r\n#  # \u041f\u043e\u0434\u0445\u043e\u0434 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 1 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c, \u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c\r\n#  # \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 0. &lt;doc\/wiki\/LoginProcess.txt&gt;\r\n#  service_count = 0\r\n#}\r\n\r\nplugin {\r\n  autocreate = Sent\r\n  autocreate2 = Trash\r\n  autocreate3 = Spam\r\n  autocreate4 = Drafts\r\n  autosubscribe = Sent\r\n  autosubscribe2 = Trash\r\n  autosubscribe3 = Spam\r\n  autosubscribe4 = Drafts\r\n#  quota = maildir:storage=n\r\n#  sieve = \/var\/mail\/%n\/home\/.dovecot.sieve\r\n#  sieve_dir = \/opt\/mail\/%d\/%n\/.dovecot.sieve\r\n}\r\n<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043a MySQL<\/p>\n<pre class=\"lang:sh decode:true\">nano \/etc\/dovecot\/dovecot-mysql.conf<\/pre>\n<p>\u0438 \u0432\u043d\u043e\u0441\u0438\u043c \u044d\u0442\u043e:<\/p>\n<pre class=\"lang:sh decode:true\"># \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445: mysql, pgsql, sqlite\r\ndriver = mysql\r\n\r\n# \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u0421\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430.\r\n#\r\n# HA \/ round-robin load-balancing is supported by giving multiple host\r\n# settings, like: host=sql1.host.org host=sql2.host.org\r\n#\r\n# pgsql:\r\n#   \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e PostgreSQL \u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 PQconnectdb\r\n#   \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 maxconns=n (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 5)\r\n#   \u0434\u043b\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 Dovecot \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.\r\n#\r\n# mysql:\r\n#   \u0418\u043c\u0435\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b PostgreSQL:\r\n#     host, port, user, password, dbname\r\n#\r\n#   \u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:\r\n#     client_flags        - \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e MySQL\r\n#     ssl_ca, ssl_ca_path - \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u043e\u0434\u043d\u0443 \u0438\u043b\u0438 \u0434\u0432\u0435 \u043e\u043f\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c SSL\r\n#     ssl_cert, ssl_key   - \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\r\n#     ssl_cipher          - \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0448\u0438\u0444\u0440\u0430 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: HIGH)\r\n#     option_file         - \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 (\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u0434\u0435\u0441\u044c) \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430\r\n#                            MySQL, \u0432\u043c\u0435\u0441\u0442\u043e \u0444\u0430\u0439\u043b\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e - my.cnf.\r\n#     option_group        - \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0437 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: client)\r\n#\r\n#   \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 host \u043f\u0443\u0442\u044c \u043a Unix \u0441\u043e\u043a\u0435\u0442\u0443: host=\/var\/run\/mysql.sock\r\n#   \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445.\r\n#\r\n# sqlite:\r\n#   \u041f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\r\n#\r\n# \u041f\u0440\u0438\u043c\u0435\u0440\u044b:\r\n#   connect = host=192.168.1.1 dbname=users\r\n#   connect = host=sql.example.com dbname=virtual user=virtual password=blarg\r\n#   connect = \/etc\/dovecot\/authdb.sqlite\r\n#\r\nconnect = host=localhost dbname=mail_db user=user_db password=My$upperPa$$word\r\n\r\n# \u0424\u043e\u0440\u043c\u0430\u0442 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.\r\n#\r\n# \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u0445\u0435\u043c \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c:\r\n# http:\/\/wiki2.dovecot.org\/Authentication\/PasswordSchemes\r\n#\r\ndefault_pass_scheme = MD5-CRYPT\r\n\r\n# \u0417\u0430\u043f\u0440\u043e\u0441 passdb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044c. \u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f:\r\n#   password - \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u042d\u0442\u043e \u043f\u043e\u043b\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.\r\n#   user - \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 user@domain.\r\n#   username \u0438 domain - \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0443\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044f \"user\".\r\n#\r\n# \u041f\u043e\u043b\u0435 \"user\" \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c\r\n# \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 (\u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432), \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\r\n# \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0440\u0430\u0437\u043d\u043e\u043c\u0443: \"name\" \u0438 \"nAme\". \u0415\u0441\u043b\u0438 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\r\n# \u0438 \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u0445, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043e\u043b\u043e\u043d\u043a\u0438\r\n# \"username\" \u0438 \"domain\" \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0434\u043d\u043e\u0439 \"user\".\r\n#\r\n# \u0422\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0441\u0432\u043e\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435,\r\n# \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u0437\u0434\u0435\u0441\u044c:\r\n# http:\/\/wiki2.dovecot.org\/PasswordDatabase\/ExtraFields\r\n#\r\n# \u041f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e: (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a\r\n# \u0437\u0434\u0435\u0441\u044c - http:\/\/wiki2.dovecot.org\/Variables):\r\n#   %u = entire user@domain\r\n#   %n = user part of user@domain\r\n#   %d = domain part of user@domain\r\n#\r\n# \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 SQL \u0437\u0430\u043f\u0440\u043e\u0441\u0435. \u0415\u0441\u043b\u0438\r\n# \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043b\u044e\u0431\u0443\u044e \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.\r\n# \u0418\u043d\u0430\u0447\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c\r\n# \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0431\u044b \u0441\u0438\u043c\u0432\u043e\u043b '%'.\r\n#\r\n# \u041f\u0440\u0438\u043c\u0435\u0440:\r\n#   password_query = SELECT userid AS user, pw AS password \\\r\n#     FROM users WHERE userid = '%u' AND active = 'Y'\r\n#\r\npassword_query = SELECT `username` as `user`, `password` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'\r\n\r\n# \u0417\u0430\u043f\u0440\u043e\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435. \u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c:\r\n#   uid - System UID (overrides mail_uid setting)\r\n#   gid - System GID (overrides mail_gid setting)\r\n#   home - Home directory\r\n#   mail - Mail location (overrides mail_location setting)\r\n#\r\n# \u041d\u0438 \u043e\u0434\u043d\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\r\n# \u0432\u0435\u0437\u0434\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 UID \u0438 GID, \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0443 \u0432\u0430\u0441 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e\r\n# home \u0438\u043b\u0438 mail, \u0442\u043e \u0432\u0430\u043c \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c userdb static.\r\n# \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c:\r\n# http:\/\/wiki2.dovecot.org\/UserDatabase\/ExtraFields\r\n#\r\n# \u041f\u0440\u0438\u043c\u0435\u0440\u044b:\r\n#   user_query = SELECT home, uid, gid FROM users WHERE userid = '%u'\r\n#   user_query = SELECT dir AS home, user AS uid, group AS gid FROM users where userid = '%u'\r\n#   user_query = SELECT home, 501 AS uid, 501 AS gid FROM users WHERE userid = '%u'\r\n#\r\nuser_query = SELECT username AS user, '5000' AS uid, '5000' AS gid FROM mailbox WHERE username = '%u' AND domain = '%d' AND active = '1'\r\n\r\n<\/pre>\n<p><strong>2. \u0423\u0434\u0430\u043b\u044f\u0435\u043c exim \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c postfix<\/strong><\/p>\n<pre class=\"lang:sh decode:true \">dnf remove exim -y\r\ndnf install postfix mailx postfix-mysql -y<\/pre>\n<p><strong>3. \u0417\u0430\u043f\u0443\u0441\u043a Dovecot \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/strong><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0435 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/p>\n<pre class=\"lang:sh decode:true\">systemctl start dovecot.service\r\nsystemctl enable dovecot.service<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0442\u043e \u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043b\u043e\u0433\u0438 \u0438 \u0432\u044b\u0432\u043e\u0434 <span class=\"lang:sh decode:true crayon-inline \">systemctl status dovecot.service<\/span><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c<\/p>\n<pre class=\"lang:sh decode:true\">netstat -ltupen | grep dovecot\r\ntcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      0          147689     24705\/dovecot\r\ntcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      0          147725     24705\/dovecot\r\ntcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      0          147726     24705\/dovecot\r\ntcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      0          147690     24705\/dovecot\r\n<\/pre>\n<p><strong>4. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 postfix<\/strong><\/p>\n<p>\u0412\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 main.cf \u0438 master.cf. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0438\u0445 \u0431\u044d\u043a\u0430\u043f \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0430\u0432\u043a\u043e\u0439.<\/p>\n<pre class=\"lang:sh decode:true\">cp \/etc\/postfix\/main.cf \/etc\/postfix\/main.cf.orig\r\ncp \/etc\/postfix\/master.cf \/etc\/postfix\/master.cf.orig\r\n<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b postfix \u0441 \u0431\u0430\u0437\u043e\u0439 MySQL, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0442\u0430\u043c \u0444\u0430\u0439\u043b\u044b:<\/p>\n<pre class=\"lang:sh decode:true\">mkdir \/etc\/postfix\/mysql\r\ntouch \/etc\/postfix\/mysql\/relay_domains.cf\r\ntouch \/etc\/postfix\/mysql\/virtual_alias_domain_maps.cf\r\ntouch \/etc\/postfix\/mysql\/virtual_alias_maps.cf\r\ntouch \/etc\/postfix\/mysql\/virtual_mailbox_domains.cf\r\ntouch \/etc\/postfix\/mysql\/virtual_mailbox_maps.cf\r\n<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<pre class=\"lang:sh mark:1,10,19,28,37 decode:true\">nano \/etc\/postfix\/mysql\/relay_domains.cf\r\n\r\nhosts = localhost\r\nuser = user_db\r\npassword = My$upperPa$$word\r\ndbname = mail_db\r\nquery = SELECT domain FROM domain WHERE domain='%s' and backupmx = '1'\r\n\r\n\r\nnano \/etc\/postfix\/mysql\/virtual_alias_domain_maps.cf\r\n\r\nhosts = localhost\r\nuser = user_db\r\npassword = My$upperPa$$word\r\ndbname = mail_db\r\nquery = SELECT goto FROM alias,alias_domain WHERE alias_domain.alias_domain = '%d' and alias.address = CONCAT('%u', '@', alias_domain.target_domain) AND alias.active = 1\r\n\r\n\r\nnano \/etc\/postfix\/mysql\/virtual_alias_maps.cf\r\n\r\nhosts = localhost\r\nuser = user_db\r\npassword = My$upperPa$$word\r\ndbname = mail_db\r\nquery = SELECT goto FROM alias WHERE address='%s' AND active = '1'\r\n\r\n\r\nnano \/etc\/postfix\/mysql\/virtual_mailbox_domains.cf\r\n\r\nhosts = localhost\r\nuser = user_db\r\npassword = My$upperPa$$word\r\ndbname = mail_db\r\nquery = SELECT domain FROM domain WHERE domain='%s' AND backupmx = '0' AND active = '1'\r\n\r\n\r\nnano \/etc\/postfix\/mysql\/virtual_mailbox_maps.cf\r\n\r\nhosts = localhost\r\nuser = user_db\r\npassword = My$upperPa$$word\r\ndbname = mail_db\r\nquery = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1'\r\n<\/pre>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 main.cf \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u044d\u0442\u043e:<\/p>\n<pre class=\"lang:sh decode:true\"># Global Postfix configuration file. This file lists only a subset\r\n# of all parameters. For the syntax, and for a complete parameter\r\n# list, see the postconf(5) manual page (command: \"man 5 postconf\").\r\n#\r\n# For common configuration examples, see BASIC_CONFIGURATION_README\r\n# and STANDARD_CONFIGURATION_README. To find these documents, use\r\n# the command \"postconf html_directory readme_directory\", or go to\r\n# http:\/\/www.postfix.org\/.\r\n#\r\n# For best results, change no more than 2-3 parameters at a time,\r\n# and test if Postfix still works after every change.\r\n\r\n# SOFT BOUNCE\r\n#\r\n# The soft_bounce parameter provides a limited safety net for\r\n# testing.  When soft_bounce is enabled, mail will remain queued that\r\n# would otherwise bounce. This parameter disables locally-generated\r\n# bounces, and prevents the SMTP server from rejecting mail permanently\r\n# (by changing 5xx replies into 4xx replies). However, soft_bounce\r\n# is no cure for address rewriting mistakes or mail routing mistakes.\r\n#\r\nsoft_bounce = no\r\n\r\n# LOCAL PATHNAME INFORMATION\r\n#\r\n# The queue_directory specifies the location of the Postfix queue.\r\n# This is also the root directory of Postfix daemons that run chrooted.\r\n# See the files in examples\/chroot-setup for setting up Postfix chroot\r\n# environments on different UNIX systems.\r\n#\r\nqueue_directory = \/var\/spool\/postfix\r\n\r\n# The command_directory parameter specifies the location of all\r\n# postXXX commands.\r\n#\r\ncommand_directory = \/usr\/sbin\r\n\r\n# The daemon_directory parameter specifies the location of all Postfix\r\n# daemon programs (i.e. programs listed in the master.cf file). This\r\n# directory must be owned by root.\r\n#\r\ndaemon_directory = \/usr\/libexec\/postfix\r\n\r\n# The data_directory parameter specifies the location of Postfix-writable\r\n# data files (caches, random numbers). This directory must be owned\r\n# by the mail_owner account (see below).\r\n#\r\ndata_directory = \/var\/lib\/postfix\r\n\r\n# QUEUE AND PROCESS OWNERSHIP\r\n#\r\n# The mail_owner parameter specifies the owner of the Postfix queue\r\n# and of most Postfix daemon processes.  Specify the name of a user\r\n# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS\r\n# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In\r\n# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED\r\n# USER.\r\n#\r\nmail_owner = postfix\r\n\r\n# The default_privs parameter specifies the default rights used by\r\n# the local delivery agent for delivery to external file or command.\r\n# These rights are used in the absence of a recipient user context.\r\n# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.\r\n#\r\n#default_privs = nobody\r\n\r\n# INTERNET HOST AND DOMAIN NAMES\r\n# \r\n# The myhostname parameter specifies the internet hostname of this\r\n# mail system. The default is to use the fully-qualified domain name\r\n# from gethostname(). $myhostname is used as a default value for many\r\n# other configuration parameters.\r\n#\r\n#myhostname = host.domain.tld\r\nmyhostname = mail.samara-it.ru\r\n\r\n# The mydomain parameter specifies the local internet domain name.\r\n# The default is to use $myhostname minus the first component.\r\n# $mydomain is used as a default value for many other configuration\r\n# parameters.\r\n#\r\nmydomain = samara-it.ru\r\n\r\n# SENDING MAIL\r\n# \r\n# The myorigin parameter specifies the domain that locally-posted\r\n# mail appears to come from. The default is to append $myhostname,\r\n# which is fine for small sites.  If you run a domain with multiple\r\n# machines, you should (1) change this to $mydomain and (2) set up\r\n# a domain-wide alias database that aliases each user to\r\n# user@that.users.mailhost.\r\n#\r\n# For the sake of consistency between sender and recipient addresses,\r\n# myorigin also specifies the default domain name that is appended\r\n# to recipient addresses that have no @domain part.\r\n#\r\n# \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a \u0430\u0434\u0440\u0435\u0441\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f, \u0435\u0441\u043b\u0438 \u043e\u043d \u0443\u043a\u0430\u0437\u0430\u043d \u043d\u0435 \r\n# \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 root. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 myorigin \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u043e, \u0442\u043e \u043f\u043e \r\n# \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 myhostname, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \r\n# \u0430\u0434\u0440\u0435\u0441 root \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0432 root@mail.samara-it.ru.\r\n#\r\n#myorigin = $myhostname\r\nmyorigin = $mydomain\r\n\r\n# RECEIVING MAIL\r\n\r\n# The inet_interfaces parameter specifies the network interface\r\n# addresses that this mail system receives mail on.  By default,\r\n# the software claims all active interfaces on the machine. The\r\n# parameter also controls delivery of mail to user@[ip.address].\r\n#\r\n# See also the proxy_interfaces parameter, for network addresses that\r\n# are forwarded to us via a proxy or network address translator.\r\n#\r\n# Note: you need to stop\/start Postfix when this parameter changes.\r\n#\r\ninet_interfaces = all\r\n#inet_interfaces = $myhostname\r\n#inet_interfaces = $myhostname, localhost\r\n#inet_interfaces = localhost\r\n\r\n# Enable IPv4, and IPv6 if supported\r\ninet_protocols = ipv4\r\n\r\n# The proxy_interfaces parameter specifies the network interface\r\n# addresses that this mail system receives mail on by way of a\r\n# proxy or network address translation unit. This setting extends\r\n# the address list specified with the inet_interfaces parameter.\r\n#\r\n# You must specify your proxy\/NAT addresses when your system is a\r\n# backup MX host for other domains, otherwise mail delivery loops\r\n# will happen when the primary MX host is down.\r\n#\r\n#proxy_interfaces =\r\n#proxy_interfaces = 1.2.3.4\r\n\r\n# The mydestination parameter specifies the list of domains that this\r\n# machine considers itself the final destination for.\r\n#\r\n# These domains are routed to the delivery agent specified with the\r\n# local_transport parameter setting. By default, that is the UNIX\r\n# compatible delivery agent that lookups all recipients in \/etc\/passwd\r\n# and \/etc\/aliases or their equivalent.\r\n#\r\n# The default is $myhostname + localhost.$mydomain.  On a mail domain\r\n# gateway, you should also include $mydomain.\r\n#\r\n# Do not specify the names of virtual domains - those domains are\r\n# specified elsewhere (see VIRTUAL_README).\r\n#\r\n# Do not specify the names of domains that this machine is backup MX\r\n# host for. Specify those names via the relay_domains settings for\r\n# the SMTP server, or use permit_mx_backup if you are lazy (see\r\n# STANDARD_CONFIGURATION_README).\r\n#\r\n# The local machine is always the final destination for mail addressed\r\n# to user@[the.net.work.address] of an interface that the mail system\r\n# receives mail on (see the inet_interfaces parameter).\r\n#\r\n# Specify a list of host or domain names, \/file\/name or type:table\r\n# patterns, separated by commas and\/or whitespace. A \/file\/name\r\n# pattern is replaced by its contents; a type:table is matched when\r\n# a name matches a lookup key (the right-hand side is ignored).\r\n# Continue long lines by starting the next line with whitespace.\r\n#\r\n# See also below, section \"REJECTING MAIL FOR UNKNOWN LOCAL USERS\".\r\n#\r\nmydestination = localhost.$mydomain, localhost\r\n#mydestination = localhost.$mydomain, localhost, $mydomain\r\n#mydestination = localhost.$mydomain, localhost, $mydomain,\r\n#\tmail.$mydomain, www.$mydomain, ftp.$mydomain\r\n\r\n# REJECTING MAIL FOR UNKNOWN LOCAL USERS\r\n#\r\n# The local_recipient_maps parameter specifies optional lookup tables\r\n# with all names or addresses of users that are local with respect\r\n# to $mydestination, $inet_interfaces or $proxy_interfaces.\r\n#\r\n# If this parameter is defined, then the SMTP server will reject\r\n# mail for unknown local users. This parameter is defined by default.\r\n#\r\n# To turn off local recipient checking in the SMTP server, specify\r\n# local_recipient_maps = (i.e. empty).\r\n#\r\n# The default setting assumes that you use the default Postfix local\r\n# delivery agent for local delivery. You need to update the\r\n# local_recipient_maps setting if:\r\n#\r\n# - You define $mydestination domain recipients in files other than\r\n#   \/etc\/passwd, \/etc\/aliases, or the $virtual_alias_maps files.\r\n#   For example, you define $mydestination domain recipients in    \r\n#   the $virtual_mailbox_maps files.\r\n#\r\n# - You redefine the local delivery agent in master.cf.\r\n#\r\n# - You redefine the \"local_transport\" setting in main.cf.\r\n#\r\n# - You use the \"luser_relay\", \"mailbox_transport\", or \"fallback_transport\"\r\n#   feature of the Postfix local delivery agent (see local(8)).\r\n#\r\n# Details are described in the LOCAL_RECIPIENT_README file.\r\n#\r\n# Beware: if the Postfix SMTP server runs chrooted, you probably have\r\n# to access the passwd file via the proxymap service, in order to\r\n# overcome chroot restrictions. The alternative, having a copy of\r\n# the system passwd file in the chroot jail is just not practical.\r\n#\r\n# The right-hand side of the lookup tables is conveniently ignored.\r\n# In the left-hand side, specify a bare username, an @domain.tld\r\n# wild-card, or specify a user@domain.tld address.\r\n# \r\n#local_recipient_maps = unix:passwd.byname $alias_maps\r\n#local_recipient_maps = proxy:unix:passwd.byname $alias_maps\r\n#local_recipient_maps =\r\n\r\n# The unknown_local_recipient_reject_code specifies the SMTP server\r\n# response code when a recipient domain matches $mydestination or\r\n# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty\r\n# and the recipient address or address local-part is not found.\r\n#\r\n# The default setting is 550 (reject mail) but it is safer to start\r\n# with 450 (try again later) until you are certain that your\r\n# local_recipient_maps settings are OK.\r\n#\r\nunknown_local_recipient_reject_code = 550\r\n\r\n# TRUST AND RELAY CONTROL\r\n\r\n# The mynetworks parameter specifies the list of \"trusted\" SMTP\r\n# clients that have more privileges than \"strangers\".\r\n#\r\n# In particular, \"trusted\" SMTP clients are allowed to relay mail\r\n# through Postfix.  See the smtpd_recipient_restrictions parameter\r\n# in postconf(5).\r\n#\r\n# You can specify the list of \"trusted\" network addresses by hand\r\n# or you can let Postfix do it for you (which is the default).\r\n#\r\n# By default (mynetworks_style = subnet), Postfix \"trusts\" SMTP\r\n# clients in the same IP subnetworks as the local machine.\r\n# On Linux, this does works correctly only with interfaces specified\r\n# with the \"ifconfig\" command.\r\n# \r\n# Specify \"mynetworks_style = class\" when Postfix should \"trust\" SMTP\r\n# clients in the same IP class A\/B\/C networks as the local machine.\r\n# Don't do this with a dialup site - it would cause Postfix to \"trust\"\r\n# your entire provider's network.  Instead, specify an explicit\r\n# mynetworks list by hand, as described below.\r\n#  \r\n# Specify \"mynetworks_style = host\" when Postfix should \"trust\"\r\n# only the local machine.\r\n# \r\n#mynetworks_style = class\r\n#mynetworks_style = subnet\r\n#mynetworks_style = host\r\n\r\n# Alternatively, you can specify the mynetworks list by hand, in\r\n# which case Postfix ignores the mynetworks_style setting.\r\n#\r\n# Specify an explicit list of network\/netmask patterns, where the\r\n# mask specifies the number of bits in the network part of a host\r\n# address.\r\n#\r\n# You can also specify the absolute pathname of a pattern file instead\r\n# of listing the patterns here. Specify type:table for table-based lookups\r\n# (the value on the table right-hand side is not used).\r\n#\r\nmynetworks = 127.0.0.0\/8\r\n#mynetworks = $config_directory\/mynetworks\r\n#mynetworks = hash:\/etc\/postfix\/network_table\r\n\r\n# The relay_domains parameter restricts what destinations this system will\r\n# relay mail to.  See the smtpd_recipient_restrictions description in\r\n# postconf(5) for detailed information.\r\n#\r\n# By default, Postfix relays mail\r\n# - from \"trusted\" clients (IP address matches $mynetworks) to any destination,\r\n# - from \"untrusted\" clients to destinations that match $relay_domains or\r\n#   subdomains thereof, except addresses with sender-specified routing.\r\n# The default relay_domains value is $mydestination.\r\n# \r\n# In addition to the above, the Postfix SMTP server by default accepts mail\r\n# that Postfix is final destination for:\r\n# - destinations that match $inet_interfaces or $proxy_interfaces,\r\n# - destinations that match $mydestination\r\n# - destinations that match $virtual_alias_domains,\r\n# - destinations that match $virtual_mailbox_domains.\r\n# These destinations do not need to be listed in $relay_domains.\r\n# \r\n# Specify a list of hosts or domains, \/file\/name patterns or type:name\r\n# lookup tables, separated by commas and\/or whitespace.  Continue\r\n# long lines by starting the next line with whitespace. A file name\r\n# is replaced by its contents; a type:name table is matched when a\r\n# (parent) domain appears as lookup key.\r\n#\r\n# NOTE: Postfix will not automatically forward mail for domains that\r\n# list this system as their primary or backup MX host. See the\r\n# permit_mx_backup restriction description in postconf(5).\r\n#\r\n#relay_domains = $mydestination\r\n\r\n# INTERNET OR INTRANET\r\n\r\n# The relayhost parameter specifies the default host to send mail to\r\n# when no entry is matched in the optional transport(5) table. When\r\n# no relayhost is given, mail is routed directly to the destination.\r\n#\r\n# On an intranet, specify the organizational domain name. If your\r\n# internal DNS uses no MX records, specify the name of the intranet\r\n# gateway host instead.\r\n#\r\n# In the case of SMTP, specify a domain, host, host:port, [host]:port,\r\n# [address] or [address]:port; the form [host] turns off MX lookups.\r\n#\r\n# If you're connected via UUCP, see also the default_transport parameter.\r\n#\r\n#relayhost = $mydomain\r\n#relayhost = [gateway.my.domain]\r\n#relayhost = [mailserver.isp.tld]\r\n#relayhost = uucphost\r\n#relayhost = [an.ip.add.ress]\r\n\r\n# REJECTING UNKNOWN RELAY USERS\r\n#\r\n# The relay_recipient_maps parameter specifies optional lookup tables\r\n# with all addresses in the domains that match $relay_domains.\r\n#\r\n# If this parameter is defined, then the SMTP server will reject\r\n# mail for unknown relay users. This feature is off by default.\r\n#\r\n# The right-hand side of the lookup tables is conveniently ignored.\r\n# In the left-hand side, specify an @domain.tld wild-card, or specify\r\n# a user@domain.tld address.\r\n# \r\n#relay_recipient_maps = hash:\/etc\/postfix\/relay_recipients\r\n\r\n# INPUT RATE CONTROL\r\n#\r\n# The in_flow_delay configuration parameter implements mail input\r\n# flow control. This feature is turned on by default, although it\r\n# still needs further development (it's disabled on SCO UNIX due\r\n# to an SCO bug).\r\n# \r\n# A Postfix process will pause for $in_flow_delay seconds before\r\n# accepting a new message, when the message arrival rate exceeds the\r\n# message delivery rate. With the default 100 SMTP server process\r\n# limit, this limits the mail inflow to 100 messages a second more\r\n# than the number of messages delivered per second.\r\n# \r\n# Specify 0 to disable the feature. Valid delays are 0..10.\r\n# \r\n#in_flow_delay = 1s\r\n\r\n# ADDRESS REWRITING\r\n#\r\n# The ADDRESS_REWRITING_README document gives information about\r\n# address masquerading or other forms of address rewriting including\r\n# username-&gt;Firstname.Lastname mapping.\r\n\r\n# ADDRESS REDIRECTION (VIRTUAL DOMAIN)\r\n#\r\n# The VIRTUAL_README document gives information about the many forms\r\n# of domain hosting that Postfix supports.\r\n\r\n# \"USER HAS MOVED\" BOUNCE MESSAGES\r\n#\r\n# See the discussion in the ADDRESS_REWRITING_README document.\r\n\r\n# TRANSPORT MAP\r\n#\r\n# See the discussion in the ADDRESS_REWRITING_README document.\r\n\r\n# ALIAS DATABASE\r\n#\r\n# The alias_maps parameter specifies the list of alias databases used\r\n# by the local delivery agent. The default list is system dependent.\r\n#\r\n# On systems with NIS, the default is to search the local alias\r\n# database, then the NIS alias database. See aliases(5) for syntax\r\n# details.\r\n# \r\n# If you change the alias database, run \"postalias \/etc\/aliases\" (or\r\n# wherever your system stores the mail alias file), or simply run\r\n# \"newaliases\" to build the necessary DBM or DB file.\r\n#\r\n# It will take a minute or so before changes become visible.  Use\r\n# \"postfix reload\" to eliminate the delay.\r\n#\r\n#alias_maps = dbm:\/etc\/aliases\r\nalias_maps = hash:\/etc\/aliases\r\n#alias_maps = hash:\/etc\/aliases, nis:mail.aliases\r\n#alias_maps = netinfo:\/aliases\r\n\r\n# The alias_database parameter specifies the alias database(s) that\r\n# are built with \"newaliases\" or \"sendmail -bi\".  This is a separate\r\n# configuration parameter, because alias_maps (see above) may specify\r\n# tables that are not necessarily all under control by Postfix.\r\n#\r\n#alias_database = dbm:\/etc\/aliases\r\n#alias_database = dbm:\/etc\/mail\/aliases\r\nalias_database = hash:\/etc\/aliases\r\n#alias_database = hash:\/etc\/aliases, hash:\/opt\/majordomo\/aliases\r\n\r\n# ADDRESS EXTENSIONS (e.g., user+foo)\r\n#\r\n# The recipient_delimiter parameter specifies the separator between\r\n# user names and address extensions (user+foo). See canonical(5),\r\n# local(8), relocated(5) and virtual(5) for the effects this has on\r\n# aliases, canonical, virtual, relocated and .forward file lookups.\r\n# Basically, the software tries user+foo and .forward+foo before\r\n# trying user and .forward.\r\n#\r\n#recipient_delimiter = +\r\n\r\n# DELIVERY TO MAILBOX\r\n#\r\n# The home_mailbox parameter specifies the optional pathname of a\r\n# mailbox file relative to a user's home directory. The default\r\n# mailbox file is \/var\/spool\/mail\/user or \/var\/mail\/user.  Specify\r\n# \"Maildir\/\" for qmail-style delivery (the \/ is required).\r\n#\r\n#home_mailbox = Mailbox\r\n#home_mailbox = Maildir\/\r\n \r\n# The mail_spool_directory parameter specifies the directory where\r\n# UNIX-style mailboxes are kept. The default setting depends on the\r\n# system type.\r\n#\r\n#mail_spool_directory = \/var\/mail\r\n#mail_spool_directory = \/var\/spool\/mail\r\n\r\n# The mailbox_command parameter specifies the optional external\r\n# command to use instead of mailbox delivery. The command is run as\r\n# the recipient with proper HOME, SHELL and LOGNAME environment settings.\r\n# Exception:  delivery for root is done as $default_user.\r\n#\r\n# Other environment variables of interest: USER (recipient username),\r\n# EXTENSION (address extension), DOMAIN (domain part of address),\r\n# and LOCAL (the address localpart).\r\n#\r\n# Unlike other Postfix configuration parameters, the mailbox_command\r\n# parameter is not subjected to $parameter substitutions. This is to\r\n# make it easier to specify shell syntax (see example below).\r\n#\r\n# Avoid shell meta characters because they will force Postfix to run\r\n# an expensive shell process. Procmail alone is expensive enough.\r\n#\r\n# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN\r\n# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.\r\n#\r\n#mailbox_command = \/some\/where\/procmail\r\n#mailbox_command = \/some\/where\/procmail -a \"$EXTENSION\"\r\n\r\n# The mailbox_transport specifies the optional transport in master.cf\r\n# to use after processing aliases and .forward files. This parameter\r\n# has precedence over the mailbox_command, fallback_transport and\r\n# luser_relay parameters.\r\n#\r\n# Specify a string of the form transport:nexthop, where transport is\r\n# the name of a mail delivery transport defined in master.cf.  The\r\n# :nexthop part is optional. For more details see the sample transport\r\n# configuration file.\r\n#\r\n# NOTE: if you use this feature for accounts not in the UNIX password\r\n# file, then you must update the \"local_recipient_maps\" setting in\r\n# the main.cf file, otherwise the SMTP server will reject mail for    \r\n# non-UNIX accounts with \"User unknown in local recipient table\".\r\n#\r\n# Cyrus IMAP over LMTP. Specify ``lmtpunix      cmd=\"lmtpd\"\r\n# listen=\"\/var\/imap\/socket\/lmtp\" prefork=0'' in cyrus.conf.\r\n#mailbox_transport = lmtp:unix:\/var\/lib\/imap\/socket\/lmtp\r\n\r\n# If using the cyrus-imapd IMAP server deliver local mail to the IMAP\r\n# server using LMTP (Local Mail Transport Protocol), this is prefered\r\n# over the older cyrus deliver program by setting the\r\n# mailbox_transport as below:\r\n#\r\n# mailbox_transport = lmtp:unix:\/var\/lib\/imap\/socket\/lmtp\r\n#\r\n# The efficiency of LMTP delivery for cyrus-imapd can be enhanced via\r\n# these settings.\r\n#\r\n# local_destination_recipient_limit = 300\r\n# local_destination_concurrency_limit = 5\r\n#\r\n# Of course you should adjust these settings as appropriate for the\r\n# capacity of the hardware you are using. The recipient limit setting\r\n# can be used to take advantage of the single instance message store\r\n# capability of Cyrus. The concurrency limit can be used to control\r\n# how many simultaneous LMTP sessions will be permitted to the Cyrus\r\n# message store. \r\n#\r\n# Cyrus IMAP via command line. Uncomment the \"cyrus...pipe\" and\r\n# subsequent line in master.cf.\r\n#mailbox_transport = cyrus\r\n\r\n# The fallback_transport specifies the optional transport in master.cf\r\n# to use for recipients that are not found in the UNIX passwd database.\r\n# This parameter has precedence over the luser_relay parameter.\r\n#\r\n# Specify a string of the form transport:nexthop, where transport is\r\n# the name of a mail delivery transport defined in master.cf.  The\r\n# :nexthop part is optional. For more details see the sample transport\r\n# configuration file.\r\n#\r\n# NOTE: if you use this feature for accounts not in the UNIX password\r\n# file, then you must update the \"local_recipient_maps\" setting in\r\n# the main.cf file, otherwise the SMTP server will reject mail for    \r\n# non-UNIX accounts with \"User unknown in local recipient table\".\r\n#\r\n#fallback_transport = lmtp:unix:\/var\/lib\/imap\/socket\/lmtp\r\n#fallback_transport =\r\n\r\n# The luser_relay parameter specifies an optional destination address\r\n# for unknown recipients.  By default, mail for unknown@$mydestination,\r\n# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned\r\n# as undeliverable.\r\n#\r\n# The following expansions are done on luser_relay: $user (recipient\r\n# username), $shell (recipient shell), $home (recipient home directory),\r\n# $recipient (full recipient address), $extension (recipient address\r\n# extension), $domain (recipient domain), $local (entire recipient\r\n# localpart), $recipient_delimiter. Specify ${name?value} or\r\n# ${name:value} to expand value only when $name does (does not) exist.\r\n#\r\n# luser_relay works only for the default Postfix local delivery agent.\r\n#\r\n# NOTE: if you use this feature for accounts not in the UNIX password\r\n# file, then you must specify \"local_recipient_maps =\" (i.e. empty) in\r\n# the main.cf file, otherwise the SMTP server will reject mail for    \r\n# non-UNIX accounts with \"User unknown in local recipient table\".\r\n#\r\n#luser_relay = $user@other.host\r\n#luser_relay = $local@other.host\r\n#luser_relay = admin+$local\r\n  \r\n# JUNK MAIL CONTROLS\r\n# \r\n# The controls listed here are only a very small subset. The file\r\n# SMTPD_ACCESS_README provides an overview.\r\n\r\n# The header_checks parameter specifies an optional table with patterns\r\n# that each logical message header is matched against, including\r\n# headers that span multiple physical lines.\r\n#\r\n# By default, these patterns also apply to MIME headers and to the\r\n# headers of attached messages. With older Postfix versions, MIME and\r\n# attached message headers were treated as body text.\r\n#\r\n# For details, see \"man header_checks\".\r\n#\r\n#header_checks = regexp:\/etc\/postfix\/header_checks\r\n\r\n# FAST ETRN SERVICE\r\n#\r\n# Postfix maintains per-destination logfiles with information about\r\n# deferred mail, so that mail can be flushed quickly with the SMTP\r\n# \"ETRN domain.tld\" command, or by executing \"sendmail -qRdomain.tld\".\r\n# See the ETRN_README document for a detailed description.\r\n# \r\n# The fast_flush_domains parameter controls what destinations are\r\n# eligible for this service. By default, they are all domains that\r\n# this server is willing to relay mail to.\r\n# \r\n#fast_flush_domains = $relay_domains\r\n\r\n# SHOW SOFTWARE VERSION OR NOT\r\n#\r\n# The smtpd_banner parameter specifies the text that follows the 220\r\n# code in the SMTP server's greeting banner. Some people like to see\r\n# the mail version advertised. By default, Postfix shows no version.\r\n#\r\n# You MUST specify $myhostname at the start of the text. That is an\r\n# RFC requirement. Postfix itself does not care.\r\n#\r\nsmtpd_banner = $myhostname ESMTP $mail_name\r\n#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)\r\n\r\n# PARALLEL DELIVERY TO THE SAME DESTINATION\r\n#\r\n# How many parallel deliveries to the same user or domain? With local\r\n# delivery, it does not make sense to do massively parallel delivery\r\n# to the same user, because mailbox updates must happen sequentially,\r\n# and expensive pipelines in .forward files can cause disasters when\r\n# too many are run at the same time. With SMTP deliveries, 10\r\n# simultaneous connections to the same domain could be sufficient to\r\n# raise eyebrows.\r\n# \r\n# Each message delivery transport has its XXX_destination_concurrency_limit\r\n# parameter.  The default is $default_destination_concurrency_limit for\r\n# most delivery transports. For the local delivery agent the default is 2.\r\n\r\n#local_destination_concurrency_limit = 2\r\n#default_destination_concurrency_limit = 20\r\n\r\n# DEBUGGING CONTROL\r\n#\r\n# The debug_peer_level parameter specifies the increment in verbose\r\n# logging level when an SMTP client or server host name or address\r\n# matches a pattern in the debug_peer_list parameter.\r\n#\r\ndebug_peer_level = 2\r\n\r\n# The debug_peer_list parameter specifies an optional list of domain\r\n# or network patterns, \/file\/name patterns or type:name tables. When\r\n# an SMTP client or server host name or address matches a pattern,\r\n# increase the verbose logging level by the amount specified in the\r\n# debug_peer_level parameter.\r\n#\r\n#debug_peer_list = 127.0.0.1\r\n#debug_peer_list = some.domain\r\n\r\n# The debugger_command specifies the external command that is executed\r\n# when a Postfix daemon program is run with the -D option.\r\n#\r\n# Use \"command .. &amp; sleep 5\" so that the debugger can attach before\r\n# the process marches on. If you use an X-based debugger, be sure to\r\n# set up your XAUTHORITY environment variable before starting Postfix.\r\n#\r\ndebugger_command =\r\n\t PATH=\/bin:\/usr\/bin:\/usr\/local\/bin:\/usr\/X11R6\/bin\r\n\t ddd $daemon_directory\/$process_name $process_id &amp; sleep 5\r\n\r\n# If you can't use X, use this to capture the call stack when a\r\n# daemon crashes. The result is in a file in the configuration\r\n# directory, and is named after the process name and the process ID.\r\n#\r\n# debugger_command =\r\n#\tPATH=\/bin:\/usr\/bin:\/usr\/local\/bin; export PATH; (echo cont;\r\n#\techo where) | gdb $daemon_directory\/$process_name $process_id 2&gt;&amp;1\r\n#\t&gt;$config_directory\/$process_name.$process_id.log &amp; sleep 5\r\n#\r\n# Another possibility is to run gdb under a detached screen session.\r\n# To attach to the screen sesssion, su root and run \"screen -r\r\n# &lt;id_string&gt;\" where &lt;id_string&gt; uniquely matches one of the detached\r\n# sessions (from \"screen -list\").\r\n#\r\n# debugger_command =\r\n#\tPATH=\/bin:\/usr\/bin:\/sbin:\/usr\/sbin; export PATH; screen\r\n#\t-dmS $process_name gdb $daemon_directory\/$process_name\r\n#\t$process_id &amp; sleep 1\r\n\r\n# INSTALL-TIME CONFIGURATION INFORMATION\r\n#\r\n# The following parameters are used when installing a new Postfix version.\r\n# \r\n# sendmail_path: The full pathname of the Postfix sendmail command.\r\n# This is the Sendmail-compatible mail posting interface.\r\n# \r\nsendmail_path = \/usr\/sbin\/sendmail.postfix\r\n\r\n# newaliases_path: The full pathname of the Postfix newaliases command.\r\n# This is the Sendmail-compatible command to build alias databases.\r\n#\r\nnewaliases_path = \/usr\/bin\/newaliases.postfix\r\n\r\n# mailq_path: The full pathname of the Postfix mailq command.  This\r\n# is the Sendmail-compatible mail queue listing command.\r\n# \r\nmailq_path = \/usr\/bin\/mailq.postfix\r\n\r\n# setgid_group: The group for mail submission and queue management\r\n# commands.  This must be a group name with a numerical group ID that\r\n# is not shared with other accounts, not even with the Postfix account.\r\n#\r\nsetgid_group = postdrop\r\n\r\n# html_directory: The location of the Postfix HTML documentation.\r\n#\r\nhtml_directory = no\r\n\r\n# manpage_directory: The location of the Postfix on-line manual pages.\r\n#\r\nmanpage_directory = \/usr\/share\/man\r\n\r\n# sample_directory: The location of the Postfix sample configuration files.\r\n# This parameter is obsolete as of Postfix 2.1.\r\n#\r\nsample_directory = \/usr\/share\/doc\/postfix-2.10.1\/samples\r\n\r\n# readme_directory: The location of the Postfix README files.\r\n#\r\nreadme_directory = \/usr\/share\/doc\/postfix-2.10.1\/README_FILES\r\n\r\n\r\n# ============================================================\r\n# MySQL mappings\r\n# ============================================================\r\nrelay_domains = mysql:\/etc\/postfix\/mysql\/relay_domains.cf\r\nvirtual_alias_maps = mysql:\/etc\/postfix\/mysql\/virtual_alias_maps.cf,\r\n                     mysql:\/etc\/postfix\/mysql\/virtual_alias_domain_maps.cf\r\nvirtual_mailbox_domains = mysql:\/etc\/postfix\/mysql\/virtual_mailbox_domains.cf\r\nvirtual_mailbox_maps = mysql:\/etc\/postfix\/mysql\/virtual_mailbox_maps.cf\r\n\r\n# ============================================================\r\n# RESTRICTIONS\r\n#\r\n# \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0451\u0440\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u2014 \u0432\u0430\u0448 \u0432\u044b\u0431\u043e\u0440.\r\n# \u0420\u0430\u0441\u0441\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 reject_rbl_client \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e\r\n# \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435: http:\/\/help.ubuntu.ru\/wiki\/\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f_\u0441\u043f\u0430\u043c\u0430_\u043d\u0430_\u0443\u0440\u043e\u0432\u043d\u0435_smtp_\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\r\n# ============================================================\r\n# Delivery Status Notifications, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044e \u043f\u043e\u0447\u0442\u044b \r\n# \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \u0435\u0433\u043e \u043f\u0438\u0441\u0435\u043c. \u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c - success, failure, delay, none.\r\nsmtpd_discard_ehlo_keywords = etrn, silent-discard\r\n\r\nsmtpd_forbidden_commands = CONNECT GET POST\r\n\r\n# \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 AUTH, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 outlook express\r\nbroken_sasl_auth_clients = yes\r\n\r\n# \u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0434\u043e RCPT TO \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c smtpd_client_restrictions, smtpd_helo_restrictions \u0438 smtpd_sender_restrictions\r\n# \u0438\u043b\u0438 \u0434\u043e ETRN \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c smtpd_client_restrictions, smtpd_helo_restrictions. \r\n# \u0422\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0435\u0449\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0443\u044e \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043b\u043e\u0433\u043e\u0432.\r\nsmtpd_delay_reject = yes\r\n\r\n# \u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b helo \u043e\u0442 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432\r\nsmtpd_helo_required = yes\r\n\r\n# \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 SMTP \u043a\u043e\u043c\u0430\u043d\u0434\u0443 VRFY. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e, \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430. \r\n# \u0414\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u0445\u043d\u0438\u043a\u0430 (\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b VRFY) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043f\u0430\u043c\u0435\u0440\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0438\u043c\u0435\u043d \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432.\r\ndisable_vrfy_command = yes\r\n\r\n# \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0432\u0441\u0435 \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432\r\nsmtpd_helo_restrictions = permit_mynetworks,\r\n# \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0432\u0441\u0435 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u0442 SASL-\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e SMTP\r\n                          permit_sasl_authenticated,\r\n# \u041e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u043a\u043e\u0433\u0434\u0430 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0432 HELO \u0438\u043b\u0438 EHLO \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c RFC.\r\n                          reject_non_fqdn_helo_hostname,\r\n# \u041e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u043a\u043e\u0433\u0434\u0430 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 HELO \u0438\u043b\u0438 EHLO \u043d\u0435\u0432\u0435\u0440\u043d\u0435\u043d\r\n                          reject_invalid_helo_hostname,\r\n# \u041e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u043a\u043e\u0433\u0434\u0430 \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0432 HELO \u0438\u043b\u0438 EHLO \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 A \u0438\u043b\u0438 MX \u0434\u043d\u0441-\u0437\u0430\u043f\u0438\u0441\u0438\r\n#                          reject_unknown_helo_hostname\r\n\r\n\r\nsmtpd_data_restrictions = permit_mynetworks,\r\n                          permit_sasl_authenticated,\r\n# \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u0432\u044b\u0434\u0430\u0447\u0443 \u043f\u0438\u0441\u0435\u043c \u0438 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u043f\u043e\u0442\u043e\u043a, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0435 \u0441\u043f\u0430\u043c\u0435\u0440\u044b\r\n                          reject_unauth_pipelining,\r\n                          reject_multi_recipient_bounce\r\n\r\n# \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f (\u0442.\u0435. \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442\u0441\u044f \u0442\u0435, \u043a\u0442\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u043d\u0430 \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440)\r\nsmtpd_sender_restrictions = permit_mynetworks,\r\n                            permit_sasl_authenticated,\r\n# \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0438 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0434\u043e\u043c\u0435\u043d\u044b \u043e\u0442\u0432\u0435\u0440\u0433\u0430\u0435\u043c - \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \r\n# \u044d\u0442\u043e \u0441\u043f\u0430\u043c \u0438\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f.\r\n                            reject_non_fqdn_sender,\r\n                            reject_unknown_sender_domain,\r\n\r\nsmtpd_recipient_restrictions = reject_non_fqdn_recipient,\r\n                               reject_unknown_recipient_domain,\r\n                               reject_multi_recipient_bounce,\r\n                               permit_mynetworks,\r\n                               permit_sasl_authenticated,\r\n                               reject_unknown_sender_domain,\r\n# \u041e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445, \u0447\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u0440\u0435\u043b\u0435\u044e \u043d\u0430 \u043d\u0430\u0448 \u0434\u043e\u043c\u0435\u043d, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \r\n# \u0432 $relay_domains \u0438\u043b\u0438 \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u044b, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \r\n# \u0432 $mydestination, $inet_interfaces, $proxy_interfaces, $virtual_alias_domains, or $virtual_mailbox_domains,\r\n# \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0435\u043b\u0435\u0435\u043c.\r\n                               reject_unauth_destination,\r\n# \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u0430 \u0434\u043b\u044f \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432\r\n                               reject_unlisted_recipient,\r\n                               check_policy_service unix:\/var\/spool\/postfix\/postgrey\/socket,\r\n                               #reject_rbl_client zen.spamhaus.org,\r\n                               #reject_rbl_client bl.spamcop.net,\r\n                               #reject_rbl_client dnsbl.sorbs.net,\r\n                               reject_invalid_hostname\r\n\r\n# ============================================================\r\n# TLS\r\n# ============================================================\r\nsmtp_tls_security_level = may\r\nsmtpd_tls_security_level = may\r\nsmtpd_tls_loglevel = 1\r\nsmtpd_tls_received_header = yes\r\nsmtpd_tls_session_cache_timeout = 3600s\r\nsmtp_tls_session_cache_database = btree:$data_directory\/smtp_tls_session_cache\r\nsmtpd_tls_key_file = \/etc\/pki\/tls\/private\/privkey.pem\r\nsmtpd_tls_cert_file = \/etc\/pki\/tls\/certs\/fullchain.pem\r\ntls_random_source = dev:\/dev\/urandom\r\n\r\n# ============================================================\r\n# LIMITS\r\n# ============================================================\r\n# \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u0438\u0441\u044c\u043c\u0430 \u0432 \u0431\u0430\u0439\u0442\u0430\u0445\r\nmessage_size_limit = 51200000\r\nsmtpd_soft_error_limit = 5\r\n\r\n# \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 SMTP \r\n# \u043a\u043b\u0438\u0435\u043d\u0442. \u041f\u0440\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 Postfix \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0441\u044f.\r\nsmtpd_hard_error_limit = 5\r\n\r\nsmtpd_error_sleep_time = 20\r\nanvil_rate_time_unit = 60s\r\nsmtpd_client_connection_count_limit = 20\r\nsmtpd_client_connection_rate_limit = 30\r\nsmtpd_client_message_rate_limit = 30\r\nsmtpd_client_event_limit_exceptions = 127.0.0.0\/8\r\nsmtpd_client_connection_limit_exceptions = 127.0.0.0\/8\r\n\r\n# ============================================================\r\n# QUEUE\r\n# ============================================================\r\n# \u0412\u0440\u0435\u043c\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u0438\u0441\u0435\u043c, \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \r\n# \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: s (seconds), m (minutes), h (hours), d (days), w (weeks).\r\nmaximal_queue_lifetime = 1d\r\n\r\n# \u0412\u0440\u0435\u043c\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0431\u043e\u0443\u043d\u0441\u043e\u0432\r\nbounce_queue_lifetime = 1d\r\n\r\n# ============================================================\r\n# SASL\r\n# ============================================================\r\n# \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 sasl \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\r\nsmtpd_sasl_auth_enable = yes\r\n# \u0417\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u0443\u044e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e\r\nsmtpd_sasl_security_options = noanonymous, noplaintext\r\n# \u0437\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c dovecot\r\nsmtpd_sasl_type = dovecot\r\n\r\n# \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0434\u043e \u0441\u043e\u043a\u0435\u0442\u0430, \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \r\n# \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e\u0442 Postfix \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Dovecot. \u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0434\u043e \u0441\u043e\u043a\u0435\u0442\u0430 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \r\n# \u0438\u0437 \u043f\u0443\u0442\u0438 \u0434\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \r\n# Postfix + \"private\/auth\" = \"\/var\/spool\/postfix\" + \"private\/auth\" = \"\/var\/spool\/postfix\/private\/auth\".\r\nsmtpd_sasl_path = private\/auth\r\n\r\n# ============================================================\r\n# VIRTUAL\r\n# ============================================================\r\n# \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0430 (\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435)\r\nvirtual_mailbox_base = \/opt\/mail\r\n\r\nvirtual_minimum_uid = 5000\r\nvirtual_uid_maps = static:5000\r\nvirtual_gid_maps = static:5000\r\nvirtual_transport = dovecot\r\ndovecot_destination_recipient_limit = 1\r\n\r\n<\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c Submission, \u043f\u043e\u0434\u043d\u044f\u0432 SMTP \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 587 \u043f\u043e\u0440\u0442\u0443. \u0421\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u044b \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0443\u0447\u0451\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u0440\u0438 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0438 smtp \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 587 \u043f\u043e\u0440\u0442. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0441\u0430\u043c\u044b\u0439 \u043a\u043e\u043d\u0435\u0446 \u0441\u0435\u043a\u0446\u0438\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/postfix\/master.cf, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0443\u044e \u0437\u0430 submission \u0438 \u0442\u043e, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0437\u0430\u0438\u043c\u0430\u0435\u0442\u0441\u044f dovecot :<\/p>\n<pre class=\"lang:sh decode:true\">submission inet n       -       n       -       -       smtpd\r\n  -o syslog_name=postfix\/submission\r\n  -o smtpd_tls_wrappermode=no\r\n  -o smtpd_tls_security_level=encrypt\r\n  -o smtpd_sasl_auth_enable=yes\r\n  -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject\r\n  -o smtpd_relay_restrictions=permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination\r\n  -o milter_macro_daemon_name=ORIGINATING\r\n\r\n# ====================================================================\r\n# DOVECOT\r\n# ====================================================================\r\ndovecot unix    -       n       n       -       -      pipe\r\n  flags=DRhu user=vmail:vmail argv=\/usr\/libexec\/dovecot\/deliver -f ${sender} -d ${recipient}\r\n<\/pre>\n<p><span style=\"color: #ff0000;\"><strong>\u0412\u0430\u0436\u043d\u043e<\/strong><\/span>, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c 2(!!!) \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 <span class=\"lang:sh decode:true crayon-inline \"> flags=DRhu \u0438 \u0442.\u0434.<\/span><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c postgrey<\/p>\n<pre class=\"lang:sh decode:true \">yum install postgrey -y\r\nsystemctl enable postgrey.service\r\nsystemctl start postgrey.service<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c postfix<\/p>\n<pre class=\"lang:sh decode:true \">systemctl enable postfix.service\r\nsystemctl start postfix.service<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u043b\u0443\u0436\u0431\u044b:<\/p>\n<pre class=\"lang:sh decode:true \">netstat -ltupen | grep \"\/master\"\r\ntcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      0          152761     25615\/master\r\ntcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      0          152687     25615\/master\r\n<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0442\u043e \u0442\u043e \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043b\u043e\u0433\u0438 \u0432 \u0444\u0430\u0439\u043b\u0430\u0445: <span class=\"lang:sh decode:true crayon-inline \">\/var\/log\/maillog<\/span> \u0438 <span class=\"lang:sh decode:true crayon-inline\">\/var\/log\/messages<\/span><\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c\\\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u0442\u0440\u044b (25,143, 587,993,995) \u043d\u0430 iptables. \u042f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0441\u0442\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c 110 (pop3), \u0442.\u043a. \u043d\u0435 \u043d\u0443\u0436\u0434\u0430\u044e\u0441\u044c \u0432 \u043d\u0435\u043c. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443:<\/p>\n<pre class=\"lang:sh decode:true \">telnet localhost 25\r\nTrying 127.0.0.1...\r\nConnected to localhost.\r\nEscape character is '^]'.\r\n220 mail.samara-it.ru ESMTP Postfix\r\nquit\r\n221 2.0.0 Bye\r\nConnection closed by foreign host.\r\n\r\n<\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u044f \u0431\u0443\u0434\u0443 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c <strong>Thunderbird.<\/strong><\/p>\n<p><a href=\"http:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-676\" src=\"http:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email.png\" alt=\"\" width=\"785\" height=\"376\" srcset=\"https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email.png 785w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email-300x144.png 300w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email-768x368.png 768w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email-660x316.png 660w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-677\" src=\"http:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email1.png\" alt=\"\" width=\"960\" height=\"388\" srcset=\"https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email1.png 960w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email1-300x121.png 300w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email1-768x310.png 768w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/tb_add_email1-660x267.png 660w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>\u041f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0447\u0442\u0443. \u0415\u0441\u043b\u0438 \u0447\u0442\u043e \u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0438\u0437\u0443\u0447\u0430\u0435\u043c \u043b\u043e\u0433\u0438 (\u0441\u043c.\u0432\u044b\u0448\u0435). \u0422\u0430\u043a \u0436\u0435, \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u043d\u043b\u0430\u0439\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/mxtoolbox.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/mxtoolbox.com<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/emailsecuritygrader.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/emailsecuritygrader.com<\/a>. \u0412\u043e\u0442, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0443 \u043c\u0435\u043d\u044f:<\/p>\n<p><a href=\"http:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/email_test.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-680\" src=\"http:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/email_test.png\" alt=\"\" width=\"1228\" height=\"654\" srcset=\"https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/email_test.png 1228w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/email_test-300x160.png 300w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/email_test-768x409.png 768w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/email_test-1024x545.png 1024w, https:\/\/www.samara-it.ru\/wp-content\/uploads\/2019\/04\/email_test-660x351.png 660w\" sizes=\"auto, (max-width: 1228px) 100vw, 1228px\" \/><\/a><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043f\u043e\u0447\u0442\u044b, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c mailx (\u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e\u0447\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c)<\/p>\n<pre class=\"lang:sh decode:true \">yum install mailx -y<\/pre>\n<p>\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0430\u043b\u0438\u0430\u0441 \u0434\u043b\u044f root, \u0447\u0442\u043e\u0431 \u0432\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0447\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 root-\u0430, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u0430 \u043a \u043d\u0430\u043c \u0432 \u044f\u0449\u0438\u043a. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <span class=\"lang:sh decode:true crayon-inline \">\/etc\/aliases<\/span> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u0430\u043c\u044b\u0439 \u043a\u043e\u043d\u0435\u0446:<\/p>\n<pre class=\"lang:sh decode:true \">postmaster:    root\r\nroot:          admin@samara-it.ru<\/pre>\n<p>\u0427\u0442\u043e\u0431 \u043d\u0430\u0448\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0441\u0438\u043b\u0443, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438<\/p>\n<pre class=\"lang:sh decode:true \">newaliases<\/pre>\n<p>\u041f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0447\u0442\u0443:<\/p>\n<pre class=\"lang:sh decode:true \">echo \"This is the body of the email\" | mail -s \"Hi all\" root\r\necho \"This is the body of the email\" | mail -s \"Hi all\" admin@samara-it.ru\r\n<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0432\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u044f\u0449\u0438\u043a, \u043f\u0438\u0441\u044c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u0439\u0442\u0438. \u0415\u0441\u043b\u0438 \u043d\u0435 \u0442\u0430\u043a, \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043b\u043e\u0433\u0438 (\u0441\u043c. \u0432\u044b\u0448\u0435).<\/p>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 postfix-\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0430\u043a\u0435\u0442:<\/p>\n<pre class=\"lang:sh decode:true\">yum install postfix-perl-scripts -y<\/pre>\n<p>\u0441\u0430\u043c\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/p>\n<pre class=\"lang:sh decode:true \"># \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u0432\u043e\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 - \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \r\n# \u043d\u0435 \u0431\u0443\u0434\u0435\u0442\r\npostfix check\r\n\r\n# \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 (ID) \u043f\u0438\u0441\u0435\u043c \u0432 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438\r\nmailq\r\n\r\n# \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u0438\u0441\u044c\u043c\u0430 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438\r\n# \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e http:\/\/www.postfix.org\/QSHAPE_README.html\r\nqshape deferred\r\n\r\n# \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u0432 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 (\u0437\u0430\u0434\u0430\u0432 \u0435\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 mailq)\r\npostcat -q\r\n\r\n# \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \r\npostconf myhostname\r\n\r\n# \u041f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\r\npostconf -e myhostname=mail.example.com\r\n\r\n# \u041f\u043e\u0438\u0441\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u0432 log\r\negrep '(reject|error|warning|fatal|panic):' \/var\/log\/maillog\r\n\r\n# \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Postfix\r\npostconf -d\r\n\r\n# \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0443\u044e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u043f\u0438\u0441\u0435\u043c\r\npostsuper -r ALL; postfix flush\r\n\r\n# \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0443\u044e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0438\u0441\u044c\u043c\u0430 \u043f\u043e ID. ID \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 mailq\r\npostsuper -r ID\r\n\r\n# \u041f\u043e\u043b\u043d\u0430\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u0438\u0441\u0435\u043c\r\npostsuper -d ALL\r\n\r\n# \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u0438\u0441\u0435\u043c \u043e\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e FROM (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 MAILER-DAEMON)\r\nmailq | grep 'MAILER-DAEMON' | awk '{print $1}' | xargs -I{} -n1 \/usr\/sbin\/postsuper -d {}\r\n\r\n# \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u0438\u0441\u0435\u043c \u043e\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e FROM \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 REQUIRE\r\nmailq | grep 'MAILER-DAEMON' | awk '{print $1}' | tr -d '*' | xargs -I{} -n1 postsuper -d {}\r\n\r\n\r\n\r\n<\/pre>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u043e \u043c\u044b \u043d\u0430 \u044d\u0442\u043e\u043c \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u0441\u044f.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c. 1. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Dovecot. \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0440\u0430\u0437\u0431\u0438\u0442 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17],"tags":[22,19,18,20,21],"class_list":["post-723","post","type-post","status-publish","format-standard","hentry","category-centos","category-mail","tag-centos","tag-dovecot","tag-postfix","tag-postixadmin","tag-roundcube"],"_links":{"self":[{"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=\/wp\/v2\/posts\/723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=723"}],"version-history":[{"count":14,"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":776,"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions\/776"}],"wp:attachment":[{"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samara-it.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}