# SPF lets anyone send as you

Your SPF record ends with `+all`, or with `all` and no sign in front, which means the same. It approves every server in the world. Anyone can send mail as your domain and pass SPF.

`all` matches any server, and the `+` in front means pass. One case is harmless: an earlier `-all` or `~all` in the same record, as in `v=spf1 -all +all`, since receivers stop at the first `all`. Remove the `+all` anyway; it does nothing. [RFC 7208 section 5.1](https://www.rfc-editor.org/rfc/rfc7208.html#section-5.1) calls `all` "a test that always matches". With `+all` at the end, a server your record doesn't list still passes. With DMARC, a forger who uses your domain as the return address then passes DMARC too.

The result lists this finding first:

```
SPF lets anyone send as you
The record ends with all or +all, which approves every server in the world.
```

## Look it up

**Details →** on your result shows your record. To look it up yourself, put your domain in place of `example.com`:

```
dig +short TXT example.com
```

## Fix it

1. At your DNS provider, open the TXT record at your domain starting `v=spf1`.
2. Make sure every service you send through is listed before the ending. A service that passed only because of `+all` stops passing once you change it. [No SPF record](/docs/findings/spf-missing/#publish-one) says how to find each service's entry.
3. Change `+all` (or `all`) to `~all`. Mail from a server your record doesn't list then counts as suspicious, not as a pass.
4. Run the check again.

To move from `~all` to `-all` later, first check each service passes SPF itself, as [Before you switch to -all](/docs/findings/spf-missing/#before-you-switch-to-all) explains.
