sendmail 与输入文件不起作用

sendmail 与输入文件不起作用

我无法处理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]

有任何想法吗?

相关内容