証明書エラーがあります。
# echo "hello" | msmtp -a default [email protected]
msmtp: TLS certificate verification failed: unable to get local issuer certificate
msmtp: could not send mail (account default from /root/.msmtprc)
#
構成ファイルから:
# cat .msmtprc
# Set default values for all following accounts.
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
# Gmail
account gmail
host smtp.gmail.com
port 587
from [email protected]
user FOOBAR
password BARFOO
# Set a default account
account default : gmail
#
しかし、そこに証明書があります!
# uname -mrs
OpenBSD 6.0 amd64
#
# cksum /etc/ssl/cert.pem /etc/ssl/certs/ca-certificates.crt
1384454833 189049 /etc/ssl/cert.pem
1384454833 189049 /etc/ssl/certs/ca-certificates.crt
#
ログには次の内容のみが表示されます。
# cat .msmtp.log
Aug 22 20:43:14 host=smtp.gmail.com tls=on auth=on user=FOOBAR [email protected] [email protected] errormsg='TLS certificate verification failed: unable to get local issuer certificate' exitcode=EX_UNAVAILABLE
#
証明書が認識されないのはなぜですか?
ベストアンサー1
ファイルを削除/etc/ssl/certs/ca-certificates.crt
して 。tls_trust_file
/etc/ssl/cert.pem