{"id":9318,"date":"2022-10-25T16:51:37","date_gmt":"2022-10-25T07:51:37","guid":{"rendered":"https:\/\/www.k-in.co.jp\/niwakan\/?p=9318"},"modified":"2022-10-26T16:56:47","modified_gmt":"2022-10-26T07:56:47","slug":"mail-server%e3%81%ae%e7%a7%bb%e8%a1%8c%ef%bc%88%e3%81%9d%e3%81%ae12%ef%bc%89putty%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2022\/10\/9318\/","title":{"rendered":"mail server\u306e\u79fb\u884c\uff08\u305d\u306e12\uff09PuTTY\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>Dovecot\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u3001telnet\u63a5\u7d9a\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u305f\u3089\u2026\u2026\u2026\u7121\u304b\u3063\u305f\u3002<br \/>\nMac\u6a19\u6e96\u3069\u3053\u308d\u304b\u3001MacPorts\u306b\u3082\u7121\u3044\u3002<br \/>\n<!--more--><\/p>\n<p>\u306a\u306e\u3067\u4e92\u63db\u306e\u30a2\u30d7\u30ea\u3092\u63a2\u3057\u3066\u898b\u3064\u3051\u305f\u306e\u304c<a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/index.html\"><strong>PuTTY<\/strong><\/a>\u3060\u3063\u305f\u3002<br \/>\nMacPorts\u306b\u3082\u3042\u3063\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u7acb\u3061\u4e0a\u3052\u3066\u307f\u3066\u77e5\u3063\u305f\u3002<a href=\"https:\/\/www.xquartz.org\">XQuarts<\/a>\u4f7f\u3046\u306e\u306d\u3002\uff08\u5165\u3063\u3066\u3044\u305f\u304b\u3089\u554f\u984c\u7121\u3044\u3051\u3069\uff09<br \/>\n\u305d\u3057\u3066\u52d5\u304b\u3057\u3066\u307f\u305f\u3089\u3001\u3053\u3046\u3060\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"PuTTY error message\" >% putty\r\ndbus[29613]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!\r\n(putty:29613): Gtk-CRITICAL **: 16:09:40.914: gtk_box_gadget_distribute: assertion 'size &gt;= 0' failed in GtkScrollbar\r\n(putty:29613): Gtk-CRITICAL **: 16:09:40.916: gtk_box_gadget_distribute: assertion 'size &gt;= 0' failed in GtkScrollbar\r\n(putty:29613): Gtk-CRITICAL **: 16:09:40.918: gtk_box_gadget_distribute: assertion 'size &gt;= 0' failed in GtkScrollbar<\/pre>\n<p>\u306a\u3093\u3060\u3088\u3053\u308c\u301c\u3001\u5148\u306b\u9032\u3081\u306a\u3044\u3058\u3083\u306a\u3044\u304b\u301c\uff08\u6d99\uff09<br \/>\nXQuarts\u304c\u53e4\u3044\u306e\u304b\u3068\u601d\u3048\u3070\u3001\u6700\u65b0\uff082.8.2\uff09\u3060\u3057\u3001MacPorts\u306eX11\u52d5\u304b\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304b\u306a\uff1f<\/p>\n<p>\u8d77\u52d5\u30e1\u30cb\u30e5\u30fc\u307e\u3067\u306f\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3001<a href=\"https:\/\/www.xquartz.org\">XQuarts<\/a>\u304b\u3089\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u7acb\u3061\u4e0a\u304c\u3063\u305f\u3002<br \/>\n\u5358\u7d14\u306bhost name\u306e\u307f\u306e\u5165\u529b\u3060\u3068\u3001Terminal\u304b\u3089ssh\u3057\u305f\u65b9\u304c\u4f7f\u3044\u6613\u3044\u3068\u601d\u3046\u3002\u8a2d\u5b9a\u7d42\u308f\u3063\u3066\u3044\u308b\u3057\u306d\u3002<br \/>\n\u305d\u308c\u306b\u30a8\u30e9\u30fc\u306f\u76f8\u5909\u308f\u3089\u305a\u51fa\u308b\u3002<br \/>\n\u3064\u307e\u308a\u305d\u3046\u3086\u3046\u30e2\u30f3\u3060\u3068\u601d\u3046\u3053\u3068\u306b\u3057\u305f\u3002(^_^;;<br \/>\n\u3044\u304f\u3064\u304b\u63a2\u3057\u305f\u30b5\u30a4\u30c8\uff08\u5168\u90e8\u82f1\u8a9e\u3060\u3063\u305f\uff09\u3067\u3082\u3001Gtk\u3060\u304b\u306ebug\u3063\u3066\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u305f\uff08\u8aad\u307f\u9593\u9055\u3048\u304b\u3082\u77e5\u308c\u306a\u3044\uff09\u3057\u3001\u7126\u308b\u5fc5\u8981\u306f\u7121\u304b\u3063\u305f\u3089\u3057\u3044\u3002<\/p>\n<p>port 22\uff08ssh\uff09\u3067\u306a\u304f\u3001port 110\uff08pop\uff09\u3067\u63a5\u7d9a\u3057\u3066\u307f\u308b\u3002\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"PuTTY Message\" >Remoto side unnexpectedly closed network connection<\/pre>\n<p><strong>\u201c\u30ea\u30e2\u30fc\u30c8\u5074\u304c\u4e88\u671f\u305b\u305a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3092\u9589\u3058\u307e\u3057\u305f\u201d<\/strong>\u3068\u306e\u3053\u3068\u3002<br \/>\n\u73fe\u5728\u52d5\u3044\u3066\u3044\u308b\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3060\u3068\u958b\u304d\u306f\u3059\u308b\u3002\u304c\u3001\u5fdc\u7b54\u306f\u3057\u306a\u3044\u3002\u30c0\u30a4\u30a2\u30ed\u30b0\u3082\u51fa\u306a\u3044\u3002<br \/>\n\u9055\u3044\u304c\u51fa\u305f\u3053\u3068\u3067\u5c11\u3057\u5b09\u3057\u304f\u306a\u3063\u305f\u3002<br \/>\n\u3053\u308c\u3067\u5c11\u3057\u306f\u3001\u9032\u3080\u304b\u3082\u77e5\u308c\u306a\u3044\u3002\u9032\u307e\u306a\u3044\u304b\u3082\u77e5\u308c\u306a\u3044\u3002<\/p>\n<p>PuTTY\u3092\u4f7f\u3063\u3066\u307f\u3066\u308f\u304b\u3063\u305f\u3002<br \/>\nPostfix\u306e\u8a2d\u5b9a\u30df\u30b9\uff08\u3068\u8a00\u3046\u3088\u308a\u6c17\u3065\u3044\u3066\u3044\u306a\u304b\u3063\u305f\uff09\u3067<strong>master.cf<\/strong>\u3092\u5168\u304f\u5f04\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u3092\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"Postfix \"master.cf\"\" >submission inet n       -       n       -       -       smtpd\r\n  -o smtpd_sasl_auth_enable=yes\r\n  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\r\n  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject<\/pre>\n<p>\u4e0a\u8a184\u70b9\u306e\u3046\u3061\u3001\u6700\u5f8c\u306e\u884c\u306f\u3001<\/p>\n<pre class=\"lang:default decode:true \" title=\"Postfix \"master.cf\"\" >#  -o smtpd_recipient_restrictions=<\/pre>\n<p>\u3068\u3001\u4f55\u3082\u5165\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u30b3\u30d4\u30da\u3067\u8ffd\u52a0\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3067postfix\u3092\u518d\u8d77\u52d5\u3057\u305f\u3089\u3001<br \/>\nnmap\u3067port 587\u304c\u958b\u3044\u3066\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002<br \/>\n\u3053\u3053\u307e\u3067\u6765\u305f\u3002<br \/>\n\u6b21\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u306e\u78ba\u8a8d\u3002<br \/>\n\u3069\u3046\u3059\u3093\u306e\uff1f<br \/>\nGoogle\u5148\u751f\u306b\u805e\u3044\u3066\u307f\u305f\u3089\u3001<a href=\"https:\/\/www.yuulinux.tokyo\/10754\/\">SASL\u8a8d\u8a3c \u30b3\u30de\u30f3\u30c9\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u78ba\u8a8d<\/a>\u3092\u7d39\u4ecb\u3057\u3066\u304f\u308c\u305f\u3002<br \/>\n\u3055\u3066\u3001\u65e9\u901f\u3084\u3063\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"openssl\u3067\u63a5\u7d9a\u78ba\u8a8d\" >% openssl s_client -quiet -connect macmi2.k-in.co.jp:587 -starttls smtp\r\nDidn't find STARTTLS in server response, trying anyway...\r\n0036370A01000000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:ssl\/record\/ssl3_record.c:355:<\/pre>\n<p>\u30a8\u30e9\u30fc\u3067\u3059\u3063\u3066\u2026\u2026\u4f55\u304c\u60aa\u3044\u306e\uff1f\u8ab0\u304c\u60aa\u3044\u306e\uff1f\u308f\u3057\u304b\uff1f\u6211\u8f29\u3060\u306a\u3001\u3046\u3093\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u518d\u78ba\u8a8d\u3060\u306a\u301c\uff08\u6d99\uff09<br \/>\n\u3000\u30fb<br \/>\n\u3000\u30fb<br \/>\n\u3000\u30fb<br \/>\n\u518d\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3002<br \/>\n\u3068\u8a00\u3063\u3066\u3082\u3001\u73fe\u5728\u52d5\u3044\u3066\u3044\u308bpostfix\u306emain.cf\u3068\u4ed8\u304d\u5408\u308f\u305b\u3001postconf\u3067\u30ef\u30fc\u30cb\u30f3\u30b0\uff08\u4f7f\u3063\u3066\u306a\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\u3057\u3066\u3044\u305f\uff09\u306e\u51e6\u7406\u3001launchctl\u3067\u518d\u8d77\u52d5\uff08\u7d42\u4e86\uff06\u8d77\u52d5\uff09\u3067\u52d5\u4f5c\u3092\u78ba\u8a8d\u3002<br \/>\n\u3067\u3082\u30c0\u30e1\u2026\u2026\u4f55\u304c\u3044\u3051\u306a\u3044\uff1f\uff1f<br \/>\nps ax | grep postfix\u3057\u3066\u307f\u305f\u3089<br \/>\nmaster\u304c\u52d5\u304d\u3063\u3071\u306a\u3057\u3060\u3063\u305f\u3002<br \/>\n\u3053\u308c\u306e\u305b\u3044\u3067\u3001\u5909\u66f4\u3057\u305f\u5185\u5bb9\u304c\u53cd\u6620\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3089\u3057\u3044\u3002\uff08\u9055\u3046\u304b\u3082\u77e5\u308c\u306a\u3044\uff09<\/p>\n<pre class=\"lang:default decode:true \" title=\"openssl\u3067\u78ba\u8a8d\u3059\u308b\" >% openssl s_client -connect macmi2:587\r\nCONNECTED(00000005)\r\n00D6D90B01000000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:ssl\/record\/ssl3_record.c:355:\r\n---\r\nno peer certificate available\r\n---\r\nNo client certificate CA names sent\r\n---\r\nSSL handshake has read 5 bytes and written 297 bytes\r\nVerification: OK\r\n---\r\nNew, (NONE), Cipher is (NONE)\r\nSecure Renegotiation IS NOT supported\r\nCompression: NONE\r\nExpansion: NONE\r\nNo ALPN negotiated\r\nEarly data was not sent\r\nVerify return code: 0 (ok)\r\n---<\/pre>\n<p>\u306a\u3093\u3060\u304b\u3001ssl\u306ekey\u3001cer\u3001CA\u5404\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3059\u308b\u8a2d\u5b9a\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u304b\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u9055\u3063\u3066\u3044\u308b\u304b\u3001\u304d\u3061\u3093\u3068\u8aad\u307f\u8fbc\u3081\u3066\u3044\u306a\u3044\u3089\u3057\u3044\u3002<br \/>\n\u3067\u3082debug.log\u306b\u3082error.log\u306b\u3082\u5168\u304f\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u3093\u3060\u3088\u306a\u3041\u3002<br \/>\nmaster\u5074\u306a\u306e\u3060\u308d\u3046\u304b\uff1f<br \/>\n\u3059\u308b\u3068master.cf\u306e\u30c1\u30a7\u30c3\u30af\u306a\u306e\u304b\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dovecot\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u3001telnet\u63a5\u7d9a\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u305f\u3089\u2026\u2026\u2026\u7121\u304b\u3063\u305f\u3002 Mac\u6a19\u6e96\u3069\u3053\u308d\u304b\u3001MacPorts\u306b\u3082\u7121\u3044\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[115],"tags":[177,176,209,175,208,148,24],"class_list":["post-9318","post","type-post","status-publish","format-standard","hentry","category-software","tag-dovecot","tag-mail","tag-nmap","tag-postfix","tag-putty","tag-server","tag-system"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/9318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/comments?post=9318"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/9318\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=9318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=9318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=9318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}