# Blocked senders

Discard a sender’s new email before it is stored.

## mailset blocks list

List the senders blocked in your mailboxes.

```bash
mailset blocks list
```

With `--json` it prints what [the API returns](https://mailset.app/docs/api/blocks#blocks.list-returns).

Example:

```bash
mailset blocks list
```

In the API: [POST /v1/blocks.list](https://mailset.app/docs/api/blocks#blocks.list)

## mailset blocks add

Discard a sender’s new mail in one mailbox.

```bash
mailset blocks add <address> --mailbox <mailbox> [--everywhere]
```

### Flags

- `<address>` (argument, required): The sender’s address.
- `--mailbox` (\<mailbox\>, required): One of your mailboxes, by address.
- `--everywhere` (flag, optional): In every mailbox you can open, not only this one.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/blocks#blocks.add-returns).

Example:

```bash
mailset blocks add offers@example.net --mailbox ana@example.com
```

In the API: [POST /v1/blocks.add](https://mailset.app/docs/api/blocks#blocks.add)

## mailset blocks addMany

Block several senders at once, each in its own mailbox.

```bash
mailset blocks addMany --senders <json>
```

### Flags

- `--senders` (\<json\>, required): The senders to block, each with the mailbox to block it in. Up to 100. Or @<path>, to read the JSON from a file.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/blocks#blocks.addMany-returns).

Example:

```bash
mailset blocks addMany --senders @senders.json
```

`senders.json`:

```json
[
  {
    "mailbox": "ana@example.com",
    "address": "offers@example.net"
  },
  {
    "mailbox": "ana@example.com",
    "address": "deals@example.org"
  }
]
```

In the API: [POST /v1/blocks.addMany](https://mailset.app/docs/api/blocks#blocks.addMany)

## mailset blocks remove

Stop blocking a sender.

```bash
mailset blocks remove <address> --mailbox <mailbox> [--everywhere]
```

### Flags

- `<address>` (argument, required): The sender’s address.
- `--mailbox` (\<mailbox\>, required): One of your mailboxes, by address.
- `--everywhere` (flag, optional): In every mailbox you can open, not only this one.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/blocks#blocks.remove-returns).

Example:

```bash
mailset blocks remove offers@example.net --mailbox ana@example.com
```

In the API: [POST /v1/blocks.remove](https://mailset.app/docs/api/blocks#blocks.remove)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content