{"id":125,"date":"2013-09-12T10:00:00","date_gmt":"2013-09-12T01:00:00","guid":{"rendered":"https:\/\/jikoman.sin-cos.com\/blog\/?p=125"},"modified":"2013-09-12T10:00:00","modified_gmt":"2013-09-12T01:00:00","slug":"dti_12","status":"publish","type":"post","link":"https:\/\/jikoman.sin-cos.com\/blog\/2013\/09\/dti_12\/","title":{"rendered":"DTI\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\uff12\uff17 \u300c\u30b3\u30bd\u30b3\u30bd\u300d"},"content":{"rendered":"<p>Postfix\u3067\u3001SASL\u3092\u4f7f\u304a\u3046\u3002<br>\nSASL\u3068\u306f\u3001<br>\n<a href=\"http:\/\/www.ipa.go.jp\/security\/rfc\/RFC2222JA.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.ipa.go.jp\/security\/rfc\/RFC2222JA.html<\/a><br>\n\u6587\u7ae0\u3060\u3051\u3067\u306f\u7406\u89e3\u3059\u308b\u306e\u306b\u4e00\u82e6\u52b4\u3002<\/p>\n<p>\u307e\u305a\u3001Postfix\u304cdovecot\u3092\u4f7f\u3063\u305fSASL\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3002<\/p>\n<p>$ postconf -a<br>\ncyrus<br>\ndovecot<br>\npostconf\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u4e00\u90e8\u30b3\u30d4\u3063\u3068\u304f\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;-a &nbsp; &nbsp; List &nbsp;the available SASL server plug-in types. &nbsp;The SASL plug-in<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type is selected with the smtpd_sasl_type configuration &nbsp;parame-<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ter by specifying one of the names listed below.<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<b>cyrus<\/b>&nbsp;&nbsp;This &nbsp;server &nbsp;plug-in &nbsp;is available when Postfix is built<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;with Cyrus SASL support.<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<b>dovecot<\/b><br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;This &nbsp;server &nbsp;plug-in &nbsp;uses &nbsp;the &nbsp;Dovecot &nbsp;authentication<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server, &nbsp;and &nbsp;is available when Postfix is built with any<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;form of SASL support.<br>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This feature is available with Postfix 2.3 and later.<\/p>\n<div style=\"margin: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto;\">\n<div style=\"-webkit-text-stroke-width: 0px; color: black; font-family: 'Hiragino Kaku Gothic Pro'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;\">\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001dovecot\u304c\u8868\u793a\u3055\u308c\u305f\u306e\u3067\u3001\u5bfe\u5fdc\u53ef\u80fd\u3068\u3044\u3046\u3053\u3068\u3067\u3002<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; color: black; font-family: 'Hiragino Kaku Gothic Pro'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;\">\n<\/div>\n<p>Dovecot SASL\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001Cyrus-SASL\u3092\u505c\u6b62\u3055\u305b\u3066\u554f\u984c\u306a\u3044\u3002<\/p>\n<p>$ sudo service saslauthd stop<br>\nsaslauthd \u3092\u505c\u6b62\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]<br>\n\u81ea\u52d5\u8d77\u52d5\u3082\u3057\u306a\u3044\u3088\u3046\u306b\u5909\u66f4\u3002<\/p>\n<p>$ sudo chkconfig saslauthd off\n<\/p><\/div>\n<p>Postfix\u306e\u8a2d\u5b9a\u306b\u8ffd\u8a18\u3057\u3066\u3001SASL\u3092\u53ef\u80fd\u306b\u5909\u66f4\u3002<\/p>\n<p>$ sudo vi \/etc\/postfix\/main.cf<br>\n\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<p>smtpd_sasl_auth_enable = yes<br>\nsmtpd_sasl_authenticated_header = no<br>\nsmtpd_sasl_type = dovecot<br>\nsmtpd_sasl_path = private\/auth<br>\nsmtpd_sasl_security_options = noanonymous<br>\nsmtpd_recipient_restrictions =<br>\n&nbsp; &nbsp; permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination<\/p>\n<p>broken_sasl_auth_clients = no<br>\n&nbsp;broken_sasl_auth_clients<\/p>\n<p>broken_sasl_auth_clients (\u30c7\u30d5\u30a9\u30eb\u30c8: no)<br>\n\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e AUTH \u30b3\u30de\u30f3\u30c9 (RFC 2554) \u3092\u5b9f\u88c5\u3057\u305f SMTP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306e\u76f8\u4e92\u904b\u7528\u6027\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u306f MicroSoft Outlook Express \u30d0\u30fc\u30b8\u30e7\u30f3 4 \u3084 MicroSoft Exchange \u30d0\u30fc\u30b8\u30e7\u30f3 5.0 \u3068\u3044\u3063\u305f\u4f8b\u304c\u3042\u308a\u307e\u3059\u3002<br>\n\u6a19\u6e96\u7684\u3067\u306a\u3044\u65b9\u6cd5\u306e AUTH \u30b5\u30dd\u30fc\u30c8\u3092 Postfix \u306b\u6848\u5185\u3055\u305b\u308b\u306b\u306f\u3001 &#8220;broken_sasl_auth_clients = yes&#8221; \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div>\nSASL\u3068\u306f\u95a2\u4fc2\u306a\u3044\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3082\u8ffd\u52a0\u3002<p><\/p>\n<p>disable_vrfy_command = yes<br>\nsmtpd_helo_required = yes\n<\/p><\/div>\n<p>\u6b21\u306b\u3001Dovecot\u5074\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3002<\/p>\n<p>$ sudo vi \/etc\/dovecot\/conf.d\/10-master.conf<br>\nunix_listener\u90e8\u5206\u3092\u5909\u66f4\u3002<\/p>\n<div class=\"p1\">\n<div>\n<div>\n<p>service auth {<br>\n&nbsp; # auth_socket_path points to this userdb socket by default. It&#8217;s typically<br>\n&nbsp; # used by dovecot-lda, doveadm, possibly imap process, etc. Its default<br>\n&nbsp; # permissions make it readable only by root, but you may need to relax these<br>\n&nbsp; # permissions. Users that have access to this socket are able to get a list<br>\n&nbsp; # of all usernames and get results of everyone&#8217;s userdb lookups.<br>\n&nbsp; unix_listener auth-userdb {<br>\n&nbsp; &nbsp; #mode = 0600<br>\n&nbsp; &nbsp; #user =<br>\n&nbsp; &nbsp; #group =<br>\n&nbsp; }<br>\n&nbsp; # Postfix smtp-auth<br>\n&nbsp; unix_listener \/var\/spool\/postfix\/private\/auth {<br>\n&nbsp; &nbsp; mode = 0666<br>\n&nbsp; &nbsp; user = postfix<br>\n&nbsp; &nbsp; group = postfix<br>\n&nbsp; }<br>\n&nbsp; # Auth process is run as this user.<br>\n&nbsp; #user = $default_internal_user<br>\n}\n<\/p><\/div>\n<\/div>\n<div>\n\u7d9a\u3044\u3066\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u7de8\u96c6\u3002<\/div>\n<\/div>\n<div>\n<p>$ sudo vi \/etc\/postfix\/master.cf<\/p>\n<div>\n\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3059\uff01<\/div>\n<p>submission inet n &nbsp; &nbsp; &nbsp; &#8211; &nbsp; &nbsp; &nbsp; n &nbsp; &nbsp; &nbsp; &#8211; &nbsp; &nbsp; &nbsp; &#8211; &nbsp; &nbsp; &nbsp; smtpd<br>\n# &nbsp;-o smtpd_tls_security_level=encrypt<br>\n&nbsp; -o smtpd_sasl_auth_enable=yes<br>\n&nbsp; -o smtpd_client_restrictions=permit_sasl_authenticated,reject<br>\n# &nbsp;-o milter_macro_daemon_name=ORIGINATING<br>\nsmtps &nbsp; &nbsp; inet &nbsp;n &nbsp; &nbsp; &nbsp; &#8211; &nbsp; &nbsp; &nbsp; n &nbsp; &nbsp; &nbsp; &#8211; &nbsp; &nbsp; &nbsp; &#8211; &nbsp; &nbsp; &nbsp; smtpd<br>\n&nbsp; -o smtpd_tls_wrappermode=yes<br>\n&nbsp; -o smtpd_sasl_auth_enable=yes<br>\n&nbsp; -o smtpd_client_restrictions=permit_sasl_authenticated,reject<br>\n# &nbsp;-o milter_macro_daemon_name=ORIGINATING<\/p>\n<div>\n\u6700\u5f8c\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3002<p><\/p>\n<p>$ sudo service dovecot restart<br>\nDovecot Imap \u3092\u505c\u6b62\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ &nbsp;OK &nbsp;]<br>\nDovecot Imap \u3092\u8d77\u52d5\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ &nbsp;OK &nbsp;]<br>\n$ sudo service postfix restart<br>\npostfix \u3092\u505c\u6b62\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]<br>\npostfix \u3092\u8d77\u52d5\u4e2d: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ &nbsp;OK &nbsp;]<br>\n\u6b21\u306f\u3001STL\u304b\u306a\u3002<\/p><\/div>\n<\/div>\n\n\n<p><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=25VJAH+72TKGQ+1QFI+109XW1\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"728\" height=\"90\" alt=\"\" src=\"https:\/\/www24.a8.net\/svt\/bgt?aid=130801769428&amp;wid=002&amp;eno=01&amp;mid=s00000008091006093000&amp;mc=1\"><\/a>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/www11.a8.net\/0.gif?a8mat=25VJAH+72TKGQ+1QFI+109XW1\" alt=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Postfix\u3067\u3001SASL\u3092\u4f7f\u304a\u3046\u3002 SASL\u3068\u306f\u3001 http:\/\/www.ipa.go.jp\/security\/rfc\/RFC2222JA.html \u6587\u7ae0\u3060\u3051\u3067\u306f\u7406\u89e3\u3059\u308b\u306e\u306b\u4e00\u82e6\u52b4\u3002 \u307e\u305a\u3001Postfix\u304cdoveco [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,130],"tags":[17,43],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-pc","category-130","tag-dti","tag-vps"],"_links":{"self":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":0,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"wp:attachment":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}