
계속됨에 따라이 질문, 좀 더 조사해 본 결과슈퍼유저에 대한 이 답변Sendmail이 특정 파일을 쓸 수 없는 문제를 해결한 것 같습니다. 특히 sendmail을 중지하고 진행 중인 프로세스를 확인하고 종료한 다음 sendmail을 다시 시작하면 문제의 해당 부분이 해결되었습니다.
테스트로서 명령줄에서 나 자신에게 또 다른 이메일을 보내려고 했습니다 . 이메일이 제대로 전송되지 않았지만,echo "Subject: sendmail test" | sudo sendmail /usr/sbin/sendmail -v [email protected]
했다오류가 있는 sendmail 자체에서 반송된 이메일을 받습니다:
From MAILER-DAEMON Tue Jul 23 12:44:30 2019
Return-Path: <MAILER-DAEMON>
Received: from major-productions.com (localhost [127.0.0.1])
by major-productions.com (8.15.2/8.15.2/Debian-12) with ESMTP id x6NGiUQO012820
for <[email protected]>; Tue, 23 Jul 2019 12:44:30 -0400
Received: from localhost (localhost)
by major-productions.com (8.15.2/8.15.2/Submit) id x6NGiUSL012819;
Tue, 23 Jul 2019 12:44:30 -0400
Date: Tue, 23 Jul 2019 12:44:30 -0400
From: Mail Delivery Subsystem <MAILER-DAEMON@debian>
Message-Id: <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="x6NGiUSL012819.1563900270/major-productions.com"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--x6NGiUSL012819.1563900270/major-productions.com
The original message was received at Tue, 23 Jul 2019 12:44:30 -0400
from root@localhost
----- The following addresses had permanent fatal errors -----
/usr/sbin/sendmail
(reason: 550 5.7.1 </usr/sbin/[email protected]>... Cannot mail directly to files)
(expanded from: /usr/sbin/sendmail)
-v
(reason: 550 5.1.1 <[email protected]>... User unknown)
(expanded from: -v)
----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <[email protected]>... User unknown
550 5.1.1 -v... User unknown
<<< 550 5.7.1 </usr/sbin/[email protected]>... Cannot mail directly to files
550 5.1.1 /usr/sbin/sendmail... User unknown
--x6NGiUSL012819.1563900270/major-productions.com
Content-Type: message/delivery-status
Reporting-MTA: dns; major-productions.com
Arrival-Date: Tue, 23 Jul 2019 12:44:30 -0400
Final-Recipient: RFC822; /usr/sbin/[email protected]
Action: failed
Status: 5.7.1
Remote-MTA: DNS; [127.0.0.1]
Diagnostic-Code: SMTP; 550 5.7.1 </usr/sbin/[email protected]>... Cannot mail directly to files
Last-Attempt-Date: Tue, 23 Jul 2019 12:44:30 -0400
Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; [127.0.0.1]
Diagnostic-Code: SMTP; 550 5.1.1 <[email protected]>... User unknown
Last-Attempt-Date: Tue, 23 Jul 2019 12:44:30 -0400
--x6NGiUSL012819.1563900270/major-productions.com
Content-Type: message/rfc822
Return-Path: <me>
Received: (from root@localhost)
by major-productions.com (8.15.2/8.15.2/Submit) id x6NGiUSK012819;
Tue, 23 Jul 2019 12:44:30 -0400
Date: Tue, 23 Jul 2019 12:44:30 -0400
From: Dude Guy <me>
Message-Id: <[email protected]>
Subject: sendmail test
--x6NGiUSL012819.1563900270/major-productions.com--
구성 오류인 것 같지만 어디를 확인해야 할지, 무엇을 변경해야 할지 모르겠습니다.
답변1
/usr/sbin/sendmail
sendmail에 전화를 걸었지만 메일을 , 다음 -v
, 으로 전달하겠다고 말했습니다 [email protected]
. 마지막 이메일만 통과된 것 같습니다. 나머지 두 개는 분명히 튕겨 나갔습니다.
명령줄을 왜 그렇게 작성했는지는 확실하지 않지만, 그냥 실수인 것 같습니다. 글을 쓰거나 비슷한 것을 썼어야 했어요 .sendmail -v [email protected]