{"id":9538,"date":"2023-04-13T16:18:31","date_gmt":"2023-04-13T07:18:31","guid":{"rendered":"https:\/\/www.k-in.co.jp\/niwakan\/?p=9538"},"modified":"2023-04-17T15:45:41","modified_gmt":"2023-04-17T06:45:41","slug":"mail-server%e3%81%ae%e7%a7%bb%e8%a1%8c%ef%bc%88%e3%81%9d%e3%81%ae34%ef%bc%89postfix%e3%81%ae%e5%86%8d%e7%a2%ba%e8%aa%8d%ef%bc%8811%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2023\/04\/9538\/","title":{"rendered":"mail server\u306e\u79fb\u884c\uff08\u305d\u306e34\uff09postfix\u306e\u518d\u78ba\u8a8d\uff0811\uff09"},"content":{"rendered":"<p>Dovecot\u306b\u30cf\u30de\u3063\u305f\u306e\u3082\u3042\u3063\u3066\u3001Postfix\u306b\u821e\u3044\u623b\u3063\u3066\u304d\u305f\u3002<br \/>\n<!--more--><\/p>\n<p>local\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306bdns\u306e\u9006\u5f15\u304d\u5931\u6557\u3067unknown\u3068\u306a\u308a\u30b3\u30b1\u3066\u3044\u308b\u6a21\u69d8\u3002 <\/p>\n<pre class=\"lang:default decode:true \" title=\"postfix log\" >Apr 12 11:37:25 mail postfix\/postscreen[15659]: CONNECT from [192.168.0.36]:61130 to [192.168.0.35]:25\r\nApr 12 11:37:25 mail postfix\/postscreen[15659]: ALLOWLISTED [192.168.0.36]:61130\r\nApr 12 11:37:25 mail postfix\/smtpd[15713]: warning: hostname macmi2.lo.k-in.co.jp does not resolve to address 192.168.0.36\r\nApr 12 11:37:25 mail postfix\/smtpd[15713]: connect from unknown[192.168.0.36]\r\nApr 12 11:37:25 mail postfix\/smtpd[15713]: lost connection after EHLO from unknown[192.168.0.36]\r\nApr 12 11:37:25 mail postfix\/smtpd[15713]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1\r\nApr 12 11:37:25 mail postfix\/submission\/smtpd[15715]: warning: hostname macmi2.lo.k-in.co.jp does not resolve to address 192.168.0.36\r\nApr 12 11:37:25 mail postfix\/submission\/smtpd[15715]: connect from unknown[192.168.0.36]\r\nApr 12 11:37:25 mail postfix\/submission\/smtpd[15715]: lost connection after EHLO from unknown[192.168.0.36]\r\nApr 12 11:37:25 mail postfix\/submission\/smtpd[15715]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1\r\nApr 12 11:37:25 mail postfix\/smtps\/smtpd[15716]: warning: hostname macmi2.lo.k-in.co.jp does not resolve to address 192.168.0.36\r\nApr 12 11:37:25 mail postfix\/smtps\/smtpd[15716]: connect from unknown[192.168.0.36]\r\nApr 12 11:37:25 mail postfix\/smtps\/smtpd[15716]: warning: non-SMTP command from unknown[192.168.0.36]: \\026\\003\\001\\000\\252\\001\\000\\000\\246\\003\\003d6\\031eab\\221`i4\\230\\321S\\020p\\363\\214L\\313\\276\\353\\2053\r\nApr 12 11:37:25 mail postfix\/smtps\/smtpd[15716]: disconnect from unknown[192.168.0.36] unknown=0\/1 commands=0\/1<\/pre>\n<p>\u3053\u306e\u304a\u852d\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30a8\u30e9\u30fc\u3092\u8d77\u3053\u3057\u3066\u65b0\u898f\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u53d6\u308c\u306a\u3044\u3002<br \/>\n\u306a\u306e\u3067\u3001\u6b64\u65b9\u3092\u5148\u306b\u76f4\u3057\u3066\u3057\u307e\u304a\u3046\u3002<\/p>\n<p>\u6700\u521d\u306bpostscreen\u306b\u3057\u3063\u304b\u308a\u3068local\u5185\u306f\u826f\u3057\u3068\u8a8d\u8b58\u3055\u305b\u308b\u3002<br \/>\nmain.conf\u306epostscreen\u8a2d\u5b9a\u30672\u7b87\u6240\u306b<strong>192.168.0.0\/24 permit<\/strong>\u3092\u52a0\u3048\u305f\u3002\uff08\u3069\u3063\u3061\u304b\u3067\u901a\u3057\u3066\u304f\u308c\u308c\u3070\u826f\u3044\uff09<\/p>\n<pre class=\"lang:default decode:true \" title=\"main.conf\" >postscreen_access_list =\r\n    permit_mynetworks,\r\n    cidr:\/opt\/local\/etc\/postfix\/postscreen_access.cidr<\/pre>\n<p>\u3059\u308b\u3068\u3001postscreen\u306f\u901a\u3063\u305f\u3002<br \/>\n\u3067\u7d9a\u304fpostfix\/smtpd\u3068postfix\/submission\/smtpd\u3001\u66f4\u306bpostfix\/smtps\/smtpd\u3067<strong>does not resolve to address<\/strong><strong>\u3068\u3001\u4e00\u62ec\u3067\u6e08\u307e\u305b\u3089\u308c\u306a\u3044\u306e\u304b\u306a\u3041\u3002<br \/>\n\u66f4\u306b<strong>smtpd_sasl_auth_enable is true, but SASL support is not compiled in<\/strong>\u3001<strong>TLS has been selected, but TLS support is not compiled in<\/strong>\u3060\u306a\u3002<br \/>\n\u305d\u308c\u3068dns\u306f\u4f55\u51e6\u306b\u554f\u3044\u5408\u308f\u305b\u306b\u884c\u3063\u3066\u3044\u308b\u306e\u3060\u308d\u3046\uff1flocalhost\u306a\u3089\u3001resolve\u8fd4\u3063\u3066\u304f\u308b\u7b48\u306a\u3093\u3060\u3051\u3069\u3002<\/p>\n<p>\u4eca\u5ea6\u306fsmtpd\u306e\u8a2d\u5b9a\u3092\u4ed8\u3051\u52a0\u3048\u308b\u306e\u304b\u3001dns\u306e\u554f\u3044\u5408\u308f\u305b\u5148\u3092\u63a2\u3059\u306e\u304b\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"postfix log\" >Apr 12 16:07:47 mail postfix\/postscreen[19052]: CONNECT from [192.168.0.36]:62649 to [192.168.0.35]:25\r\nApr 12 16:07:47 mail postfix\/postscreen[19052]: ALLOWLISTED [192.168.0.36]:62649\r\nApr 12 16:07:47 mail postfix\/smtpd[19056]: warning: TLS has been selected, but TLS support is not compiled in\r\nApr 12 16:07:47 mail postfix\/smtpd[19056]: warning: hostname macmi2.lo.k-in.co.jp does not resolve to address 192.168.0.36\r\nApr 12 16:07:47 mail postfix\/smtpd[19056]: connect from unknown[192.168.0.36]\r\nApr 12 16:07:47 mail postfix\/smtpd[19056]: lost connection after EHLO from unknown[192.168.0.36]\r\nApr 12 16:07:47 mail postfix\/smtpd[19056]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1\r\nApr 12 16:07:47 mail postfix\/submission\/smtpd[19059]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in\r\nApr 12 16:07:47 mail postfix\/submission\/smtpd[19059]: warning: TLS has been selected, but TLS support is not compiled in\r\nApr 12 16:07:47 mail postfix\/submission\/smtpd[19059]: warning: hostname macmi2.lo.k-in.co.jp does not resolve to address 192.168.0.36\r\nApr 12 16:07:47 mail postfix\/submission\/smtpd[19059]: connect from unknown[192.168.0.36]\r\nApr 12 16:07:47 mail postfix\/submission\/smtpd[19059]: lost connection after EHLO from unknown[192.168.0.36]\r\nApr 12 16:07:47 mail postfix\/submission\/smtpd[19059]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1\r\nApr 12 16:07:47 mail postfix\/smtps\/smtpd[19060]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in\r\nApr 12 16:07:47 mail postfix\/smtps\/smtpd[19060]: warning: TLS has been selected, but TLS support is not compiled in\r\nApr 12 16:07:47 mail postfix\/smtps\/smtpd[19060]: warning: hostname macmi2.lo.k-in.co.jp does not resolve to address 192.168.0.36\r\nApr 12 16:07:47 mail postfix\/smtps\/smtpd[19060]: connect from unknown[192.168.0.36]\r\nApr 12 16:07:47 mail postfix\/smtps\/smtpd[19060]: warning: non-SMTP command from unknown[192.168.0.36]: \\026\\003\\001\\000\\252\\001\\000\\000\\246\\003\\003d6X\\303\\276f\\223NO\\235\\v\\3216\\203\\t\\0358E|\\311c\\215\\252\\\r\nApr 12 16:07:47 mail postfix\/smtps\/smtpd[19060]: disconnect from unknown[192.168.0.36] unknown=0\/1 commands=0\/1<\/pre>\n<p>\u4e0a\u8a18\u306b\u95a2\u3057\u3066\u3001<a href=\"https:\/\/lists.macports.org\/pipermail\/macports-users\/2014-April\/035061.html\">POSTFIX\/SMTP SASL and TLS support<\/a>\u3067\u5168\u304f\u540c\u3058\u3053\u3068\u3092\u805e\u3044\u3066\u3044\u308b\u4eba\u304c\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u8aad\u3093\u3067\u3044\u3066\u3001TLS\u3068SASL\u306fpostfix\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3060\u3068\u3057\u3066\u89e3\u6c7a\u3057\u3066\u3044\u305f\u3002<br \/>\n<strong>sudo port install postfix +tls+sasl<\/strong><br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b<strong>+tls+sasl<\/strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3044\u308b\u306e\u3060\u305d\u3046\u3067\u3002\uff08\u3053\u3093\u306a\u65b9\u6cd5\u3001\u521d\u3081\u3066\u77e5\u3063\u305f\uff09<\/p>\n<p>\u3057\u305f\u3089\u3070\u6b21\u306b\u306f\u3001\u4e0b\u8a18\u306e\u69d8\u306a\u30a8\u30e9\u30fc\u3067\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u305f\uff08\u6ce3\uff09<\/p>\n<pre class=\"lang:default decode:true \" title=\"postfix log\" >Apr 12 18:24:29 mail postfix\/postfix-script[25858]: fatal: Postfix integrity check failed!\r\nApr 12 18:24:59 mail postfix\/postfix-script[25908]: fatal: Postfix integrity check failed!\r\nApr 12 18:25:30 mail postfix\/postfix-script[25955]: fatal: Postfix integrity check failed!\r\nApr 12 18:26:00 mail postfix\/postfix-script[26006]: fatal: Postfix integrity check failed!\r\nApr 12 18:26:31 mail postfix\/postfix-script[26053]: fatal: Postfix integrity check failed!\r\nApr 12 18:27:02 mail postfix\/postfix-script[26131]: fatal: Postfix integrity check failed!\r\nApr 12 18:27:32 mail postfix\/postfix-script[26179]: fatal: Postfix integrity check failed!\r\nApr 12 18:28:03 mail postfix\/postfix-script[26226]: fatal: Postfix integrity check failed!\r\nApr 12 18:28:20 mail postfix\/postfix-script[26276]: fatal: Postfix integrity check failed!\r\nApr 12 18:28:50 mail postfix\/postfix-script[26324]: fatal: Postfix integrity check failed!\r\nApr 12 18:29:21 mail postfix\/postfix-script[26371]: fatal: Postfix integrity check failed!\r\nApr 12 18:29:52 mail postfix\/postfix-script[26420]: fatal: Postfix integrity check failed!<\/pre>\n<p>\u5148\u305a\u4e00\u3064\u76ee\u3001main.cf\u304c\u7f6e\u304d\u63db\u308f\u3063\u3066\u3044\u305f\uff08\u5143\u306e\u306fmain.cf.copy\u306b\u306a\u3063\u3066\u3044\u305f\uff09\u306e\u3067\u3001\u623b\u3059\u3002master.cf\u306f\u5168\u90e8\u3058\u3083\u306a\u3051\u308c\u3069\u898b\u305f\u3089\u3001\u6700\u5f8c\u306b\u8ffd\u52a0\u3057\u305f\u5206\u304c\u6b8b\u3063\u3066\u3044\u305f\u3057master.cf.copy\u304c\u51fa\u6765\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u5927\u4e08\u592b\u305d\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001\u300cfatal: Postfix integrity check failed!\u300d\u3067\u30b0\u30b0\u308b\u3068\u3001\u74b0\u5883\u306f\u9055\u3044\u307e\u3059\u304c\u3001<a href=\"https:\/\/kajuhome.com\/patio_thread\/974.shtml\">\u306f\u3058\u3081\u3066\u306e\u81ea\u5b85\u30b5\u30fc\u30d0\u69cb\u7bc9 &#8211; Fedora\/CentOS &#8211;<\/a>\u3068\u3001\u540c\u69d8\u306a\u6761\u4ef6\u3067\u540c\u3058\u69d8\u306b\u5d4c\u3063\u305f\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u308b\u3002<br \/>\n\u3053\u306e\u65b9\u306f\u3001\u30ad\u30e5\u30fc\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664\u3057\u3066\u3001<strong>sudo post-install create-missing<\/strong>\u3067\u89e3\u6c7a\u3057\u305f\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3060\u304c\u3057\u304b\u3057\u3001\u3069\u3046\u305b\u306a\u3089\u5168\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u308a\u76f4\u3057\u305f\u3044\u3002<br \/>\n\u4eca\u307e\u3067\u30d5\u30eb\u30d1\u30b9\u3067\u66f8\u3044\u3066\u3044\u305f\u6240\u3092<strong>$data_directory\/\u2026\u2026\u2026<\/strong>\u3068\u4e00\u7b87\u6240\u306b\u96c6\u3081\u3066\u3057\u307e\u304a\u3046\u3002\u5224\u308a\u6613\u3044\u3057\u3002<br \/>\n\u3069\u3046\u305b\u30c7\u30fc\u30bf\u306f\u5165\u3063\u3066\u5c45\u306a\u3044\u3002<br \/>\n\u3068\u3001\u307e\u305f\u5f04\u308a\u56de\u3057\u3066\u2026\u2026\u30ed\u30b0\u3059\u3089\u5410\u304b\u306a\u3044\uff08\u511a\u3044<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dovecot\u306b\u30cf\u30de\u3063\u305f\u306e\u3082\u3042\u3063\u3066\u3001Postfix\u306b\u821e\u3044\u623b\u3063\u3066\u304d\u305f\u3002<\/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":[176,175,148],"class_list":["post-9538","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-mail","tag-postfix","tag-server"],"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\/9538","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=9538"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/9538\/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=9538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=9538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=9538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}