我嘗試從我的ESXI服務器發送郵件,但出於某種原因我不知道我收到了錯誤。用netcat發送郵件
這是我用來發送電子郵件的命令:
nc -Cv smtp.relay.us 25 < /vmfs/volumes/Vcloud-Datatstore/Tools/mail.txt
這是文件mail.txt:
HELO smtp.relay.us
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
From: [Log Server] <[email protected]>
To: <[email protected]>
Date: Mon, 29 May 2017 20:25:38 +0000
Subject: Resultat de la restauration de GED
blabla
blabla
.
我得到這些輸出:
220-*****************************
220 *****************************
250 smtp.relay.us
250 2.1.0 Ok
250 2.1.5 Ok
503 5.5.0 <DATA>: Data command rejected: Improper use of SMTP command pipelining
502 5.5.2 Error: command not recognized
...
...
我不明白我做錯了什麼。非常感謝提前。
高興它幫助別人。 – Processor