> For the complete documentation index, see [llms.txt](https://docs.cipp.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cipp.app/user-documentation/email/reports/mail-flow-statistics.md).

# Mail Flow Statistics

This page charts the selected tenant's mail flow over the last 7, 14, 30 or 90 days: how much mail arrived, how much of it was good, and how much Exchange Online stopped as spam, phishing or malware. A stacked bar chart breaks the dispositions down by day, a donut splits traffic by direction (inbound, outbound and intra-org), and two tables list the top mail senders and the top spam recipients.

## Action Buttons

<details>

<summary>Export Report</summary>

Generates a branded, client-ready PDF of the currently selected date range: an executive summary with a computed mail hygiene rating, the daily volume and disposition figures, the top senders and top spam recipients, and a set of recommendations drawn from that window's own data. A preview opens first, with a **Download PDF** button alongside it. Greyed out while the figures are loading, or when the tenant has no mail flow data for the selected period.

</details>

## Where the numbers come from

The daily disposition counts come from the Exchange Online `Get-MailFlowStatusReport` cmdlet, and the top sender and top spam recipient tables from `Get-MailTrafficSummaryReport`. Both support at most 90 days of history, which is why the period selector stops there.

{% hint style="info" %}
This page reports on a single tenant at a time, and is not available in All Tenants mode.
{% endhint %}

***

## Feature Requests / Ideas

We value your feedback and ideas. Please raise any [feature requests](https://github.com/CyberDrain/CIPP/issues/new?template=feature.yml) on GitHub.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cipp.app/user-documentation/email/reports/mail-flow-statistics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
