
我無法sendmail
使用輸入檔進行工作。
這工作正常:
echo "Subject: sendmail test" | sendmail -v [email protected]
但是,如果我有文件:
To: [email protected]
Subject: sendmail test two
From: [email protected]
And here goes the e-mail body, test test test
and new line
然後我做sendmail -t < mail.txt
程式掛起。在詳細模式下,它只是說:
250 2.1.5 <[email protected]>... Recipient ok
354 Enter mail, end with "." on a line by itself
我以 結束dot
,沒有任何反應。它只是留下來。如果我什麼都不做,過了一會兒它會說:
myserver.com: Name server timeout
[email protected]... Deferred: Name server: [127.0.0.1]: host
name lookup failure
Closing connection to [127.0.0.1]
有任何想法嗎?