
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]
何か案は?