Sample Header Ad - 728x90

How to send mail via console on OpenBSD using a Gmail account?

3 votes
1 answer
2228 views
There is a certificate error: # echo "hello" | msmtp -a default DESTINATION@gmail.com msmtp: TLS certificate verification failed: unable to get local issuer certificate msmtp: could not send mail (account default from /root/.msmtprc) # In the config file: # 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 FOOBAR@gmail.com user FOOBAR password BARFOO # Set a default account account default : gmail # But I have the cert there! # 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 # The log only says: # cat .msmtp.log Aug 22 20:43:14 host=smtp.gmail.com tls=on auth=on user=FOOBAR from=FOOBAR@gmail.com recipients=DESTINATION@gmail.com errormsg='TLS certificate verification failed: unable to get local issuer certificate' exitcode=EX_UNAVAILABLE # Why couldn't it recognize the cert?
Asked by Peter (531 rep)
Aug 29, 2017, 07:40 AM
Last activity: Jul 13, 2020, 12:00 AM