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

# Email on your domain

> MX + SPF/DKIM/DMARC in the bot for external mail

Lumi does not host mailboxes. To get an address like `info@yourdomain.com`, you point your domain at an external email service and add the right DNS records in the bot: an **MX** record (where mail is delivered) and **TXT** records for SPF/DKIM/DMARC (so your mail doesn't land in spam). It all happens in [@lumibp\_bot](https://t.me/lumibp_bot) → **My Domains** → your domain → **DNS settings**, and the domain stays on Cloudflare.

## How it works

<Steps>
  <Step title="Pick an email service">
    Any provider that gives you mail on your own domain: Google Workspace, Yandex 360, Zoho Mail (Zoho has a free plan for a single domain), and so on. Create a mailbox there and add your domain — the service will tell you which records to set.
  </Step>

  <Step title="Add MX records">
    In **DNS settings**, add **MX** records with the hostnames and priorities the service gave you. Lower priority = higher precedence. For example:

    | Type | Name | Value              | Priority |
    | ---- | ---- | ------------------ | -------- |
    | MX   | `@`  | `mx1.provider.com` | 10       |
    | MX   | `@`  | `mx2.provider.com` | 20       |
  </Step>

  <Step title="Add TXT: SPF, DKIM, DMARC">
    These three are **TXT** records. Take the exact values from your email service's panel:

    | Record | Name                  | Value (example)                                                |
    | ------ | --------------------- | -------------------------------------------------------------- |
    | SPF    | `@`                   | `v=spf1 include:provider.com ~all`                             |
    | DKIM   | `selector._domainkey` | `v=DKIM1; k=rsa; p=<public key>`                               |
    | DMARC  | `_dmarc`              | `v=DMARC1; p=quarantine; rua=mailto:postmaster@yourdomain.com` |

    SPF authorizes the service's servers to send as your domain; DKIM signs the messages; DMARC tells receivers what to do with mail that fails the checks. More detail in [DNS records](/en/domains/dns).
  </Step>

  <Step title="Wait and verify">
    Records usually propagate in minutes, sometimes up to a couple of hours. Then hit "Verify" in your email service's panel — it confirms the MX and signature for you.
  </Step>
</Steps>

<Note>
  The bot supports **A, CNAME, AAAA, MX, TXT, SRV** records — enough for any email service. Add multiple MX servers as separate records with different priorities.
</Note>

## Option with your own NS (no Cloudflare)

If you want mail without a separate email service, you can delegate the domain to an NS provider that hands out mailboxes directly — for example **Alwaysdata** (free plan, mailbox kept indefinitely).

<Warning>
  Changing NS moves the domain off Cloudflare: SSL modes, DDoS protection, and redirects from the bot will stop working on that domain. Use this only if you don't need the Cloudflare features.
</Warning>

<Steps>
  <Step title="Sign up">
    Create an account on the [free Alwaysdata plan](https://www.alwaysdata.com/en/register/) → **Product → Free**.
  </Step>

  <Step title="Add the domain and change NS">
    Go to **Domains** → add your domain → copy the NS you're given. Paste them into [@lumibp\_bot](https://t.me/lumibp_bot) → **My Domains** → your domain → **Change NS** (space-separated, no commas).
  </Step>

  <Step title="Create a mailbox and log in">
    **Email → Addresses → Add a mailbox**, with the name before the `@` in the localpart field. Sign in to your mail via [Roundcube](https://webmail.alwaysdata.com/). NS propagation takes up to 24 hours.
  </Step>
</Steps>

<CardGroup cols={2}>
  <Card title="DNS records" icon="list" href="/en/domains/dns">
    Record types, SPF, DKIM, DMARC in detail.
  </Card>

  <Card title="Connect to a site" icon="plug" href="/en/domains/connect">
    NS and an A record for your own server.
  </Card>
</CardGroup>
