郵件投遞失敗診斷紀錄之分析系統
A Diagnostic Record Analysis System for Mail Delivery Failures
摘要
郵件管理員通常根據簡單郵件傳輸協定(SMTP)拒收回覆、未送達通知與本地郵件
日誌查核投遞失敗。部分 SMTP 拒收回覆已指出收件者狀態、寄件端設定或基礎設施
等檢查方向,防護政策、垃圾郵件與寄件者信譽相關回覆則較為概括。郵件日誌又分
散在不同主機與佇列,單次拒收回覆未必代表郵件的最後投遞結果。
本論文提出一套以收件者為單位的投遞失敗分流方法。系統將一封郵件寄往一名
收件者的投遞歷程記為一件郵件事件,並先將跨主機與跨佇列日誌重建為可追溯的投
遞路徑,再依重建所得的投遞嘗試判定並保存最終可觀察狀態。獨立的診斷分析則將
NDR message 整理成 Drain 樣板與診斷症狀群組。維運查詢結合上述結果與寄件者驗
證、Rspamd 垃圾郵件判斷及 Spamhaus DBL 查詢結果,形成管理員事件查核清單。
本論文以固定時間點的資料快照回溯呈現規則輸出。2026-04-01 至 2026-06-08 的觀
測期間中,排除已知的 DMARC 報告處理失敗事件後,共有 7,548 件最後退信。將固定
管理員規則套用於該資料快照後,1,031 件列入事件查核清單,占共同母體 13.7%,其
餘 6,517 件未列入清單。這些數量呈現固定規則在該資料快照中形成的事件查核清單規
模。
日誌查核投遞失敗。部分 SMTP 拒收回覆已指出收件者狀態、寄件端設定或基礎設施
等檢查方向,防護政策、垃圾郵件與寄件者信譽相關回覆則較為概括。郵件日誌又分
散在不同主機與佇列,單次拒收回覆未必代表郵件的最後投遞結果。
本論文提出一套以收件者為單位的投遞失敗分流方法。系統將一封郵件寄往一名
收件者的投遞歷程記為一件郵件事件,並先將跨主機與跨佇列日誌重建為可追溯的投
遞路徑,再依重建所得的投遞嘗試判定並保存最終可觀察狀態。獨立的診斷分析則將
NDR message 整理成 Drain 樣板與診斷症狀群組。維運查詢結合上述結果與寄件者驗
證、Rspamd 垃圾郵件判斷及 Spamhaus DBL 查詢結果,形成管理員事件查核清單。
本論文以固定時間點的資料快照回溯呈現規則輸出。2026-04-01 至 2026-06-08 的觀
測期間中,排除已知的 DMARC 報告處理失敗事件後,共有 7,548 件最後退信。將固定
管理員規則套用於該資料快照後,1,031 件列入事件查核清單,占共同母體 13.7%,其
餘 6,517 件未列入清單。這些數量呈現固定規則在該資料快照中形成的事件查核清單規
模。
Mail administrators investigate delivery failures using SMTP rejection replies, system-
generated non-delivery notifications, and local mail logs. Some SMTP rejection replies identify
recipient, sender-configuration, or infrastructure issues, whereas replies concerning protective
policies, spam, and sender reputation are less specific. Records are also distributed across hosts
and queues, and a single rejection does not necessarily represent the final delivery outcome.
This thesis presents a delivery-failure triage method that uses a per-recipient mail event as its
common unit of analysis. The system reconstructs records distributed across hosts and queues
into traceable delivery paths, then determines and stores final observable outcomes from the
reconstructed delivery attempts. An independent diagnostic analysis organizes NDR messages
into Drain templates and rule-defined diagnostic symptom groups. Operational queries com-
bine these results with authentication, Rspamd, and Spamhaus DBL evidence to produce an
administrator per-event review queue.
The retrospective analysis uses a point-in-time data snapshot. After excluding known
DMARC aggregate-report processing events, the observation period from 2026-04-01 to
2026-06-08 contains 7,548 final bounces. Applying the fixed administrator rules to that
snapshot places 1,031 events, or 13.7% of the shared denominator, in the per-event review
queue. The remaining 6,517 events are not selected for the queue. These counts characterize
the scale of the per-event review queue produced by the fixed rules on this snapshot.
generated non-delivery notifications, and local mail logs. Some SMTP rejection replies identify
recipient, sender-configuration, or infrastructure issues, whereas replies concerning protective
policies, spam, and sender reputation are less specific. Records are also distributed across hosts
and queues, and a single rejection does not necessarily represent the final delivery outcome.
This thesis presents a delivery-failure triage method that uses a per-recipient mail event as its
common unit of analysis. The system reconstructs records distributed across hosts and queues
into traceable delivery paths, then determines and stores final observable outcomes from the
reconstructed delivery attempts. An independent diagnostic analysis organizes NDR messages
into Drain templates and rule-defined diagnostic symptom groups. Operational queries com-
bine these results with authentication, Rspamd, and Spamhaus DBL evidence to produce an
administrator per-event review queue.
The retrospective analysis uses a point-in-time data snapshot. After excluding known
DMARC aggregate-report processing events, the observation period from 2026-04-01 to
2026-06-08 contains 7,548 final bounces. Applying the fixed administrator rules to that
snapshot places 1,031 events, or 13.7% of the shared denominator, in the per-event review
queue. The remaining 6,517 events are not selected for the queue. These counts characterize
the scale of the per-event review queue produced by the fixed rules on this snapshot.