{"id":1922,"date":"2025-12-21T08:18:23","date_gmt":"2025-12-21T08:18:23","guid":{"rendered":"https:\/\/alexisiumus.ru\/?p=1922"},"modified":"2025-12-21T08:18:23","modified_gmt":"2025-12-21T08:18:23","slug":"%d0%bf%d0%be%d0%b4%d0%b3%d0%be%d0%bd%d0%ba%d0%b0-%d0%b4%d0%bb%d1%8f-postfix","status":"publish","type":"post","link":"https:\/\/alexisiumus.ru\/?p=1922","title":{"rendered":"\u041f\u043e\u0434\u0433\u043e\u043d\u043a\u0430 \u0434\u043b\u044f postfix"},"content":{"rendered":"\n<p>\u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u043e\u0434\u043e\u0448\u043b\u0438 \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0432\u0430\u0436\u043d\u043e\u043c\u0443: <strong>\u0433\u0434\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 Postfix \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f SMTP\u2011\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Dovecot<\/strong>.<\/p>\n\n\n\n<p>\u0422\u044b \u0443\u0436\u0435 \u043d\u0430\u0448\u0451\u043b, \u0447\u0442\u043e \u0441\u043e\u043a\u0435\u0442\u0430 <code>\/var\/spool\/postfix\/private\/auth<\/code> \u043d\u0435\u0442 \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 Postfix \u0438 Dovecot \u0435\u0449\u0451 \u043d\u0435 \u00ab\u0441\u0432\u044f\u0437\u0430\u043d\u044b\u00bb.<br>\u0421\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u043a\u0430\u0436\u0443 \u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432 Postfix, \u0438 \u0433\u0434\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc <strong>1. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 SASL \u0432 Postfix \u2014 \u0444\u0430\u0439\u043b <code>\/etc\/postfix\/main.cf<\/code><\/strong><\/h3>\n\n\n\n<p>\u0414\u043e\u0431\u0430\u0432\u044c (\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044c), \u0447\u0442\u043e \u0443 \u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c SMTP AUTH\nsmtpd_sasl_auth_enable = yes\n\n# \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Dovecot \u043a\u0430\u043a SASL-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\nsmtpd_sasl_type = dovecot\nsmtpd_sasl_path = private\/auth\n\n# \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438\nsmtpd_sasl_security_options = noanonymous\nsmtpd_sasl_local_domain = $myhostname\n\n# \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c AUTH \u043f\u0435\u0440\u0435\u0434 TLS (\u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e)\nsmtpd_recipient_restrictions =\n    permit_sasl_authenticated,\n    permit_mynetworks,\n    reject_unauth_destination<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e <strong>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c<\/strong>, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e WordPress \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc <strong>2. \u0413\u0434\u0435 Postfix \u043e\u0436\u0438\u0434\u0430\u0435\u0442 SASL\u2011\u0441\u043e\u043a\u0435\u0442<\/strong><\/h3>\n\n\n\n<p>Postfix \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 chroot, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0443\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>private\/auth<\/code><\/pre>\n\n\n\n<p>\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/spool\/postfix\/private\/auth<\/code><\/pre>\n\n\n\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0441\u043e\u043a\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0437\u0434\u0430\u0442\u044c Dovecot.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc <strong>3. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 Postfix<\/strong><\/h3>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u043e\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>postfix check\nsystemctl restart postfix<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>postconf | grep sasl<\/code><\/pre>\n\n\n\n<p>\u0414\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>smtpd_sasl_auth_enable = yes\nsmtpd_sasl_type = dovecot\nsmtpd_sasl_path = private\/auth<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc <strong>4. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 Dovecot, \u0447\u0442\u043e\u0431\u044b Postfix \u0443\u0432\u0438\u0434\u0435\u043b \u0441\u043e\u043a\u0435\u0442<\/strong><\/h3>\n\n\n\n<p>\u0424\u0430\u0439\u043b: <code>\/etc\/dovecot\/conf.d\/10-master.conf<\/code><\/p>\n\n\n\n<p>\u0414\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service auth {\n  unix_listener \/var\/spool\/postfix\/private\/auth {\n    mode = 0660\n    user = postfix\n    group = postfix\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart dovecot\nls -l \/var\/spool\/postfix\/private\/auth<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0441\u043e\u043a\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u2014 \u0441\u0432\u044f\u0437\u043a\u0430 Postfix+Dovecot \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc <strong>5. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 SMTP AUTH \u0432\u0440\u0443\u0447\u043d\u0443\u044e<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>telnet localhost 25\nEHLO test\nAUTH LOGIN<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 Postfix \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>334 VXNlcm5hbWU6<\/code><\/pre>\n\n\n\n<p>\u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udfaf \u0418\u0442\u043e\u0433<\/h3>\n\n\n\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f Postfix \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 <code>\/etc\/postfix\/main.cf<\/code><\/strong>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>smtpd_sasl_auth_enable = yes<\/code><\/li>\n\n\n\n<li><code>smtpd_sasl_type = dovecot<\/code><\/li>\n\n\n\n<li><code>smtpd_sasl_path = private\/auth<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u0418 Postfix \u043e\u0436\u0438\u0434\u0430\u0435\u0442, \u0447\u0442\u043e Dovecot \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0441\u043e\u043a\u0435\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/spool\/postfix\/private\/auth<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SMTP\u2011\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0432 Postfix \u0447\u0435\u0440\u0435\u0437 Dovecot: \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b SASL \u0432 main.cf, \u043f\u0443\u0442\u044c \u043a \u0441\u043e\u043a\u0435\u0442\u0443 private\/auth, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 10-master.conf, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b SMTP AUTH \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a no SASL authentication mechanisms. \u041f\u043e\u043b\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0432\u044f\u0437\u043a\u0435 Postfix+Dovecot.<\/p>\n","protected":false},"author":1,"featured_media":1951,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[285],"tags":[334,322,319,330,327,329,328,333,331,335,332,324,286],"class_list":["post-1922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-285","tag-chroot-postfix","tag-dovecot-sasl","tag-no-sasl-authentication-mechanisms","tag-postfix-dovecot-","tag-postfix-","tag-private-auth-socket","tag-smtp-auth","tag-smtp--linux","tag-smtpd_sasl_auth_enable","tag-smtpd_sasl_path","tag-smtpd_sasl_type-dovecot","tag-wordpress-smtp-","tag-286"],"_links":{"self":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1922"}],"version-history":[{"count":3,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1922\/revisions"}],"predecessor-version":[{"id":1950,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1922\/revisions\/1950"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/media\/1951"}],"wp:attachment":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}