邮件命令行

邮件命令行

我正在使用一款名为 Mail 的应用程序,但我无法向自己的电子邮件地址发送邮件?但我无法发送任何邮件,这是怎么回事?

mail -s "Test Email" [email protected]

Cc: 
Testing
 
jonathan@jonathan-Aspire-E5-573:~$ mail
"/var/mail/jonathan": 2 messages 1 new 1 unread
 U   1 Mail Delivery Syst Mon Apr  8 09:26  91/3656  Undelivered Mail Returned to Sender
>N   2 Mail Delivery Syst Mon Apr  8 10:04  75/2600  Undelivered Mail Returned to Sender
? 
Return-Path: <>
X-Original-To: jonathan@jonathan-Aspire-E5-573
Delivered-To: jonathan@jonathan-Aspire-E5-573
Received: by jonathan-Aspire-E5-573 (Postfix)
    id 9D0AF565866; Mon,  8 Apr 2024 10:04:59 +0200 (CEST)
Date: Mon,  8 Apr 2024 10:04:59 +0200 (CEST)
From: MAILER-DAEMON@jonathan-Aspire-E5-573 (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: jonathan@jonathan-Aspire-E5-573
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
    boundary="34D4E56585B.1712563499/jonathan-Aspire-E5-573"
Content-Transfer-Encoding: 8bit
Message-Id: <20240408080459.9D0AF565866@jonathan-Aspire-E5-573>

This is a MIME-encapsulated message.

--34D4E56585B.1712563499/jonathan-Aspire-E5-573
Content-Description: Notification
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

This is the mail system at host jonathan-aspire-e5-573.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<[email protected]>: host mailfilter-ng-4.sunet.se[89.45.235.5] said: 550 5.7.1 Sender
    domain does not exists (b17d6644-f57e-11ee-8900-45cb70cd6bd9) (in reply to
    end of DATA command)
--More--

答案1

sunet.se 的接收 SMTP 会告诉您拒绝该邮件的确切原因:

550 5.7.1 Sender domain does not exists.

原谅它的语法错误,它仍然有道理。假设您的发件人地址是jonathan@jonathan-Aspire-E5-573(因为这是您的 MTA 反弹到的地方),那么您是从域发送的jonathan-Aspire-E5-573,该域目前不是 DNS 中的 TLD。

这是否足以成为拒绝中继的理由取决于[电子邮件保护]

相关内容