> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Accept and parse incoming emails on your custom domains with Inbound Webhooks.

# Receiving Introduction

Mailofly allows you to accept inbound emails on your own domain, parse the headers, body, and attachments, and route them to your application via **Inbound Webhooks**.

***

## Common Use Cases

* **Help Desk & Support**: Receive replies to support tickets and route them to customer chat or ticket threads.
* **AI Inboxes & Autonomous Agents**: Give an AI agent its own email address (`agent@yourdomain.com`) to read incoming inquiries and respond autonomously.
* **Email-to-Action Workflows**: Create tasks, parse invoice receipts, or process data submissions sent via email.
* **Forwarding**: Automatically forward incoming emails to your personal or team address.

***

## Architecture

```mermaid theme={null}
flowchart LR
    Sender[External Sender] -->|Sends Email| MX[Inbound MX Server]
    MX --> Mailofly[Mailofly Inbound Parser]
    Mailofly -->|POST JSON Webhook| App[Your Application API]
    Mailofly -->|Optional| Fwd[Forward to Inbox]
```

1. **DNS MX Record**: Routes incoming mail for your domain or subdomain to Mailofly.
2. **Inbound Processing**: Mailofly receives the raw MIME message, validates SPF/DKIM, parses headers, plaintext/HTML, and decodes attachments.
3. **Webhook Emission**: A structured `email.received` JSON payload is delivered via HTTP POST to your webhook endpoint.

***

## Next Steps

* [Configuring Custom Inbound Domains](custom-domains.md)
* [Handling Inbound Webhooks](inbound-webhooks.md)
* [Processing Attachments & Auto-Forwarding](attachments-and-forwarding.md)


## Related topics

- [Introduction](/introduction.md)
