Linux

“無法設置 AuthPassword”ssmtp

  • June 22, 2020

我正在設置 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 root=lukas.kotyza@outlook.com
7 AuthUser=lukas.kotyza@outlook.com
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 hostname=lukas.kotyza@outlook.com
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

從手冊頁ssmtp.conf

AuthPass 用於 SMTP AUTH 的密碼。

您已經配置ssmtp.confAuthPassword,它似乎並不期望。嘗試使用手冊頁中的標誌。

至少在我看來,在發布問題時,您還應該編輯密碼!

引用自:https://unix.stackexchange.com/questions/594391