IMAP退回电子邮件:原始邮件已从退回电子邮件中删除

时间:2018-10-23 03:11:32

标签: java imap apache-camel-mail

IMAP正在从邮件中删除原始内容,如以下示例所示(原始邮件已从退回邮件中删除。)

问题:在连接以始终发送原始消息时,我可以向IMAP提供任何配置吗?

示例:

Return-Path: <>
To: a@ba.com
From: Mail Administrator <postmaster@b.com>
Reply-To: <Postmaster@b.com>
Subject: Mail System Error - Returned Mail with Subject: Hi from a
Date: Tue, 11 Oct 2018 12:38:19
Message-ID: <12121213312.AH12R3177.ns12d12121231u2fep03t-svc.1.q.com@qwp03t-q>
MIME-Version: 1.0
Content-Type: multipart/report;
        report-type=delivery-status;
        Boundary="===========================_ _= 8483766(3177)q"
Content-Transfer-Encoding: 7bit


--===========================_ _= 8483766(3177)q
Content-Type: text/plain

This Message was undeliverable due to the following reason:

Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you determine why
each recipient was rejected.

    Recipient: <a12312121@gmail.com>
    Reason:    5.1.1 The email account that you tried to reach does not exist. Please try               5.1.1 double-checking the recipient's email address for typos or               5.1.1 unnecessary spaces. Learn more at               5.1.1  https://support.google.com/mail/?p=NoSuchUser w02-q2.2a60 - gsmtp


Please reply to <Postmaster@a.b.com>
if you feel this message to be in error.

The original message has been removed from the bounce message.

--===========================_ _= 8483766(3177)q
Content-Type: message/delivery-status

Reporting-MTA: dns; asasd.as.aas.a.a.com
Arrival-Date: Tue, 11 Oct 2018 12:38:06
Received-From-MTA: dns; a.a.a.a.b.com

Action: failed
Status: 5.1.1
Remote-MTA: dns; gmail-smtp-in.l.google.com (172.217.194.27)
Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does not exist. Please try
 550-5.1.1 double-checking the recipient's email address for typos or
 550-5.1.1 unnecessary spaces. Learn more at
 550 5.1.1  https://support.google.com/mail/?p=NoSuchUser w20-v6si34204854plp.260 - gsmtp

--===========================_ _= 8483766(3177)q--

1 个答案:

答案 0 :(得分:0)

IMAP-Internet邮件访问协议是一种用于访问邮件服务器上的电子邮件的协议。通过IMAP请求电子邮件时,这并不表示服务器将提供什么。我建议张贴您正在运行的邮件服务器,因为邮件服务器上可能有可以进行此操作的配置设置。