{"id":9287,"date":"2022-10-17T16:38:34","date_gmt":"2022-10-17T07:38:34","guid":{"rendered":"https:\/\/www.k-in.co.jp\/niwakan\/?p=9287"},"modified":"2022-10-17T16:38:34","modified_gmt":"2022-10-17T07:38:34","slug":"mail-server%e3%81%ae%e7%a7%bb%e8%a1%8c%ef%bc%88%e3%81%9d%e3%81%ae8%ef%bc%89postfix%e3%81%a8amavisd-new%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2022\/10\/9287\/","title":{"rendered":"mail server\u306e\u79fb\u884c\uff08\u305d\u306e8\uff09Postfix\u3068Amavisd-new\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p>\u672c\u683c\u7684\u306bmail server\u3092\u79fb\u884c\u3057\u306a\u3044\u3044\u3051\u306a\u304f\u306a\u3063\u305f\u3002<br \/>\n\u9811\u5f35\u308d\u3046\u3002\u8a66\u884c\u932f\u8aa4\u304c\u5897\u3048\u3066\u308b\u3051\u3069\u3002<br \/>\nDovecot\u306f\u307e\u3060\u96e3\u3057\u3044\u3002<br \/>\n<a href=\"https:\/\/www.postfix.org\">Postfix<\/a>\u3092\u4ed5\u4e0a\u3052\u3066\u3057\u307e\u304a\u3046\u3002<br \/>\n<!--more--><\/p>\n<p>\u3055\u3066\u3001postfix\u306bssl\u306e\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307e\u305b\u3066\u307f\u305f\u3002<br \/>\n<a href=\"https:\/\/www.macports.org\">MacPorts<\/a>\u306a\u306e\u3067\u3001base path\u306f\/opt\/local\u3068\u306a\u308b\u3002<br \/>\nmain.cf\u306b\u6b21\u3092\u66f8\u304d\u8fbc\u3093\u3060\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"main.cf\">ssl_cert_file = \/opt\/local\/etc\/ssl\/certs\/mail.k-in.co.jp.cert\r\nssl_ca_file = \/opt\/local\/etc\/ssl\/certs\/mail.k-in.co.jp.chain\r\nssl_key_file = \/opt\/local\/etc\/ssl\/private\/mail.k-in.co.jp.ckey.pem<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u306f\u6975\u529b\u5171\u901a\u5316\u3057\u305f\u3044\u3002<br \/>\ndovecot\u3068\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u5171\u901a\u3002<br \/>\ndovecot\u306f\u4e2d\u9593\u8a3c\u660e\u66f8\u3092\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u306b\u304f\u3063\u3064\u3051\u3061\u3083\u3046\u3089\u3057\u3044\u306e\u3067\u3001pem\u3092\u53d6\u3063\u305f\u5f62\u3067\u5225\u3051\u3066\u3042\u308b\u3002<br \/>\n\u3064\u3044\u3067\u306b\u3001\u4eca\u307e\u3067\u9001\u3089\u308c\u3066\u6765\u305f\u30b9\u30d1\u30e0\u306e\u4e00\u89a7\u3092\u79fb\u884c\u3059\u308b\u3002<br \/>\n\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u3063\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"main.cf \" smtpd_client_restrictions=\"\">smtpd_client_restrictions =\r\n check_client_access cidr:\/opt\/local\/etc\/postfix\/access\r\n check_client_access hash:\/opt\/local\/etc\/postfix\/access_client\r\n check_client_access cidr:\/opt\/local\/etc\/postfix\/access_cidr\r\n check_client_access hash:\/opt\/local\/etc\/postfix\/reject_client\r\n check_client_access cidr:\/opt\/local\/etc\/postfix\/reject_cidr\r\n permit_mynetworks\r\n permit_sasl_authenticated\r\n reject_unknown_client\r\n reject_rbl_client zen.spamhaus.org\r\n permit<\/pre>\n<p>access_client\u306f\u9006\u5f15\u304d\u3067\u304d\u306a\u3044\u304a\u5ba2\u3055\u3093\u306e\u30a2\u30c9\u30ec\u30b9\u4e00\u89a7\u3002<br \/>\naccess_cidr\u306fGoogle\u7b49\u306e\u8907\u6570\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u9001\u3089\u308c\u3066\u304f\u308b\u3082\u306e\u3002<br \/>\nreject_client\u306f\u4e3b\u306b\u56fd\u5185\uff08\u7279\u306b\u30b5\u30af\u30e9\u30cd\u30c3\u30c8\uff09\u3067\u4e00\u62ec\u3068\u306f\u3044\u304b\u306a\u3044\u3082\u306e\u3002<br \/>\nreject_cidr\u306f\u56fd\u5916\u3001\u4e2d\u56fd\u304c\u591a\u304b\u3063\u305f\u304c\u6700\u8fd1\u306f\u30ed\u30b7\u30a2\u304c\u5897\u3048\u3066\u304d\u305f\u3002<br \/>\n\u3053\u3053\u307e\u3067\u3067\u3001launchctl\u3067\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"postfix \" error=\"\" log=\"\">Oct 17 14:57:29 macmi2 spamd[28037]: config: no rules were found! Do you need to run 'sa-update'?<\/pre>\n<p>\u30a8\u30e9\u30fc\u3067\u3059\u3088\u301c<br \/>\n\u8abf\u3079\u308b\u3068SpamAssassin\u304c\u5fc5\u8981\u3089\u3057\u3044\u3002\uff08\u306a\u3093\u3060\u3063\u3066\u301c\u301c\uff01\uff09<\/p>\n<p>sa-update\uff08\u3046\u3061\u306e\u306fsa-update-5.28\uff09\u3068\u3044\u3046\u306e\u3092\u52d5\u304b\u3055\u306a\u3044\u3068\u3001\u30eb\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u3089\u308c\u306a\u3044\u3089\u3057\u3044\u3002<br \/>\n\u8d77\u52d5\u3057\u3066\u307f\u305f\u3089\u8272\u3005\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"sa-update massage\">Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!\r\nCheck that the necessary '.pre' files are in the config directory.\r\nAt a minimum, v320.pre loads the Check plugin which is required.&lt;\/code&gt;\r\nsudo sa-update-5.28 -v\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u307f\u305f\u3002\r\n&lt;code&gt;gpg: *\u8b66\u544a*: homedir '\/opt\/local\/etc\/mail\/spamassassin\/sa-update-keys'\u306e\u5b89\u5168\u3067\u306a\u3044\u6240\u6709\r\ngpg: failed to create temporary file '\/opt\/local\/etc\/mail\/spamassassin\/sa-update-keys\/.#lk0x00007f8407c07940.macmi2.lo.k-in.co.jp.29240': Permission denied\r\ngpg: keyblock \u30ea\u30bd\u30fc\u30b9'\/opt\/local\/etc\/mail\/spamassassin\/sa-update-keys\/pubring.kbx': Permission denied\r\ngpg: \u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u9375\u30ea\u30f3\u30b0\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: \u898b\u3064\u304b\u308a\u307e\u305b\u3093\r\ngpg: '\/opt\/local\/share\/spamassassin\/sa-update-pubkey.txt'\u306e\u8aad\u307f\u8fbc\u307f\u30a8\u30e9\u30fc: \u4e00\u822c\u30a8\u30e9\u30fc\u3067\u3059\r\ngpg: import from '\/opt\/local\/share\/spamassassin\/sa-update-pubkey.txt' failed: \u4e00\u822c\u30a8\u30e9\u30fc\u3067\u3059\r\ngpg: process '\/opt\/local\/bin\/gpg --homedir='\/opt\/local\/etc\/mail\/spamassassin\/sa-update-keys' --batch --no-tty --status-fd=1 -q --logger-fd=1 --import' finished: exit 2\r\nUpdate available for channel updates.spamassassin.org: -1 -&gt; 1904604\r\nTimeout::_run: check: no loaded plugin implements 'check_main': cannot scan!\r\nCheck that the necessary '.pre' files are in the config directory.\r\nAt a minimum, v320.pre loads the Check plugin which is required.<\/pre>\n<p>\u306a\u3093\u3060\u304b\u8272\u3005\u51fa\u3066\u304f\u308b\u3002<br \/>\n\/opt\/local\/etc\/mail\/spamassassin\/\u304c\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u6240\u5728\u3089\u3057\u3044\u3002<br \/>\nsample\u306e\u4ed8\u3044\u3066\u3044\u308b\u306e\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4e0b\u8a183\u3064\u3092\u4f5c\u3063\u305f\u3002<br \/>\ninit.pre<br \/>\nlocal.cf<br \/>\nv320.pre<br \/>\n\u305d\u3053\u3067\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"sa-update massage2\">Update available for channel updates.spamassassin.org: -1 -&gt; 1904604\r\nhttp: (curl) GET http:\/\/sa-update.spamassassin.org\/MIRRORED.BY, success\r\nhttp: (curl) GET http:\/\/sa-update.ena.com\/1904604.tar.gz, success\r\nhttp: (curl) GET http:\/\/sa-update.ena.com\/1904604.tar.gz.sha512, success\r\nhttp: (curl) GET http:\/\/sa-update.ena.com\/1904604.tar.gz.asc, success\r\nUpdate was available, and was downloaded and installed successfully<\/pre>\n<p>\u3053\u3053\u307e\u3067\u306f\u4e0a\u624b\u304f\u3044\u3063\u305f\u3088\u3046\u3060\u3002<\/p>\n<p>postfix\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5410\u304b\u306a\u304f\u306a\u3063\u305f\u3002<br \/>\n\u4e00\u5fdc\u3053\u308c\u3067\u4e0b\u5730\u306f\u3067\u304d\u305f\u306e\u3060\u308d\u3046\u3002\uff08\u3068\u8a00\u3046\u3053\u3068\u306b\u3059\u308b\uff09<br \/>\n\u6b21\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u3060\u306a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u683c\u7684\u306bmail server\u3092\u79fb\u884c\u3057\u306a\u3044\u3044\u3051\u306a\u304f\u306a\u3063\u305f\u3002 \u9811\u5f35\u308d\u3046\u3002\u8a66\u884c\u932f\u8aa4\u304c\u5897\u3048\u3066\u308b\u3051\u3069\u3002 Dovecot\u306f\u307e\u3060\u96e3\u3057\u3044\u3002 Postfix\u3092\u4ed5\u4e0a\u3052\u3066\u3057\u307e\u304a\u3046\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":[207,176,175,148],"class_list":["post-9287","post","type-post","status-publish","format-standard","hentry","category-software","tag-amavisd-new","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\/9287","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=9287"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/9287\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=9287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=9287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=9287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}