“无法设置 AuthPassword”ssmtp

“无法设置 AuthPassword”ssmtp

我正在设置 smtp 通过终端发送邮件并获得“非零”状态。在我的日志文件中,有一条关于“无法设置 AuthPassword”密码包含字符和数字的日志。

ssmtp.conf:

 1 #
 2 # Config file for sSMTP sendmail
 3 #
 4 # The person who gets all mail for userids < 1000
 5 # Make this empty to disable rewriting.
 6 [email protected]
 7 [email protected]
 8 AuthPassword=word12345
 9 UseTLS=YES
10 UseSTARTTLS=YES
11 
12 # The place where the mail goes. The actual machine name is required no 
13 # MX records are consulted. Commonly mailhosts are named mail.domain.com
14 mailhub=smtp-mail.outlook.com:587
15 
16 # Where will the mail seem to come from?
17 #rewriteDomain=
18 rewriteDomain=outlook.com
19 
20 # The full hostname
21 [email protected]
22 
23 
24 # Are users allowed to set their own From: address?
25 # YES - Allow the user to specify their own From: address
26 # NO - Use the system generated From: address

答案1

从手册页ssmtp.conf

AuthPass 用于 SMTP 身份验证的密码。

您已经配置ssmtp.confAuthPassword,但它似乎没有预料到。使用手册页中的标志进行尝试。

至少在我看来,在发布问题时,您还应该编辑密码!

相关内容