{"id":830,"date":"2014-04-25T22:03:13","date_gmt":"2014-04-25T13:03:13","guid":{"rendered":"http:\/\/www.k-in.co.jp\/niwakan\/?p=830"},"modified":"2021-11-18T09:34:28","modified_gmt":"2021-11-18T00:34:28","slug":"mail-server%e3%81%93%e3%81%91%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2014\/04\/830\/","title":{"rendered":"Mail Server\u3053\u3051\u305f"},"content":{"rendered":"<p>\u5148\u65e5\u3001Mac mini Server\u304cOS\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u306b\u3053\u3051\u305f\u3053\u3068\u3092<a href=\"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2014\/04\/724\/\" title=\"\u307e\u305f\u304a\u304b\u3057\u304f\u306a\u3063\u305f\">\u8a18\u8f09<\/a>\u3057\u305f\u3093\u3067\u3059\u3051\u3069\u3002<br \/>\n\u4f55\u3068\u304b\u898b\u305f\u76ee\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001\u30e1\u30fc\u30eb\u306e\u9063\u308a\u53d6\u308a\u304c\u5168\u304f\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\uff08Oh! My Goodess\uff09<br \/>\n<!--more--><br \/>\n\u72b6\u6cc1\u3068\u3057\u3066\u306f\u3001smtp\u306e\u30ed\u30b0\u3092\u4e0b\u304b\u3089\u4e0a\u3078\u3068\u8ffd\u3044\u304b\u3051\u3066\u898b\u306a\u304c\u3089\u8a18\u8f09\u3057\u307e\u3059\u3068\u3001<br \/>\n<code>Apr 25 21:43:50 mailserver.exsample.com postfix\/error[xxxxx]: xxxxxxxxxxxx: to=<nobody@exsample.com>, relay=none, delay=103, delays=103\/0.19\/0\/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)<\/code><br \/>\n\u3068\u8a00\u3063\u305f\u611f\u3058\u3002\u305d\u308c\u306b\u3001<br \/>\n<code>Apr 25 21:42:28 macmini.k-in.co.jp postfix\/smtp[xxxxx]: B4FC0428D4AC: to=<nobody@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=21, delays=0.29\/0.03\/21\/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting)<\/code><br \/>\n\u306a\u3093\u3066\u3044\u3046\u3082\u306e\u3082\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u66f4\u306b\u30b7\u30b9\u30c6\u30e0\u30ed\u30b0\u3067\u306f\u3001<br \/>\n<code>Apr 25 22:06:23 macmini com.apple.launchd[1] (org.calendarserver.agent[12281]): Exited with code: 1<br \/>\nApr 25 22:06:23 macmini com.apple.launchd[1] (org.calendarserver.agent): Throttling respawn: Will start in 9 seconds<\/code><br \/>\n\u4f55\u3066\u8a00\u3046\u3082\u306e\u307e\u3067\u51fa\u3066\u3044\u307e\u3057\u3057\u305f\u3002<br \/>\n\u4f55\u6545\u306b\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u307e\u3067\u3053\u3051\u3066\u3044\u308b\u3093\u3060\u2026\u2026\u3002<br \/>\n\u30ab\u30ec\u30f3\u30c0\u30fc\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u7acb\u3061\u4e0a\u304c\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u4f7f\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u6b62\u3081\u307e\u3059\u3002\u3059\u3063\u3071\u308a\u8ae6\u3081\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u3042\u3063\u3061\u3053\u3063\u3061\u8abf\u3079\u3066\u307f\u305f\u3089\u3001postfix\u304camavis\u306b\u63a5\u7d9a\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u8d77\u304d\u3066\u3044\u308b\u6a21\u69d8\u3068\u884c\u304d\u7740\u304d\u307e\u3057\u305f\u3002<br \/>\n\u78ba\u304b\u306b\u3001\u30a2\u30f3\u30c1\u30a6\u30a4\u30eb\u30b9\u306e\u30ed\u30b0\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u30c7\u30fc\u30bf\u66f4\u65b0\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u307f\u305f\u3044\u3060\u3057\u3002\uff08\u4f55\u304c\u8d77\u304d\u3066\u3044\u308b\u306e\u304b\u3001\u3082\u3046\u3055\u3063\u3071\u308a\u3067\u3059\uff09<\/p>\n<p>\u3067\u306f\u3068\u3001Server.app\u3067\u30e1\u30fc\u30eb\u306e\u30d5\u30a3\u30eb\u30bf\u3092\u5168\u3066\u5207\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u2026\u2026\u72b6\u6cc1\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<br \/>\n\u30d5\u30a3\u30eb\u30bf\u3092\u9806\u306b\u5207\u308a\u3001\u30e1\u30fc\u30eb\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3002\u305d\u306e\u5ea6\u306b\u3001\u5f53\u7136\u306e\u5982\u304f\u672c\u4f53\u306e\u518d\u8d77\u52d5\u3082\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3092\u7e70\u308a\u8fd4\u3059\u3082\u9032\u5c55\u7121\u3057\u3002<br \/>\n\u305f\u3060\u3001postfix\u306e\u30a8\u30e9\u30fc\u304clocalhost\u3068\u306e\u63a5\u7d9a\u3067\u8d77\u304d\u3066\u3044\u308b\u306e\u3067\u3001\u3069\u3046\u3057\u3066\u3082\u30a2\u30f3\u30c1\u30a6\u30a4\u30eb\u30b9\u7d61\u307f\u3068\u3057\u304b\u601d\u3048\u307e\u305b\u3093\u3002<br \/>\n\u306a\u306e\u3067\u3001amavis\u306f\u66ab\u3057\u306e\u9593\u306f\u8ae6\u3081\u308b\u4e8b\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u56f0\u308b\u306e\u306f\u6642\u3005\u6765\u308b\u30b9\u30d1\u30e0\uff08\u3064\u3044\u3067\u306b\u30a6\u30a4\u30eb\u30b9\u4ed8\u304d\uff09\u306a\u3093\u3067\u3059\u304c\u3001\u3082\u3046\u30e1\u30fc\u30eb\u30bd\u30d5\u30c8\u306b\u4e38\u6295\u3052\u3057\u307e\u3059\u3002<br \/>\n\u3067\u3001\u30d5\u30a3\u30eb\u30bf\u3092\u5168\u90e8\u5207\u3063\u305f\u3068\u3053\u308d\u3067\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u307f\u307e\u3057\u305f\u3002<br \/>\n<code>sudo postsuper -r ALL<br \/>\nsudo postqueue -f<br \/>\nsudo mailq<\/code><br \/>\n\u4e00\u3064\u76ee\u3067\u3001\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u3092\u4f5c\u308a\u76f4\u3057\uff08\u30ad\u30e5\u30fc\u306b\u5165\u308c\u76f4\u3059\uff09\u3001<br \/>\n\u4e8c\u3064\u76ee\u3067\u3001\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u3092\u5f37\u5236\u518d\u914d\u9001\uff08\u30ad\u30e5\u30fc\u306e\u30d5\u30e9\u30c3\u30b7\u30e5\uff09\u3002<br \/>\n\u4e09\u3064\u76ee\u306f\u3001\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u306e\u4e2d\u8eab\u306e\u78ba\u8a8d\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u306b\u6e9c\u307e\u3063\u3066\u3044\u305f\u3082\u306e\u306f\u6392\u51fa\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\namavis\u306b\u6295\u3052\u3088\u3046\u3068\u3057\u3066\u8a70\u307e\u3063\u305f\u30ad\u30e5\u30fc\u306f\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u51fa\u3066\u3053\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u5f37\u5236\u7684\u306b\u30ad\u30e5\u30fc\u3092\u8d77\u3053\u3057\u76f4\u3059\u3068\u3001\u3042\u3063\u3055\u308a\u6392\u51fa\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3046\u4e91\u3046\u3082\u306e\u306a\u306e\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002\uff1ePostfix<\/p>\n<p>\u3057\u304b\u3057\u3001\u539f\u56e0\u3068\u306a\u3063\u3066\u3044\u308bamavis\u3068clamav\u306b\u95a2\u3057\u3066\u306f\u653e\u308a\u3063\u3071\u306a\u3057\u306e\u307e\u307e\u3067\u3059\u3002<br \/>\n\u4f55\u3068\u304b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u3051\u3069\u3001\u30b9\u30d1\u30e0\u6765\u6372\u308b\u304b\u3089\u3002<br \/>\n\u3067\u3082\u3001\u4eca\u65e5\u306f\u3053\u3053\u307e\u3067\u3002<\/p>\n<p>\u3064\u3044\u3067\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3068\u3001localhost\u304c\u554f\u984c\u306a\u3089\u6700\u521d\u306b\u898b\u308b\u306e\u306fDNS\u3067\u3059\u3002\uff08\u5c11\u306a\u304f\u3068\u3082\u50d5\u306f\u305d\u3046\u3057\u307e\u3057\u305f\uff09<br \/>\nsmtp\u3067\u306e\u8ee2\u9001\u5931\u6557\u306f\u3001DNS\u306e\u9006\u5f15\u304d\u304c\u52b9\u304b\u306a\u304f\u3066\u8d77\u3053\u308b\u3053\u3068\u304c\u591a\u3044\u3088\u3046\u3060\u304b\u3089\u3067\u3059\u3002<br \/>\n\u5b9f\u969b\u3001DNS\u304c\u4e0a\u624b\u304f\u767b\u9332\u3067\u304d\u3066\u3044\u306a\u304f\u3066\u3001\u5916\u90e8\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u62d2\u5426\u3055\u308c\u305f\u3053\u3068\u3082\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u306f\u554f\u984c\u306a\u304f\u9006\u5f15\u304d\u3067\u304d\u308b\u306e\u3067\u3001\u5148\u305a\u306f\u554f\u984c\u304c\u8d77\u3053\u308a\u307e\u305b\u3093\u3002\uff08\u8d77\u3053\u3063\u3066\u3044\u307e\u305b\u3093\u2026\u2026\u591a\u5206\uff09<br \/>\n\u3067\u3001\u4eca\u56de\u306b\u3064\u3044\u3066\u306a\u3093\u3067\u3059\u3051\u3069\u3001\u9006\u5f15\u304d\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002\uff08localhost\u306a\u306e\u306b\uff01\uff09<br \/>\n\u3088\u304f\u3088\u304f\u898b\u3066\u307f\u305f\u3089\u3001bind\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5e7e\u3064\u304b\u554f\u984c\u304c\u3042\u308b\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002<br \/>\n<code>named-checkconf<\/code><br \/>\n\u3067\u78ba\u8a8d\u3057\u305f\u3089\u3001\u307e\u3041\u51fa\u3066\u304f\u308b\u306f\u51fa\u3066\u304f\u308b\u308f\u3002<br \/>\nworning\u304c\u3088\u304f\u3082\u307e\u3041\u3002\uff08\u4f7f\u3063\u3066\u3044\u306a\u3044\u30c6\u30b9\u30c8\u7528\u306ezone\u3060\u3063\u305f\u306e\u3067\u3001\u6c17\u306b\u3082\u3057\u3066\u307e\u305b\u3093\u3067\u3057\u305f\u2026\u2026\u9177\u3044\u3082\u3093\u3060\uff09<br \/>\n\u305d\u308c\u3089\u306b\u7d1b\u308c\u3066localhost\u306e\u9006\u5f15\u304d\u7528\u30d5\u30a1\u30a4\u30eb\uff08named.local\uff09\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u308b\u306e\u306b\u6c17\u4ed8\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3059\u3050\u306b\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\uff08NetBSD\u3067\u3059\u304c\uff09\u304b\u3089\u30b3\u30d4\u30fc\u3057\u3066\u7f6e\u304d\u63db\u3048\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u554f\u984c\u306b\u306f\u95a2\u4fc2\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3088\u3046\u3067\u89e3\u6c7a\u306b\u306f\u81f3\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p><strong>2014.09.04\u8ffd\u8a18<\/strong><br \/>\n\u4e0a\u3067 &#8216;named-checkconf&#8217; \u3068\u3060\u3051\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306fServer.app\u306e\u4e2d\u306b\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3046\u3061\u306e\u5834\u5408\u3067\u306f<br \/>\n<code>sudo \/Applications\/Server.app\/Contents\/ServerRoot\/usr\/sbin\/named-checkconf<\/code><br \/>\n\u3068\u66f8\u304f\u3068\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u3001Mac mini Server\u304cOS\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u306b\u3053\u3051\u305f\u3053\u3068\u3092\u8a18\u8f09\u3057\u305f\u3093\u3067\u3059\u3051\u3069\u3002 \u4f55\u3068\u304b\u898b\u305f\u76ee\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001\u30e1\u30fc\u30eb\u306e\u9063\u308a\u53d6\u308a\u304c\u5168\u304f\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\uff08Oh! My Goodess\uff09<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[115],"tags":[148,24],"class_list":["post-830","post","type-post","status-publish","format-standard","hentry","category-software","tag-server","tag-system"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/830","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=830"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/830\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}