ssmtp 寄信失敗 550? - Linux

By Carol
at 2019-03-21T11:35
at 2019-03-21T11:35
Table of Contents
各位好,
我想要利用ssmtp透過yahoo信箱寄信,以下是我的ssmtp.conf設定
===========================
root=<雅虎帳號>
mailhub=smtp.mail.yahoo.com:587
rewriteDomain=yahoo.com
hostname=yahoo.com
FromLineOverride=YES
AuthUser=<雅虎帳號>
AuthPass=<雅虎密碼>
UseSTARTTLS=YES
Debug=YES
===========================
但是寄信會顯示錯誤紀錄,例如我用以下指令寄信
echo "Testing" | mail -s "Test Email" <咕狗收件信箱>
會失敗,看 /var/log/mail.log 內容有錯誤紀錄:
sSMTP[18887]: Creating SSL connection to host
sSMTP[18887]: 220 smtp.mail.yahoo.com ESMTP ready
sSMTP[18887]: EHLO yahoo.com
sSMTP[18887]: 250 STARTTLS
sSMTP[18887]: STARTTLS
sSMTP[18887]: 220 2.0.0 Ready to start TLS
sSMTP[18887]: SSL connection using RSA_AES_256_CBC_SHA1
sSMTP[18887]: EHLO yahoo.com
sSMTP[18887]: 250 AUTH PLAIN LOGIN XOAUTH2 OAUTHBEARER
sSMTP[18887]: AUTH LOGIN
sSMTP[18887]: 334 VXNlcm5hbWU6
sSMTP[18887]: dGVubnlsdUB5YWhvby5jb20=
sSMTP[18887]: 334 UGFzc3dvcmQ6
sSMTP[18887]: eTEyMjU0MDkwNw==
sSMTP[18887]: 235 2.7.0 Authentication successful
sSMTP[18887]: MAIL FROM:<雅戶帳號>
sSMTP[18887]: 250 2.1.0 Sender <雅戶帳號> OK
sSMTP[18887]: RCPT TO:<咕狗收件信箱>
sSMTP[18887]: 250 2.1.5 Recipient <咕狗收件信箱> OK
sSMTP[18887]: DATA
sSMTP[18887]: 354 Ok Send data ending with <CRLF>.<CRLF>
sSMTP[18887]: Received: by yahoo.com (sSMTP sendmail emulation); Thu, 21 Mar 2019 11:21:29 +0800
sSMTP[18887]: From: "tenny" <tenny@debian-PC>
sSMTP[18887]: Date: Thu, 21 Mar 2019 11:21:29 +0800
sSMTP[18887]: Subject: Test Email
sSMTP[18887]: To: <咕狗收件信箱>
sSMTP[18887]: X-Mailer: mail (GNU Mailutils 3.1.1)
sSMTP[18887]:
sSMTP[18887]: Testing
sSMTP[18887]: .
sSMTP[18887]: 550 Request failed; Mailbox unavailable
sSMTP[18887]: 550 Request failed; Mailbox unavailable
請問,我在那裡設定有問題呢?
--
Sent from my Windows
--
我想要利用ssmtp透過yahoo信箱寄信,以下是我的ssmtp.conf設定
===========================
root=<雅虎帳號>
mailhub=smtp.mail.yahoo.com:587
rewriteDomain=yahoo.com
hostname=yahoo.com
FromLineOverride=YES
AuthUser=<雅虎帳號>
AuthPass=<雅虎密碼>
UseSTARTTLS=YES
Debug=YES
===========================
但是寄信會顯示錯誤紀錄,例如我用以下指令寄信
echo "Testing" | mail -s "Test Email" <咕狗收件信箱>
會失敗,看 /var/log/mail.log 內容有錯誤紀錄:
sSMTP[18887]: Creating SSL connection to host
sSMTP[18887]: 220 smtp.mail.yahoo.com ESMTP ready
sSMTP[18887]: EHLO yahoo.com
sSMTP[18887]: 250 STARTTLS
sSMTP[18887]: STARTTLS
sSMTP[18887]: 220 2.0.0 Ready to start TLS
sSMTP[18887]: SSL connection using RSA_AES_256_CBC_SHA1
sSMTP[18887]: EHLO yahoo.com
sSMTP[18887]: 250 AUTH PLAIN LOGIN XOAUTH2 OAUTHBEARER
sSMTP[18887]: AUTH LOGIN
sSMTP[18887]: 334 VXNlcm5hbWU6
sSMTP[18887]: dGVubnlsdUB5YWhvby5jb20=
sSMTP[18887]: 334 UGFzc3dvcmQ6
sSMTP[18887]: eTEyMjU0MDkwNw==
sSMTP[18887]: 235 2.7.0 Authentication successful
sSMTP[18887]: MAIL FROM:<雅戶帳號>
sSMTP[18887]: 250 2.1.0 Sender <雅戶帳號> OK
sSMTP[18887]: RCPT TO:<咕狗收件信箱>
sSMTP[18887]: 250 2.1.5 Recipient <咕狗收件信箱> OK
sSMTP[18887]: DATA
sSMTP[18887]: 354 Ok Send data ending with <CRLF>.<CRLF>
sSMTP[18887]: Received: by yahoo.com (sSMTP sendmail emulation); Thu, 21 Mar 2019 11:21:29 +0800
sSMTP[18887]: From: "tenny" <tenny@debian-PC>
sSMTP[18887]: Date: Thu, 21 Mar 2019 11:21:29 +0800
sSMTP[18887]: Subject: Test Email
sSMTP[18887]: To: <咕狗收件信箱>
sSMTP[18887]: X-Mailer: mail (GNU Mailutils 3.1.1)
sSMTP[18887]:
sSMTP[18887]: Testing
sSMTP[18887]: .
sSMTP[18887]: 550 Request failed; Mailbox unavailable
sSMTP[18887]: 550 Request failed; Mailbox unavailable
請問,我在那裡設定有問題呢?
--
Sent from my Windows
--
Tags:
Linux
All Comments

By Odelette
at 2019-03-25T20:04
at 2019-03-25T20:04

By Oliver
at 2019-03-29T19:36
at 2019-03-29T19:36

By Dinah
at 2019-03-31T23:34
at 2019-03-31T23:34

By Annie
at 2019-04-03T05:13
at 2019-04-03T05:13

By Ophelia
at 2019-04-04T08:35
at 2019-04-04T08:35

By Harry
at 2019-04-08T20:00
at 2019-04-08T20:00

By Jacob
at 2019-04-12T20:13
at 2019-04-12T20:13

By Thomas
at 2019-04-14T05:54
at 2019-04-14T05:54

By Franklin
at 2019-04-17T11:35
at 2019-04-17T11:35

By John
at 2019-04-18T17:15
at 2019-04-18T17:15

By Doris
at 2019-04-22T04:47
at 2019-04-22T04:47
Related Posts
圖形介面如何暫時取得最高權限(sudo)

By Olga
at 2019-03-21T09:28
at 2019-03-21T09:28
centos 掛載 san storeage

By Todd Johnson
at 2019-03-19T17:19
at 2019-03-19T17:19
64bit的centos系統下,如何執行32bit軟體

By Hedwig
at 2019-03-16T09:07
at 2019-03-16T09:07
nginx如何禁止外部嘗試進入不存在的目錄

By Jacob
at 2019-03-15T10:31
at 2019-03-15T10:31
硬碟空間用du 與 df 看到的大小不一樣

By Eden
at 2019-03-15T00:07
at 2019-03-15T00:07