![為什麼這封電子郵件沒有到達?](https://rvso.com/image/1497064/%E7%82%BA%E4%BB%80%E9%BA%BC%E9%80%99%E5%B0%81%E9%9B%BB%E5%AD%90%E9%83%B5%E4%BB%B6%E6%B2%92%E6%9C%89%E5%88%B0%E9%81%94%EF%BC%9F.png)
我一直在嘗試從命令列向自己發送電子郵件,但該訊息沒有出現在我的收件匣(或垃圾郵件或其他任何地方)中。以下是我使用的命令以及日誌的副本。請任何人告訴我哪裡出了問題以及我能做些什麼。
我在網上進行了詳盡的搜索並嘗試了很多想法,但這是我得到的最接近的想法。
root@localhost]/home/Harry# tail -f /var/log/maillog &
...
[root@localhost]/home/Harry# mail -s "Test Mail" [email protected]
Hello
EOT
[root@localhost]/home/Harry# Jun 17 15:37:41 localhost sendmail[5043]: u5HEbf9U005043: from=Harry, size=227, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Jun 17 15:37:41 localhost sendmail[5044]: u5HEbf9c005044: from=<[email protected]>, size=504, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 17 15:37:41 localhost sendmail[5043]: u5HEbf9U005043: [email protected], ctladdr=Harry (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30227, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u5HEbf9c005044 Message accepted for delivery)
Jun 17 15:37:42 localhost sendmail[5046]: u5HEbf9c005044: to=<[email protected]>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120504, relay=mx.bt.lon5.cpcloud.co.uk. [65.20.0.49], dsn=5.0.0, stat=Service unavailable
Jun 17 15:37:42 localhost sendmail[5046]: u5HEbf9c005044: to=<[email protected]>, delay=00:00:01, mailer=local, pri=120504, dsn=5.1.1, stat=User unknown
Jun 17 15:37:42 localhost sendmail[5046]: u5HEbf9c005044: u5HEbg9c005046: postmaster notify: User unknown
Jun 17 15:37:42 localhost sendmail[5046]: u5HEbg9c005046: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31733, dsn=2.0.0, stat=Sent
添加以回應 @Curtis 的回答:也許我應該說原始命令行中的用戶名曾是一個正確的用戶,我一直使用的用戶,那麼為什麼 btinternet.com 無法辨識它呢?
答案1
btinternet.com 的郵件伺服器表示該使用者不存在。查看您的日誌檔案:
u5HEbg9c005046: postmaster notify: User unknown