{"id":12,"date":"2018-03-13T03:12:04","date_gmt":"2018-03-13T03:12:04","guid":{"rendered":"https:\/\/qvanta.pro\/?p=12"},"modified":"2018-03-13T03:12:04","modified_gmt":"2018-03-13T03:12:04","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-postfix-%d0%b4%d0%bb%d1%8f-%d0%be%d1%82%d0%bf%d1%80%d0%b0%d0%b2%d0%ba%d0%b8-%d0%bf%d0%be%d1%87%d1%82%d1%8b","status":"publish","type":"post","link":"https:\/\/blog.qvanta.ru\/?p=12","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Postfix \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u043e\u0447\u0442\u044b"},"content":{"rendered":"<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 postfix-\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u042f\u043d\u0434\u0435\u043a\u0441:<\/p>\n<p>1. \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs \">yum install cyrus-sasl-plain<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>2. \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b \/etc\/postfix\/main.cf<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs ini\"><span class=\"hljs-setting\">smtp_sasl_auth_enable = <span class=\"hljs-value\"><span class=\"hljs-keyword\">yes<\/span> <\/span><\/span>\n<span class=\"hljs-setting\">smtp_sasl_password_maps = <span class=\"hljs-value\">hash:\/etc\/postfix\/mailpasswd <\/span><\/span>\n<span class=\"hljs-setting\">smtp_sasl_security_options = <span class=\"hljs-value\">noanonymous <\/span><\/span>\n<span class=\"hljs-setting\">smtp_sasl_type = <span class=\"hljs-value\">cyrus <\/span><\/span>\n<span class=\"hljs-setting\">smtp_sasl_mechanism_filter = <span class=\"hljs-value\">login<\/span><\/span>\n<span class=\"hljs-setting\">smtp_sender_dependent_authentification = <span class=\"hljs-value\"><span class=\"hljs-keyword\">yes<\/span> <\/span><\/span>\n<span class=\"hljs-setting\">sender_dependent_relayhost_maps = <span class=\"hljs-value\">hash:\/etc\/postfix\/sender_relay<\/span><\/span>\n<span class=\"hljs-setting\">sender_canonical_maps = <span class=\"hljs-value\">hash:\/etc\/postfix\/canonical <\/span><\/span>\n<span class=\"hljs-setting\">smtp_generic_maps = <span class=\"hljs-value\">hash:\/etc\/postfix\/generic\n<\/span><\/span>smtp_use_tls = yes<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>3. \u0432 \/etc\/postfix\/mailpasswd \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs css\"><span class=\"hljs-attr_selector\">[smtp.yandex.ru]<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span class=\"hljs-tag\">www<\/span><span class=\"hljs-at_rule\">@site.ru<span class=\"hljs-keyword\">:password<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>4. \u0432 \/etc\/postfix\/sender_relay \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0443 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u043a \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0441\u043b\u0443\u0436\u0431\u0430\u043c<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs css\"><span class=\"hljs-at_rule\">@site.ru [smtp.yandex.ru] \nwww@site.ru [smtp.yandex.ru]<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>5. \u0432 \/etc\/postfix\/canonical \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs css\"><span class=\"hljs-at_rule\">@site.ru\u00a0\u00a0\u00a0www@site.ru\u00a0\n<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>6. \u0432 \/etc\/postfix\/generic \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043f\u043e\u0447\u0442\u044b \u0430\u0434\u043c\u0438\u043d\u0443<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs css\"><span class=\"hljs-tag\">root<\/span><span class=\"hljs-at_rule\">@<span class=\"hljs-keyword\">localhost<\/span> admin@site.ru\u00a0 \nbitrix@localhost admin@site.ru\u00a0<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 postmap \u0434\u043b\u044f \/etc\/postfix\/generic, \/etc\/postfix\/canonical, \/etc\/postfix\/sender_relay, \u00a0\/etc\/postfix\/mailpasswd<\/p>\n<p>7. \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 php.ini<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs ini\"><span class=\"hljs-setting\">sendmail_path = <span class=\"hljs-value\">sendmail -t -i -f www@<span class=\"hljs-at_rule\">site.ru<\/span> <\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>8. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u043b\u0443\u0436\u0431\u044b<\/p>\n<div class=\"blog-post-code\" title=\"\u041a\u043e\u0434\">\n<table class=\"blogcode\">\n<tbody>\n<tr>\n<td>\n<pre class=\" hljs nginx\"><span class=\"hljs-title\">chkconfig<\/span> saslauthd <span class=\"hljs-built_in\">on<\/span>\nservice saslauthd restart\u00a0\u00a0 \nchkconfig postfix <span class=\"hljs-built_in\">on<\/span>\nservice postfix restart\nservice httpd restart<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 postfix-\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u042f\u043d\u0434\u0435\u043a\u0441: 1. \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b yum install cyrus-sasl-plain 2. \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b \/etc\/postfix\/main.cf smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:\/etc\/postfix\/mailpasswd smtp_sasl_security_options = noanonymous smtp_sasl_type = cyrus smtp_sasl_mechanism_filter = login smtp_sender_dependent_authentification = yes sender_dependent_relayhost_maps = hash:\/etc\/postfix\/sender_relay sender_canonical_maps = hash:\/etc\/postfix\/canonical smtp_generic_maps = hash:\/etc\/postfix\/generic smtp_use_tls = yes 3. \u0432 \/etc\/postfix\/mailpasswd \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u043d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=\/wp\/v2\/posts\/12"}],"collection":[{"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":0,"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qvanta.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}