如何在常用的电子邮件客户端查看完整的电子邮件标头,以用于故障排除?

上次更新时间:2021 年 6 月 21 日

我想查看在 Amazon Simple Email Service (Amazon SES) 和我的邮件接收服务器之间传送的电子邮件的完整电子邮件标头。我该如何做?

简短描述

在 Amazon SES 和邮件接收服务器之间传送的电子邮件包含电子邮件标头。这些标头提供关于电子邮件的详细信息:

  • 发件人和收件人详细信息
  • 身份验证结果
  • 电子邮件在发件人和收件人之间经过的网络路径

电子邮件中最常显示的标头字段包括:

  • From(发件人):发件人姓名和电子邮件
  • To(收件人):收件人姓名和电子邮件
  • Date(日期):电子邮件的发送日期/时间
  • Subject(主题):发件人输入的主题行

但开展高级审计或故障排除任务有时需要只能在完整电子邮件标头中找到的详细信息。例如:

  • 消息 ID 值
  • 发件人/收件人详细信息
  • 网络路径
  • 身份验证结果 (SPF/DKIM/DMARC)

完整的电子邮件标头看起来类似于以下示例:

Delivered-To: hello@examplerecipient.com
Received: by 2002:a17:907:104f:0:0:0:0 with SMTP id oy15csp1032604ejb;
        Fri, 30 Apr 2021 20:39:47 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJzh1mAfg8ADsMqkmtRwbDilz3ii9Lsgjk2P2Cn0t3F1dn93MTB1gEQY0WeqB8cUwgpkmj4b
X-Received: by 2002:a37:744:: with SMTP id 65mr8623779qkh.393.1619840386902;
        Fri, 30 Apr 2021 20:39:46 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1619840386; cv=none;
        d=examplerecipientdomain.com; s=arc-20160816;
        b=PMSOJmkrw1P59egAibf1euOjQM0JQ2n8pk00+uvlk7CV9zuCZEFglG3w+LVMlw0wAZ
         XtQ6T5bO4YyeqrDCqFcleBnnvfTuFRaup4+J62CWiVI7R/k+4q0PPdik8TIdDMxATc/g
         qQKgr5HZGhu1zm8n5oY1B0yg4JpjOGVIxOjc9dB/15ix2tQrPVxoHQPMHYVofPtY5BeN
         G0LpjCXCrmqwCCsGS2mgJ0eEg9vFV9UUIdtTBr+6CPV+V45wIgOYkGMLuHhzalXKZXbh
         w7fm+nne7x9LclK9xvtHW1CajBZeD+bNMD3exqVYNbf2lJ36V1mDJ0uIvq1x5u2i14pL
         7KAQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=examplerecipientdomain.com; s=arc-20160816;
        h=feedback-id:date:message-id:content-transfer-encoding:mime-version
         :subject:to:from:dkim-signature:dkim-signature;
        bh=VOs4y6gu8JLAPLN/Bq4M9b94CryYOzlLzn92GcncOkw=;
        b=ztAEAfTEQ6yLnV/Q4gUYIOUFAhy8zW2LRziT1YosBxayEsTQhdDR3nThK1P75aui7w
         RPg73Of+uwqjAoQXf7ZlHWKfrlCre+8CresaKAzFw8FLpI1xac4dgcoFwH9whJ4jxs1c
         N9AWmeRjEhspATIUxYkcJ8+OsUG/2TDPQu3k93cRO8NhCCD2sz6WiN/Cl64Rk6CBwsse
         ipZl6qZRo2dNravnsN2jXxUdABSUrTsKKSI/4Q8Gw2preRKRrpWBqyPFYswizDewQXuI
         f8twJZVfSdHoA8XwrKcVAfUxcpCryGYaeo9sHlheXbBf3I2kNWVHnvM8fyPs4VJAbudH
         ayoQ==
ARC-Authentication-Results: i=1; mx.examplerecipient.com;
       dkim=pass header.i=@examplesender.com header.s=qk6bvwgtoedeefsxxzx7zyh756x7pud2 header.b=eRCWqyY+;
       dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=VUA6FdBW;
       spf=neutral (examplerecipientdomain.com: 54.240.48.95 is neither permitted nor denied by best guess record for domain of 010001792602c3fc-SaMpLe-a4fc-4135-bc5a-b9fcaba8d509-000000@custommailfromdomain.examplesender.com) smtp.mailfrom=010001792602c3fc-SaMpLe-a4fc-4135-bc5a-b9fcaba8d509-000000@custommailfromdomain.examplesender.com
Return-Path: <010001792602c3fc-SaMpLe-a4fc-4135-bc5a-b9fcaba8d509-000000@custommailfromdomain.examplesender.com>
Received: from a48-95.smtp-out.amazonses.com (a48-95.smtp-out.amazonses.com. [54.240.48.95])
        by mx.examplerecipient.com with ESMTPS id c21si2902247qkj.313.2021.04.30.20.39.46
        for <hello@examplerecipient.com>
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128);
        Fri, 30 Apr 2021 20:39:46 -0700 (PDT)
Received-SPF: neutral (examplerecipientdomain.com: 54.240.48.95 is neither permitted nor denied by best guess record for domain of 010001792602c3fc-SaMpLe-a4fc-4135-bc5a-b9fcaba8d509-000000@custommailfromdomain.examplesender.com) client-ip=54.240.48.95;
Authentication-Results: mx.examplerecipient.com;
       dkim=pass header.i=@examplesender.com header.s=qk6bvwgtoedeefsxxzx7zyh756x7pud2 header.b=eRCWqyY+;
       dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=VUA6FdBW;
       spf=neutral (examplerecipientdomain.com: 54.240.48.95 is neither permitted nor denied by best guess record for domain of 010001792602c3fc-SaMpLe-a4fc-4135-bc5a-b9fcaba8d509-000000@custommailfromdomain.examplesender.com) smtp.mailfrom=010001792602c3fc-SaMpLe-a4fc-4135-bc5a-b9fcaba8d509-000000@custommailfromdomain.examplesender.com
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=qk6bvwgtoedeefsxxzx7zyh756x7pud2; d=examplesender.com; t=1619840386; h=From:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:Date; bh=VOs4y6gu8JLAPLN/Bq4M9b94CryYOzlLzn92GcncOkw=; b=eRCWqyY+fg2dyuk0+vz+RATrOd6MxysLa6SS13u014Y5liKanL+SoWNhCeWBU1z2 vcVUnS7VNSF04+Cn1f0KssOyec9y/dlFN50upm59kyCc5bYQrDnSuRdDjDYMNd6tHfP OXbsl9SF2qR83+6zNOOY8LzbL7oCe8cXPoK4bL9s=
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1619840386; h=From:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:Date:Feedback-ID; bh=VOs4y6gu8JLAPLN/Bq4M9b94CryYOzlLzn92GcncOkw=; b=VUA6FdBWX2t78RPPo5T+VBhLY7ykrrk6Cvf3ye9OLHiKFtA+ZhZ7wUKoC85MaO4L +Ng+q7StDqYv2L7FKvoL2aUUMFAZcYOgzoXneO8enu8/5nRecowZdRfe0gMM3f5aL2R AJQYwmwHbCj7hNmHN/0tKhVRynIEdEnkKoe2Qook=
From: hello@examplesender.com
To: hello@examplerecipient.com
Subject: SES
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Message-ID: <010001792602c3fc-SaMpLe-a4fc-4135-bc5a-b9fcaba8d509-000000@email.amazonses.com>
Date: Sat, 1 May 2021 03:39:46 +0000
Feedback-ID: 1.us-east-1.27emrSSn5f4pRLShWT3CyWg+hDbDkwgJZdVmQ6/qxx8=:AmazonSES
X-SES-Outgoing: 2021.05.01-54.240.48.95

Hi there, this message is sent using SES.

解决方法

要查看电子邮件的完整电子邮件标头,请在您使用的电子邮件客户端中执行相应的操作。

Microsoft Outlook 2016、2013 或 2010

  1. 双击您想要查看标头的电子邮件,它将以全屏方式发开。
  2. 选择 File(文件),然后选择 Properties(属性)。
  3. Properties(属性)窗口底端的 Internet headers(Internet 标头)字段中查看消息标头。

Apple Mail

  1. 打开您想要查看标头的电子邮件。
  2. 在菜单中,选择 View(查看)、Message(消息)、Raw Source(原始来源)。
  3. 完整消息和电子邮件标头将出现在弹出窗口当中。

Mozilla Thunderbird

  1. 从阅读窗格选择您要查看标头的电子邮件,并在新的选项卡或窗口中打开。
  2. 在菜单中选择 View(查看)、Message Source(消息源)。
  3. 完整消息和电子邮件标头将出现在弹出窗口当中。

Gmail

  1. 打开您想要查看标头的电子邮件。
  2. 选择 More(更多)菜单,然后选择 Show original(显示原始邮件)。
  3. 新的选项卡将会打开,其中包括完整的消息和电子邮件标头。

Hotmail (Outlook.com)

  1. 在您的 outlook.com 收件箱中,不用打开电子邮件,只要打开电子邮件的上下文(右击)菜单,然后选择 View(查看)、View message source(查看邮件源)。
  2. 完整消息和电子邮件标头将出现在弹出窗口当中。

Yahoo! Mail

  1. 在您的 yahoo.com 收件箱中,不用打开电子邮件,只要打开电子邮件的上下文(右击)菜单,然后选择 View raw message(查看原始邮件)。
  2. 新的选项卡将会打开,其中包括完整的消息和电子邮件标头。

这篇文章对您有帮助吗?


您是否需要账单或技术支持?