小编Con*_*ect的帖子

如何修复“发送邮件:授权失败 534 5.7.14”

我正在尝试在 ssh root 登录时创建电子邮件警报,因此我必须安装ssmtp邮件实用程序。

然后我配置ssmtp.conf文件如下:

# Config file for sSMTP sendmail
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
        #root=postmaster
        #Adding  email id to receive system information
root = rootuser@gmail.com
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
        #mailhub=mail

mailhub = smtp.gmail.com:587

AuthUser=dmymail@gmail.com
AuthPass=plaintext password
UseTLS=YES
UseSTARTTLS=YES

# …
Run Code Online (Sandbox Code Playgroud)

email sendmail gmail ssmtp

67
推荐指数
4
解决办法
25万
查看次数

标签 统计

email ×1

gmail ×1

sendmail ×1

ssmtp ×1