
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]
어떤 아이디어가 있나요?