{"id":8631,"date":"2021-11-22T17:04:46","date_gmt":"2021-11-22T08:04:46","guid":{"rendered":"https:\/\/www.k-in.co.jp\/niwakan\/?p=8631"},"modified":"2021-11-24T16:15:37","modified_gmt":"2021-11-24T07:15:37","slug":"mail-server%e3%81%ae%e7%a7%bb%e8%a1%8c%ef%bc%88%e3%81%9d%e3%81%ae4%ef%bc%89%e5%8f%a4%e3%81%84%e6%96%b9%e3%82%92%e3%81%aa%e3%82%93%e3%81%a8%e3%81%8b%e3%81%97%e6%90%8d%e3%81%ad%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2021\/11\/8631\/","title":{"rendered":"mail server\u306e\u79fb\u884c\uff08\u305d\u306e4\uff09\u53e4\u3044\u65b9\u3092\u306a\u3093\u3068\u304b\u3057\u640d\u306d\u305f"},"content":{"rendered":"<p>\u304a\u5ba2\u3055\u3093\u304b\u3089\u300c\u30e1\u30fc\u30eb\u304c\u623b\u3063\u3066\u304f\u308b\uff01\u306a\u3093\u3068\u304b\u305b\u3044\uff01\u300d\u3068\u306e\u96fb\u8a71\u304c\u3002\uff08Oh! my Goodess!!\uff09<br \/>\nServer.app\u306e\u8a2d\u5b9a\u3068\u3001\u624b\u4f5c\u696d\u3067\u5f04\u3063\u3066\u3044\u308b\u5185\u5bb9\u306b\u4e0d\u4e00\u81f4\u304c\u51fa\u3066\u3044\u308b\u3053\u3068\u306f\u4e88\u60f3\u3055\u308c\u308b\u3002\u3060\u304c\u3001Server.app\u306f\u4e00\u753b\u9762\u5185\u3067\u306e\u8a2d\u5b9a\u3092\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u308f\u305f\u3063\u3066\u66f4\u65b0\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u3002<br \/>\n\u305d\u308c\u304c\u3069\u3053\u3060\u304b\u5224\u3089\u3093\u3002<br \/>\n<!--more--><\/p>\n<p>\u307e\u305a\u306fLog\u3092\u898b\u308b\u3002<br \/>\n<a href=\"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2021\/11\/8628\/\">\u524d\u56de<\/a>\u4fee\u6b63\u3057\u305f\u7b48\u306e<br \/>\ncheck_client_access hash:\/etc\/postfix\/reject_client<br \/>\n\u304c\u9593\u9055\u3048\u3002\u3068\u3044\u3046\u304b\u3001\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8\u306e\u307e\u307e\u3060\u3063\u305f\u3002<br \/>\ncheck_client_access hash:\/<strong>Library\/Server\/Mail\/Config<\/strong>\/postfix\/reject_client<br \/>\nPath\u304c\u5168\u304f\u9055\u3046\u3002(^_^;;<\/p>\n<p>\u6b21\u304c\u3053\u308c\u3002<\/p>\n<pre><code>Nov 22 10:33:59 macmini.k-in.co.jp postfix\/smtpd[3396]: NOQUEUE: reject: RCPT from mail-qk1-f170.google.com[209.85.222.170]: 450 4.7.1 <support@k-in.co.jp>: Recipient address rejected: Service is unavailable; from=<foopa.org@gmail.com> to=<support@k-in.co.jp> proto=ESMTP helo=<mail-qk1-f170.google.com><\/code><\/pre>\n<p><strong>Recipient address rejected<\/strong>\u3067\u3042\u308a\u3001<strong>Service is unavailable<\/strong>\u3067\u3042\u308b\u3002\uff08\u610f\u5473\u304c\u5224\u3089\u3093\uff09<br \/>\nGoogle\u5148\u751f\u306b\u304a\u9858\u3044\u3059\u308b\u3002<strong>\u300c\u53d7\u4fe1\u8005\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u62d2\u5426\u3055\u308c\u307e\u3057\u305f\uff1a\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u300d<\/strong>\u2026\u2026\u2026\u304a\u301c\u3044\u3001\u4e00\u756a\u809d\u5fc3\u306a\u30b5\u30dd\u30fc\u30c8\u3061\u3083\u3093\u5b9b\u306e\u30e1\u30fc\u30eb\u304c\u53d7\u3051\u3089\u308c\u306a\u3044\u3088\u301c\uff08\u6d99\uff09<\/p>\n<p>\u4ed6\u306b\u3082\u51fa\u3066\u304f\u308b\u3002<\/p>\n<pre><code>Nov 22 12:02:05 macmini.k-in.co.jp postfix\/trivial-rewrite[6680]: warning: do not list domain k-in.co.jp in BOTH virtual_alias_domains and relay_domains<\/code><\/pre>\n<p>\u3053\u308c\u306f\u3001virtual_alias_domains\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u308b\u3089\u3057\u3044\u3002\uff08<a href=\"http:\/\/blog.livedoor.jp\/itc_tommy\/archives\/474617.html\">warning: do not list domain [FQDN] in BOTH virtual_alias_domains and relay_domains<\/a>\u53c2\u7167\uff09<br \/>\n\u3063\u3066\u3053\u3068\u3067\u65e9\u901f\u3084\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u304a\u5ba2\u3055\u3093\u306e\u30e1\u30fc\u30eb\u304c\u5c4a\u304b\u306a\u304b\u3063\u305f\u306e\u306f\u3001\u9006\u5f15\u304d\u306b\u5931\u6557\u3057\u3066\u3044\u305f\u304b\u3089\u307f\u305f\u3044\u3060\u3002Gmail\u306e\u5834\u5408\u3082\u305d\u3046\u3067\u3001\u9006\u5f15\u304d\u306b\u5931\u6557\u3059\u308b\u3002\u305d\u3057\u3066\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f\u3053\u3068\u3067\u6c17\u304c\u4ed8\u3044\u305f\u3002<br \/>\n\u3063\u3066\u3053\u3068\u3067white list\u3068\u3057\u3066access\u3092\u4f7f\u304a\u3046\u3068\u3001ip\u3068domain\u3092\u8a31\u53ef\u3068\u3057\u3066\u66f8\u304d\u8fbc\u307f\u3001Server.app\u304b\u3089Mail Service\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<br \/>\n\u5909\u66f4\u524d\u3068\u540c\u3058\u72b6\u6cc1\u3068\u306a\u3063\u305f\u305f\u3081\u3001\u78ba\u8a8d\u3057\u3066\u307f\u308b\u306b\u3001\u306a\u3093\u3068access\u304c\u521d\u671f\u5316\u3055\u308c\u3066\u3044\u305f\u3002<br \/>\n\u540c\u69d8\u306b<\/p>\n<pre><code>Nov 22 13:20:36 macmini.k-in.co.jp postfix\/postfix-script[15522]: warning: not owned by _postfix: \/Library\/Server\/Mail\/Data\/mta\/.\/guid_device_maps.plist<\/code><\/pre>\n<p>\u3053\u308c\u3082\u6bce\u56de\u51fa\u3066\u304f\u308b\u3002chown\u3067\u5909\u66f4\u3057\u3066\u3082\u518d\u8d77\u52d5\u3092\u304b\u3051\u308b\u3068\u623b\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u524d\u56de\u3001\u4f5c\u6210\u3057\u305freject_client\u306bGmail\u304b\u3089\u306e\u53d7\u3051\u5165\u308c\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u7121\u7406\u306e\u3088\u3046\u3060\u3002<br \/>\ncheck_client_access <strong>hash:<\/strong>\/Library\/Server\/Mail\/Config\/postfix\/reject_client<br \/>\nhash\u306e\u5834\u5408\u3001ip range\u306e\u6307\u5b9a\u304c\u3067\u304d\u306a\u3044\u3089\u3057\u3044\u3002\u3053\u306e\u5834\u5408\u306fcidr\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f7f\u3046\u305d\u3046\u3060\u3002<br \/>\ncheck_client_access <strong>cidr:<\/strong>\/Library\/Server\/Mail\/Config\/postfix\/access.dir<br \/>\n\u3068\u3057\u3066\u3001access.dir\uff08access\u306f\u3059\u3050\u306b\u521d\u671f\u5316\u3055\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u4f7f\u3048\u306a\u3044\uff09\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f5c\u6210\u3057\u3066\u307f\u305f\u3002<\/p>\n<pre><code># Google\r\n209.85.128.0\/17         OK\r\n\r\n# yahoo.co.jp\r\n182.22.37.00\/24         OK\r\n\r\n# unkown address\r\n# UK\r\n159.65.48.0\/20          DISCARD\r\n# Poland\r\n193.169.255.0\/24        DISCARD\r\n193.56.29.0\/24          DISCARD\r\n# Netherlands\r\n91.199.168.0\/24         DISCARD\r\n91.199.168.0\/24         DISCARD\r\n# Pakistan\r\n203.135.22.0\/24         DISCARD\r\n# Brazil\r\n177.36.59.0\/24          DISCARD\r\n187.111.42.0\/24         DISCARD\r\n\r\n# China\r\n180.160.0.0\/13          DISCARD\r\n117.50.160.0\/19         DISCARD\r\n119.36.0.0\/16           DISCARD\r\n<\/code><\/pre>\n<p>Google\u3060\u3051\u3067\u306a\u304f\u3001Yahoo Japan\u3082\u9006\u5f15\u304d\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u3053\u3046\u306a\u308b\u3002<br \/>\n\u4e2d\u56fd\u30fb\u9999\u6e2f\u7b49\u304b\u3089\u9001\u3089\u308c\u3066\u6765\u308b\u306e\u306f\u3001Amazon\u306e\u6210\u308a\u3059\u307e\u3057\u7b49\u306e\u307f\u306a\u306e\u3067\u5168\u90e8\u6368\u3066\u308b\u3053\u3068\u306b\u3057\u3066\u3044\u308b\u3002<br \/>\nunknown\u306f\u4e00\u5fdc\u901a\u3055\u306a\u3044\u3088\u3046\u306b\u306f\u3057\u3066\u3044\u308b\u304c\u3001Server.app\u304c\u6642\u6298main.cf\u3092\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u6c17\u304c\u4ed8\u3051\u3070\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\nsmtpd_client_restrictions\u306f\u9806\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001OK\u3001REJECT\u5224\u5b9a\u304c\u901a\u3063\u305f\u3089\u7d42\u308f\u308a\u3089\u3057\u3044\u3002\u4eca\u307e\u3067\u306f\u4e00\u756a\u4e0b\u306b\u7f6e\u3044\u3066\u3044\u305fcheck_client_access\u3092\u524d\u306b\u6301\u3063\u3066\u304f\u308b\u3002\u307e\u305f\u3001spam\u30c1\u30a7\u30c3\u30af\u30b5\u30a4\u30c8\u306f\u4e00\u3064\u3067\u8db3\u308a\u308b\u3088\u3046\u3060\u3002\u4e00\u756a\u53b3\u3057\u3044\uff08\u3089\u3057\u3044\uff09<a href=\"https:\/\/www.spamhaus.org\/zen\/\">zen.spamhaus.org<\/a>\u3092\u4f7f\u308f\u305b\u3066\u8cb0\u3044\u4ed6\u306f\u6d88\u3059\u3002\uff08all.rbl.jp\u7b49\u3001\u65e2\u306b\u7121\u304f\u306a\u3063\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3082\u3042\u3063\u305f\u3002\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u898b\u3066\u77e5\u3063\u305f\uff09<\/p>\n<pre><code>smtpd_client_restrictions =\r\n permit_mynetworks\r\n permit_sasl_authenticated\r\n check_client_access cidr:\/Library\/Server\/Mail\/Config\/postfix\/access.dir\r\n check_client_access hash:\/Library\/Server\/Mail\/Config\/postfix\/reject_client\r\n reject_unknown_client\r\n reject_rbl_client zen.spamhaus.org\r\n permit<\/code><\/pre>\n<p>\u3053\u3053\u307e\u3067\u3057\u3066\u3082\u3001greylist.pl\u304c\u5148\u306b\u52d5\u3044\u3066\u3057\u307e\u3046\u305f\u3081\u3001Gmail\u306e\u53d7\u4fe1\u306e\u30c1\u30a7\u30c3\u30af\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u3002\uff08\u5411\u3053\u3046\u306email server\u306e\u3069\u308c\u304c\u518d\u9001\u3059\u308b\u304b\u5224\u3089\u306a\u3044\u3002\u3064\u307e\u308a\u6bce\u56degreylist.pl\u304c\u52d5\u304f\u53ef\u80fd\u6027\u304c\u3042\u308b\uff09<br \/>\nmain.cf\u7b49\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u3066\u518d\u8d77\u52d5\u3059\u308b\u3068\u3001greylist.pl\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u521d\u671f\u5316\u3055\u308c\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3042\u308b\u3002\u305d\u3057\u3066\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u306b\u3001unknown\u304c\u5c71\u307b\u3069\u3082\u6765\u3066\u53bb\u3063\u3066\u3044\u304f\u3002\u6b63\u76f4\u898b\u8f9b\u304f\u3066\u90aa\u9b54\u3067\u3042\u308b\u3002test\u3068\u304binfo\u3068\u304b\u3092\u9a19\u3063\u3066login\u3057\u3066\u304f\u308b\u306e\u304c\u66f4\u306b\u90aa\u9b54\u3060\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3057\u3066\u3001\u307e\u3060Gmail\u304c\u53d7\u3051\u53d6\u308c\u306a\u3044\u3002\u3064\u307e\u308a\u304a\u5ba2\u3055\u3093\u304b\u3089\u306e\u30e1\u30fc\u30eb\u3082\u53d7\u3051\u53d6\u308c\u306a\u3044\u3060\u308d\u3046\u3002<br \/>\n\u4eca\u65e5\u306f\u7528\u4e8b\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u308c\u4ee5\u4e0a\u3067\u304d\u306a\u3044\u3002\u5f31\u3063\u305f\u3001\u56f0\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u5ba2\u3055\u3093\u304b\u3089\u300c\u30e1\u30fc\u30eb\u304c\u623b\u3063\u3066\u304f\u308b\uff01\u306a\u3093\u3068\u304b\u305b\u3044\uff01\u300d\u3068\u306e\u96fb\u8a71\u304c\u3002\uff08Oh! my Goodess!!\uff09 Server.app\u306e\u8a2d\u5b9a\u3068\u3001\u624b\u4f5c\u696d\u3067\u5f04\u3063\u3066\u3044\u308b\u5185\u5bb9\u306b\u4e0d\u4e00\u81f4\u304c\u51fa\u3066\u3044\u308b\u3053\u3068\u306f\u4e88\u60f3\u3055\u308c\u308b\u3002\u3060\u304c\u3001Server.app\u306f\u4e00\u753b &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2021\/11\/8631\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;mail server\u306e\u79fb\u884c\uff08\u305d\u306e4\uff09\u53e4\u3044\u65b9\u3092\u306a\u3093\u3068\u304b\u3057\u640d\u306d\u305f&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":8632,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[115],"tags":[201],"class_list":["post-8631","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-postfixserverserver-appsystem"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.k-in.co.jp\/niwakan\/wp-content\/uploads\/2021\/11\/640px-Postfix-logo.svg_.png?fit=640%2C448&ssl=1","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/8631","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=8631"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/8631\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media\/8632"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=8631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=8631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=8631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}