{"id":1928,"date":"2025-12-21T08:30:51","date_gmt":"2025-12-21T08:30:51","guid":{"rendered":"https:\/\/alexisiumus.ru\/?p=1928"},"modified":"2025-12-21T08:30:51","modified_gmt":"2025-12-21T08:30:51","slug":"%d0%ba%d0%b0%d0%ba-%d0%be%d1%82%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d1%80%d0%b5%d0%bb%d0%b5%d0%b9-%d0%b8-%d1%87%d1%82%d0%be-%d0%b1%d1%8b-%d0%bc%d0%be%d0%b9-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80","status":"publish","type":"post","link":"https:\/\/alexisiumus.ru\/?p=1928","title":{"rendered":"\u041a\u0430\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u0435\u043b\u0435\u0439 \u0438 \u0447\u0442\u043e-\u0431\u044b \u043c\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0430\u043c \u043f\u0438\u0441\u044c\u043c\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b"},"content":{"rendered":"\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u043b\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 Gmail \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c <strong>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441 \u0442\u0432\u043e\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong> \u2014 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u043e \u0432\u0430\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e, \u0447\u0442\u043e\u0431\u044b Postfix \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0447\u0430\u043b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0447\u0442\u0443 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0430 \u043d\u0435 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Gmail.<\/p>\n\n\n\n<p>\u041d\u0438\u0436\u0435 \u2014 \u0447\u0438\u0441\u0442\u044b\u0439, \u0442\u043e\u0447\u043d\u044b\u0439 \u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u043b\u0430\u043d.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf9 1. \u0423\u0434\u0430\u043b\u044f\u0435\u043c (\u0438\u043b\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c) relayhost<\/h3>\n\n\n\n<p>\u041e\u0442\u043a\u0440\u043e\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/postfix\/main.cf<\/code><\/pre>\n\n\n\n<p>\u041d\u0430\u0439\u0434\u0438 \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>relayhost = &#91;smtp.gmail.com]:587<\/code><\/pre>\n\n\n\n<p>\u0418 \u043b\u0438\u0431\u043e \u0443\u0434\u0430\u043b\u0438 \u0435\u0451, \u043b\u0438\u0431\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#relayhost = &#91;smtp.gmail.com]:587<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e Postfix \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0447\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 Gmail \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0451 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043f\u043e MX\u2011\u0437\u0430\u043f\u0438\u0441\u044f\u043c \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf9 2. \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c SASL\u2011\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e (\u043e\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430)<\/h3>\n\n\n\n<p>\u0412 \u0442\u043e\u043c \u0436\u0435 \u0444\u0430\u0439\u043b\u0435 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>smtp_sasl_auth_enable = yes\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd\nsmtp_sasl_security_options = noanonymous\nsmtp_sasl_tls_security_options = noanonymous\nsmtp_sasl_type = cyrus<\/code><\/pre>\n\n\n\n<p>\u0421\u0442\u0430\u043d\u0435\u0442 \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#smtp_sasl_auth_enable = yes\n#smtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd\n#smtp_sasl_security_options = noanonymous\n#smtp_sasl_tls_security_options = noanonymous\n#smtp_sasl_type = cyrus<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf9 3. (\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e) \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c Gmail<\/h3>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0448\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm \/etc\/postfix\/sasl_passwd\nrm \/etc\/postfix\/sasl_passwd.db<\/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\udd04 4. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Postfix<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart postfix<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea 5. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0440\u0435\u043b\u0435\u0439 \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>postconf | grep relayhost<\/code><\/pre>\n\n\n\n<p>\u0414\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u043e \u0438\u043b\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>relayhost =<\/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\udce4 6. \u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"test\" | mail -s \"direct test\" your@gmail.com\ntail -n 50 \/var\/log\/mail.log<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Postfix \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c MX\u2011\u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f<\/li>\n\n\n\n<li>\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e<\/li>\n\n\n\n<li>\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u0431\u0435\u0437 \u0440\u0435\u043b\u0435\u044f<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u0434\u043b\u044f \u043f\u0440\u044f\u043c\u043e\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u043e\u0447\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u00ab\u0431\u0435\u043b\u044b\u043c\u00bb<\/h3>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0438\u0441\u044c\u043c\u0430 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u0438, \u043d\u0443\u0436\u043d\u043e:<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u2714 \u0411\u0435\u043b\u044b\u0439 IP (\u043d\u0435 \u0432 \u0441\u043f\u0430\u043c\u2011\u043b\u0438\u0441\u0442\u0430\u0445)<\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">\u2714 PTR\u2011\u0437\u0430\u043f\u0438\u0441\u044c (reverse DNS) \u2192 \u0434\u043e\u043b\u0436\u043d\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0442\u0432\u043e\u0439 \u0434\u043e\u043c\u0435\u043d<\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">\u2714 SPF \u0434\u043b\u044f \u0442\u0432\u043e\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430<\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">\u2714 DKIM (\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e)<\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">\u2714 \u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u043e\u0440\u0442 25 (\u043d\u0435 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c)<\/h5>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0447\u0442\u043e\u2011\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u2014 \u043f\u0438\u0441\u044c\u043c\u0430 \u043c\u043e\u0433\u0443\u0442:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0443\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u043f\u0430\u043c<\/li>\n\n\n\n<li>\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f<\/li>\n\n\n\n<li>\u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u0435\u0439<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c SMTP\u2011\u0440\u0435\u043b\u0435\u0439 \u0432 Postfix \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043f\u0438\u0441\u0435\u043c \u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 relayhost, \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 SASL, \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u043e MX\u2011\u0437\u0430\u043f\u0438\u0441\u044f\u043c. \u0412\u0430\u0436\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f: PTR, SPF, DKIM \u0438 \u0431\u0435\u043b\u044b\u0439 IP.<\/p>\n","protected":false},"author":1,"featured_media":1955,"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":[313,354,352,349,292,353,357,355,356,286,350,351,358],"class_list":{"0":"post-1928","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-285","8":"tag-linux--","9":"tag-mx-","10":"tag-postfix--","12":"tag-ptr-","13":"tag-smtp--relayhost","14":"tag-smtp_sasl_auth_enable","15":"tag-spf-dkim","16":"tag--ip","17":"tag-286","18":"tag--relayhost","19":"tag-351","20":"tag--sasl_passwd"},"_links":{"self":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1928","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=1928"}],"version-history":[{"count":3,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1928\/revisions"}],"predecessor-version":[{"id":1956,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1928\/revisions\/1956"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/media\/1955"}],"wp:attachment":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}