mailx -v -r "${USER}@gmail.com" -s "This is the subject" -S smtp="smtps://smtp.gmail.com:587" -S smtp-use-starttls -S ssl-verify=ignore -S smtp-auth=login -S smtp-auth-user="${USER}@gmail.com" ${USER}@gmail.com
给出这样的错误:
could not initiate SSL/TLS connection: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
下列:
mailx -v -r "${USER}@gmail.com" -s "This is the subject" -S smtp="smtps://smtp.gmail.com:465" -S smtp-use-starttls -S ssl-verify=ignore -S smtp-auth=login -S smtp-auth-user="${USER}@gmail.com" ${USER}@gmail.com
给出:
smtp 服务器:
530-5.5.1 Authentication Required. Learn more at
530 5.5.1 https://support.google.com/...
对此我能做什么?
更新1:
添加-S ssl-method="tls1"
它会给出相同的错误。我的 mailx 版本是 12.5 6/20/10。有点旧,但它仍然支持 tls1。