{"id":3258,"date":"2012-12-14T14:34:33","date_gmt":"2012-12-14T12:34:33","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=3258"},"modified":"2024-02-23T12:27:18","modified_gmt":"2024-02-23T10:27:18","slug":"mta-ssltls-auth-only","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=3258","title":{"rendered":"[exim, postfix] MTA: SSL\/TLS auth only"},"content":{"rendered":"<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0447\u0442\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 <strong>SSL\/TLS<\/strong>. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">exim<\/span><\/strong><\/em><\/p>\n<p><code>auth_advertise_hosts = ${if eq {$tls_cipher}{}{}{*}}<br \/>\ntls_on_connect_ports = 465<\/code><\/p>\n<p><span style=\"color: #993366;\"><em>\u0412\u043e\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u044b\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437 \u0441\u043f\u0440\u0430\u0432\u043a\u0438:<\/em><\/span><\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 exim \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>EHLO<\/strong>, \u043e\u043d \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0442\u0435\u0445 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u044f\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c:<br \/>\n<em><span style=\"color: #ff6600;\">&#8211; \u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0445\u043e\u0441\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 auth_advertise_hosts (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8211; *)<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> &#8211; \u0415\u0441\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043e\u043f\u0446\u0438\u044f server_advertise_condition, \u0435\u0451 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, &#8220;0&#8221;, &#8220;no&#8221;, \u0438\u043b\u0438 &#8220;false&#8221;<\/span><\/em><\/p>\n<p>\u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 <strong>tls<\/strong>, \u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>auth_advertise_hosts<\/strong> \u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0435, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u044b\u043c <strong>*<\/strong>, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0445\u043e\u0441\u0442 \u043f\u0440\u043e\u0448\u0451\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 <strong>tls<\/strong>.<\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u0442\u043e \u0442\u0430\u043a:<\/p>\n<p><code>acl_smtp_mail = acl_check_mail<br \/>\n...<br \/>\nbegin acl<br \/>\n...<br \/>\nacl_check_mail:<br \/>\ndeny\u00a0 \u00a0sender_domains\u00a0 = !+ssl_local_domains<br \/>\n!condtition\u00a0 \u00a0 \u00a0= ${if or{{eq{$interface_port}{465}} {eq{$tls_cipher}{}} } }<br \/>\nmessage\u00a0 \u00a0 \u00a0 \u00a0 \u00a0= SMTP is available only with SSL or TLS connection enabled.<br \/>\n...<br \/>\naccept<br \/>\n<\/code><br \/>\n<em><strong><span style=\"color: #ff6600;\">postfix<\/span><\/strong><\/em> (\u0432 <strong>main.cf<\/strong>)<\/p>\n<p><code>smtpd_tls_auth_only = yes<br \/>\nsmtpd_recipient_restrictions = check_client_access, permit_sasl_authenticated, reject<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0447\u0442\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 SSL\/TLS. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438: exim auth_advertise_hosts = ${if eq {$tls_cipher}{}{}{*}} tls_on_connect_ports = 465 \u0412\u043e\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u044b\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437 \u0441\u043f\u0440\u0430\u0432\u043a\u0438: \u041a\u043e\u0433\u0434\u0430 exim \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 EHLO, \u043e\u043d \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0442\u0435\u0445 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u044f\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c: &#8211; \u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0445\u043e\u0441\u0442 \u0434\u043e\u043b\u0436\u0435\u043d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10],"tags":[],"class_list":["post-3258","post","type-post","status-publish","format-standard","hentry","category-mail","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3258"}],"version-history":[{"count":6,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3258\/revisions"}],"predecessor-version":[{"id":6348,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3258\/revisions\/6348"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}