Dovecotにハマったのもあって、Postfixに舞い戻ってきた。
localからのアクセスにdnsの逆引き失敗でunknownとなりコケている模様。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Apr 12 11:37:25 mail postfix/postscreen[15659]: CONNECT from [192.168.0.36]:61130 to [192.168.0.35]:25 Apr 12 11:37:25 mail postfix/postscreen[15659]: ALLOWLISTED [192.168.0.36]:61130 Apr 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 Apr 12 11:37:25 mail postfix/smtpd[15713]: connect from unknown[192.168.0.36] Apr 12 11:37:25 mail postfix/smtpd[15713]: lost connection after EHLO from unknown[192.168.0.36] Apr 12 11:37:25 mail postfix/smtpd[15713]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1 Apr 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 Apr 12 11:37:25 mail postfix/submission/smtpd[15715]: connect from unknown[192.168.0.36] Apr 12 11:37:25 mail postfix/submission/smtpd[15715]: lost connection after EHLO from unknown[192.168.0.36] Apr 12 11:37:25 mail postfix/submission/smtpd[15715]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1 Apr 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 Apr 12 11:37:25 mail postfix/smtps/smtpd[15716]: connect from unknown[192.168.0.36] Apr 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 Apr 12 11:37:25 mail postfix/smtps/smtpd[15716]: disconnect from unknown[192.168.0.36] unknown=0/1 commands=0/1 |
このお蔭でクライアントがエラーを起こして新規にアカウントを取れない。
なので、此方を先に直してしまおう。
最初にpostscreenにしっかりとlocal内は良しと認識させる。
main.confのpostscreen設定で2箇所に192.168.0.0/24 permitを加えた。(どっちかで通してくれれば良い)
|
1 2 3 |
postscreen_access_list = permit_mynetworks, cidr:/opt/local/etc/postfix/postscreen_access.cidr |
すると、postscreenは通った。
で続くpostfix/smtpdとpostfix/submission/smtpd、更にpostfix/smtps/smtpdでdoes not resolve to addressと、一括で済ませられないのかなぁ。
更にsmtpd_sasl_auth_enable is true, but SASL support is not compiled in、TLS has been selected, but TLS support is not compiled inだな。
それとdnsは何処に問い合わせに行っているのだろう?localhostなら、resolve返ってくる筈なんだけど。
今度はsmtpdの設定を付け加えるのか、dnsの問い合わせ先を探すのか。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Apr 12 16:07:47 mail postfix/postscreen[19052]: CONNECT from [192.168.0.36]:62649 to [192.168.0.35]:25 Apr 12 16:07:47 mail postfix/postscreen[19052]: ALLOWLISTED [192.168.0.36]:62649 Apr 12 16:07:47 mail postfix/smtpd[19056]: warning: TLS has been selected, but TLS support is not compiled in Apr 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 Apr 12 16:07:47 mail postfix/smtpd[19056]: connect from unknown[192.168.0.36] Apr 12 16:07:47 mail postfix/smtpd[19056]: lost connection after EHLO from unknown[192.168.0.36] Apr 12 16:07:47 mail postfix/smtpd[19056]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1 Apr 12 16:07:47 mail postfix/submission/smtpd[19059]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in Apr 12 16:07:47 mail postfix/submission/smtpd[19059]: warning: TLS has been selected, but TLS support is not compiled in Apr 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 Apr 12 16:07:47 mail postfix/submission/smtpd[19059]: connect from unknown[192.168.0.36] Apr 12 16:07:47 mail postfix/submission/smtpd[19059]: lost connection after EHLO from unknown[192.168.0.36] Apr 12 16:07:47 mail postfix/submission/smtpd[19059]: disconnect from unknown[192.168.0.36] ehlo=1 commands=1 Apr 12 16:07:47 mail postfix/smtps/smtpd[19060]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in Apr 12 16:07:47 mail postfix/smtps/smtpd[19060]: warning: TLS has been selected, but TLS support is not compiled in Apr 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 Apr 12 16:07:47 mail postfix/smtps/smtpd[19060]: connect from unknown[192.168.0.36] Apr 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\ Apr 12 16:07:47 mail postfix/smtps/smtpd[19060]: disconnect from unknown[192.168.0.36] unknown=0/1 commands=0/1 |
上記に関して、POSTFIX/SMTP SASL and TLS supportで全く同じことを聞いている人がいました。
このスレッドを読んでいて、TLSとSASLはpostfixの再インストールが必要だとして解決していた。
sudo port install postfix +tls+sasl
インストール時に+tls+saslオプションがいるのだそうで。(こんな方法、初めて知った)
したらば次には、下記の様なエラーで起動しなくなった(泣)
|
1 2 3 4 5 6 7 8 9 10 11 12 |
Apr 12 18:24:29 mail postfix/postfix-script[25858]: fatal: Postfix integrity check failed! Apr 12 18:24:59 mail postfix/postfix-script[25908]: fatal: Postfix integrity check failed! Apr 12 18:25:30 mail postfix/postfix-script[25955]: fatal: Postfix integrity check failed! Apr 12 18:26:00 mail postfix/postfix-script[26006]: fatal: Postfix integrity check failed! Apr 12 18:26:31 mail postfix/postfix-script[26053]: fatal: Postfix integrity check failed! Apr 12 18:27:02 mail postfix/postfix-script[26131]: fatal: Postfix integrity check failed! Apr 12 18:27:32 mail postfix/postfix-script[26179]: fatal: Postfix integrity check failed! Apr 12 18:28:03 mail postfix/postfix-script[26226]: fatal: Postfix integrity check failed! Apr 12 18:28:20 mail postfix/postfix-script[26276]: fatal: Postfix integrity check failed! Apr 12 18:28:50 mail postfix/postfix-script[26324]: fatal: Postfix integrity check failed! Apr 12 18:29:21 mail postfix/postfix-script[26371]: fatal: Postfix integrity check failed! Apr 12 18:29:52 mail postfix/postfix-script[26420]: fatal: Postfix integrity check failed! |
先ず一つ目、main.cfが置き換わっていた(元のはmain.cf.copyになっていた)ので、戻す。master.cfは全部じゃなけれど見たら、最後に追加した分が残っていたしmaster.cf.copyが出来ていなかったので大丈夫そう。
また、「fatal: Postfix integrity check failed!」でググると、環境は違いますが、はじめての自宅サーバ構築 – Fedora/CentOS –と、同様な条件で同じ様に嵌った方がいらっしゃる。
この方は、キューディレクトリを削除して、sudo post-install create-missingで解決したそうです。
だがしかし、どうせなら全ディレクトリを作り直したい。
今までフルパスで書いていた所を$data_directory/………と一箇所に集めてしまおう。判り易いし。
どうせデータは入って居ない。
と、また弄り回して……ログすら吐かない(儚い


