http://morizyun.github.io/blog/postfix-centos-sakura-vps-aws/
この記事を参考にメールサーバをたてました。
しかしgmailの受信に1日以上かかってしまいます。
postmasterが受信するエラーメッセージに
454 4.7.0 TLS not available due to local problem
と書かれています。
/var/log/maillogには
warning: cannot get RSA private key from file /etc/pki/tls/certs/server.key: disabling TLS support
と書かれています。
server.key がおかしいようです。
454 4.7.0 TLS not available due to local problem これでググると答えがでてきました。
openssl rsa -in smtpd.key -out smtpd.new.key
mv smtpd.key smtpd.old.key
cp smtpd.new.key smtpd.key
入力ファイルと出力ファイルを同じにするとだめということでした(>_<)
PR