{"id":10073,"date":"2024-11-27T12:01:15","date_gmt":"2024-11-27T03:01:15","guid":{"rendered":"https:\/\/www.k-in.co.jp\/niwakan\/?p=10073"},"modified":"2024-11-27T13:26:19","modified_gmt":"2024-11-27T04:26:19","slug":"mail-server%e3%81%ae%e7%a7%bb%e8%a1%8c%ef%bc%88%e3%81%9d%e3%81%ae40%ef%bc%89postfix%e3%80%81dovecot%e3%81%ae%e5%86%8d%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2024\/11\/10073\/","title":{"rendered":"mail server\u306e\u79fb\u884c\uff08\u305d\u306e40\uff09Postfix\u3001Dovecot\u306e\u518d\u69cb\u7bc9"},"content":{"rendered":"<p>Postfix\u306emain.cf\u3067\u306fTSL\u3001SASL\u3092\u5207\u3063\u3066\u3044\u305f\u3002<br \/>\n\u7406\u7531\u306f\u7c21\u5358\u3002<br \/>\n\u305d\u308c\u7528\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u5c45\u306a\u304b\u3063\u305f\u304b\u3089\u3060\u3002<br \/>\n<!--more--><\/p>\n<p>\u4eca\u56de\u3001<a href=\"https:\/\/trac.macports.org\/wiki\/howto\/SetupPostfix\">How to set-up Postfix<\/a>\u3068\u4e91\u3046\u30da\u30fc\u30b8\u304c\u691c\u7d22\u306b\u5f15\u3063\u639b\u304b\u3063\u305f\u3002<br \/>\nMacPorts\u306ePostfix\u3092SASL\u3001TSL\u306b\u5bfe\u5fdc\u3055\u305b\u308b\u65b9\u6cd5\u304c\u8f09\u3063\u3066\u3044\u305f\u3002<\/p>\n<p>zsh\u3092\u5165\u308c\u308d\u3068\u304b\u6709\u3063\u305f\u304c\u7121\u8996\u3059\u308b\u3002\uff08\u8981\u3089\u306a\u3044\u3082\u3093\uff09<\/p>\n<pre class=\"scroll\"><code>sudo port install -f postfix +dovecot_sasl +tls<\/code><\/pre>\n<p>\u6b64\u308c\u3067\u5bfe\u5fdc\u3067\u304d\u305d\u3046\u3060\u3002<\/p>\n<p>\u2026\u2026\u3067\u304d\u306a\u304b\u3063\u305f\u3002\uff08\u3060\u3088\u306d\u3047\u301c\uff09<\/p>\n<p>\u5148\u305a\u3001\u30ed\u30b0\u306b\u3053\u3046\u51fa\u305f\u3002<\/p>\n<pre class=\"scroll\"><code>Nov 26 17:22:36 mail postfix\/smtpd\/smtpd[93896]: warning: SASL: Connect to Dovecot auth socket 'smtpd' failed: No such file or directory\r\nNov 26 17:22:36 mail postfix\/smtpd\/smtpd[93896]: fatal: no SASL authentication mechanisms\r\nNov 26 17:22:37 mail postfix\/master[93819]: warning: process \/opt\/local\/libexec\/postfix\/smtpd pid 93896 exit status 1\r\nNov 26 17:22:37 mail postfix\/master[93819]: warning: \/opt\/local\/libexec\/postfix\/smtpd: bad command startup -- throttling<\/code><\/pre>\n<p>smtpd\u306e\u30bd\u30b1\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u5fc5\u8981\u3060\u3068\uff1f<br \/>\nsmtpd\u304c\u518d\u8d77\u52d5\u3057\u3066\u3044\u308b\u3068\u3002<\/p>\n<p>config file\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u307f\u308b\u3002<br \/>\n\u3059\u308b\u3068\u5927\u62b5\u306e\u5834\u5408\u3001\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u304f\u308c\u308b\u304b\u3089\u3002<\/p>\n<pre class=\"scroll\"><code>sudo postfix reload\r\npostfix\/postfix-script: refreshing the Postfix mail system\r\npostsuper: warning: bogus file name: maildrop\/.turd_postfix<\/code><\/pre>\n<p>\u4f55\u6545\u306bmaildrop\u304c\u95a2\u4fc2\u3057\u3066\u3044\u308b\u306e\u3060\u308d\u3046\u304b\uff1f<br \/>\n\u6700\u521d\u304b\u3089\u5165\u308c\u3066\u5c45\u306a\u3044\u3057\u3001postconf\u306e\u51fa\u529b\u306b\u3082\u51fa\u3066\u6765\u306a\u3044\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u51fa\u3066\u304d\u305f\u3002<\/p>\n<pre class=\"scroll\"><code>Nov 26 17:22:37 mail postfix\/submission\/smtpd[93897]: warning: No private key found in \/path\/to\/key\r\nNov 26 17:22:37 mail postfix\/submission\/smtpd[93897]: warning: error loading private keys and certificates from: \/path\/to\/certificates<\/code><\/pre>\n<p>\u305d\u3046\u4e91\u3048\u3070\u3001\u8a3c\u660e\u66f8\u3092\u8cfc\u5165\u3057\u3066\u3082\u8a2d\u7f6e\u3057\u3066\u5c45\u306a\u304b\u3063\u305f\u306a\u3002\uff08\u9060\u3044\u76ee\uff09<\/p>\n<p>key file\u3068cer\u3068ca\u306e3\u3064\u3092\u5165\u308c\u66ff\u3048\u3066\u3082\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<br \/>\n\u4f55\u6545\u306b\uff1f<\/p>\n<p>key file\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u89e3\u9664\u3057\u3066\u5c45\u306a\u3044\u305b\u3044\u304b\u2026\u2026\u3002\u3084\u308a\u65b9\u5fd8\u308c\u305f\u3088\u3002(^_^;;<\/p>\n<p><a href=\"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2024\/11\/10020\/\">SSL\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u306e\u66f4\u65b0<\/a>\u3063\u3066\u51e6\u306b\u66f8\u3044\u3066\u3042\u3063\u305f\u3002<br \/>\n\u691c\u7d22\u4fbf\u5229\u3060\u3002<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u629c\u3044\u305fkey file\u3092\u4f5c\u3063\u3066\u8aad\u307f\u8fbc\u307e\u305b\u305f\u304c\u3001\u30a8\u30e9\u30fc\u306f\u5909\u308f\u3089\u305a\u3002<\/p>\n<p>\u5e8f\u3067\u306b<a href=\"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2022\/10\/9318\/\">mail server\u306e\u79fb\u884c\uff08\u305d\u306e12\uff09PuTTY\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3067MacPorts\u306b\u3082\u7121\u3044\uff01\u3068\u53eb\u3093\u3067\u3044\u305ftelnet\u3060\u304c\u3001\u6709\u3063\u305f\u308f\u301c\u3002<br \/>\n<strong>inetutils<\/strong>\u3068\u4e91\u3046\u3082\u306e\u306e\u4e2d\u306b\u5165\u3063\u3066\u5c45\u305f\u3089\u3057\u3044\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u51fa\u3066\u6765\u306a\u3044\u306e\u3067\u3001\u7121\u3044\u3068\u601d\u3044\u8fbc\u3093\u3067\u3044\u305f\u3002<br \/>\n\/opt\/local\/libexec\/gnubin\/\u306e\u4e2d\u306b\u9694\u96e2\u3055\u308c\u3066\u3044\u305f\u3002<br \/>\npath\u3092\u7e4b\u3044\u3060\u3089\u8d77\u52d5\u3057\u305f\u306e\u3067\u3001\u826f\u3057\u3068\u3059\u308b\u3002<\/p>\n<p>\u9591\u8a71\u4f11\u984c<\/p>\n<p>\u4f55\u5ea6\u304bserver\u8a3c\u660e\u66f8\u3068\u4e2d\u9593\u8a3c\u660e\u66f8\u3092\u66f8\u304d\u76f4\u3057\u3001dovecot\u5074\u306f\u8aad\u307f\u8fbc\u3081\u308b\u69d8\u306b\u306a\u3063\u305f\u3002<br \/>\npostfix\u306fserver\u8a3c\u660e\u66f8\u3068\u9375\u30d5\u30a1\u30a4\u30eb\u304c\u540c\u3058\u3082\u306e\u3092\u6307\u3057\u3066\u5c45\u305f\u306e\u3067\u3001dovecot\u306b\u5408\u308f\u305b\u3066\u66f8\u304d\u63db\u3048\u305f\u3002\uff08\u4f55\u6545\u305d\u3046\u306a\u3063\u3066\u5c45\u305f\u306e\u304b\u306f\u5224\u3089\u306a\u3044\uff09<br \/>\n\u305d\u3057\u3066\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u5909\u308f\u3089\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u3046\u3093\u3002<br \/>\n\u3082\u3046\u8f9e\u3081\u305f\u3044\u3002\uff08\u6d99\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Postfix\u306emain.cf\u3067\u306fTSL\u3001SASL\u3092\u5207\u3063\u3066\u3044\u305f\u3002 \u7406\u7531\u306f\u7c21\u5358\u3002 \u305d\u308c\u7528\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u5c45\u306a\u304b\u3063\u305f\u304b\u3089\u3060\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,175,148],"class_list":["post-10073","post","type-post","status-publish","format-standard","hentry","category-software","tag-dovecot","tag-mail","tag-postfix","tag-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/10073","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=10073"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/10073\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=10073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=10073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=10073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}