
# Security and spam

## Your connection and your passwords

- **Everything is encrypted.** Webmail uses HTTPS. Mail apps connect over TLS
  (version 1.2 or 1.3) on ports 993, 587 and 465, and the server doesn't accept a
  password before the connection is encrypted.
- **App passwords** are made by Cruma from a strong random source, shown to you
  once, and stored only in scrambled form. Cruma can't read yours back. Each is
  for one device on one mailbox, and revoking one signs that device out at once.
  See [using your own mail app](https://cruma.io/book/mail/mail-apps.md).
- **Guessing is slowed down.** Repeated wrong sign-ins from one place, or against
  one mailbox, are blocked for a while. Don't keep trying a wrong password.
- **Passwords aren't written to logs.** Neither are the contents of your
  messages.
- **Your Cruma sign-in is never shared with a mail app.** A mail app only ever
  holds an app password.

If a device is lost or a password leaked, revoke that app password under
**Mail apps**. If you think a mailbox is compromised, turn it off, which also
stops anything being sent from it, and contact Cruma.

## Nobody else can send as you

Mail can only be sent after signing in, and only from your own address (or an
alias that delivers to your mailbox) on a verified domain of your own
organization. Cruma isn't an open relay: it never accepts mail for a domain it
doesn't host. A message with more than one From address is refused.

Your organization's data is kept apart from every other organization's. A domain
name belongs to one organization only.

## Who sent this message?

When mail arrives, Cruma checks it:

- **SPF**: did it come from a server the sender's domain allows?
- **DKIM**: does the signature match, and is the message unchanged?
- **DMARC**: does the sender's own policy say it should be accepted?

Webmail shows the result as a badge on the message:

| Badge | Means |
| --- | --- |
| **Verified sender** | The message passed the sender domain's DMARC policy. |
| **Passed SPF/DKIM** | It passed SPF or DKIM, but DMARC didn't confirm that the From address matches. |
| **Failed a sender check** | One of the checks failed. Be careful. |
| **Sender not verified** | The DMARC policy failed, or SPF and DKIM both did. This may be a forgery. |
| **No sender proof** | The sender's domain published nothing to check. Many small senders are like this. |
| **Not checked** | The message didn't arrive over the Internet, so there was nothing to check. |

Hover or select the badge to read the details. A badge reduces risk; it
doesn't prove a message is safe. A real, verified sender can still send you a
scam.

## Spam and the Junk folder

What happens to incoming mail is decided by the sender's own authentication, not
by reading your messages:

- If the sender's domain published a DMARC policy of `p=reject` and the message
  fails it, the message is **refused**. The sending server is told so, so the
  sender sees the bounce, and nothing is stored.
- If the policy is `p=quarantine` and the message fails it, or SPF failed hard
  and the message has no valid signature, it goes to **Junk**.
- A message with a valid signature that passes DMARC is delivered to the Inbox
  even if it was forwarded and SPF no longer matches.
- If Cruma can't read the sender's DNS at that moment, the message is
  **deferred** and the sender's server tries again later, so no mail is lost.
- Everything else goes to your **Inbox**.

Cruma does **not** read your messages to judge whether they are spam. A message that gets through isn't therefore
trustworthy: unsolicited mail from a domain with no policy lands in the Inbox.
To move a message to Junk yourself, use **Move to folder**. Messages in Junk
show a warning banner. Nothing in Junk is deleted for you automatically, so look
there from time to time for a message that was wrongly sorted.

If an important sender's mail lands in Junk, the cause is almost always their
SPF and DKIM set-up. Ask them to fix it, because moving the message to the Inbox
doesn't change how the next one is sorted.

## Links, attachments and images

- Messages are shown with their scripts removed, in a box that can't reach the
  rest of the app.
- Remote images are blocked until you choose **Load images**, because they tell
  the sender you read the message.
- Don't open attachments or follow links you didn't expect, especially in a
  message in Junk.

## Deleting your mail

Deleting a message moves it to Trash, and deleting it again from Trash removes
it permanently. Deleting a mailbox or a domain removes its messages permanently
and can't be undone.

## What isn't offered

To keep expectations clear, the following aren't offered yet: forwarding a
mailbox to an address elsewhere, filter rules, automatic replies, shared
mailboxes and push notifications to your phone. Mail apps still check for new
mail as usual, and apps that support IMAP IDLE hear about it straight away.

---

- Book: [Cruma Email (Private preview)](https://cruma.io/book/mail.md)
- Previous: [Sending well](https://cruma.io/book/mail/sending-well.md)
- Pages: [Home](https://cruma.io/home.md) · [Docs](https://cruma.io/docs.md) · [Pricing](https://cruma.io/pricing.md) · [Share localhost](https://cruma.io/share-localhost.md) · [Webhook testing](https://cruma.io/webhook-testing.md) · [Homelab](https://cruma.io/homelab.md) · [AI coding agents](https://cruma.io/ai-coding-agents.md) · [Cruma vs ngrok](https://cruma.io/ngrok-alternative.md) · [Cruma vs Cloudflare Tunnel](https://cruma.io/cloudflare-tunnel-alternative.md) · [Blog](https://cruma.io/blog.md)
