# POST /mail/greylist/{id}/pass

First published 19 Nov 2026 (release 0.2.30) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

Release a greylisted message for its next delivery attempt

- Who may call it: administrator
- Token scope, any of: mail, all
- Answers: 200 OK

The message can pass greylisting on its next retry, whenever it arrives, and still goes through spam scoring. As after the usual wait, later mail from the same sender and network to the same recipients bypasses greylisting while Rspamd remembers the sender.

Use always to add an exemption for future mail. Adding a sender domain requires held mail that SPF or DKIM verified as coming from that domain. UrbeStack reports when that verification is missing. See POST /mail/lists for how nogreylist entries match.

The id must contain 4 to 64 lowercase letters or digits. An invalid id or always value returns 400. Requires an administrator token with the mail scope.

## As a command

- [urbestack-mail-greylist-pass](https://urbestack.com/docs/commands/urbestack-mail-greylist-pass.md): Lets mail deferred by greylisting pass at its next retry, whenever it arrives.

## Parameters

- `id` (path, string, matching ^[a-z0-9]{4,64}$, required)

## Request body

JSON.

- `always` (string, one of ip, domain): Entry to add to the server's nogreylist list, with ip for the sending server's IP address or domain for the sender domain. UrbeStack releases all messages held from the selected IP address or domain.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X POST "$API/mail/greylist/1/pass" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "always": "ip"
  }'
```

Response, 200 OK:

```
{
  "always": {
    "added": 1,
    "entry": "text",
    "kind": "profile",
    "scope": "text"
  },
  "domain": "example.com",
  "id": 1,
  "messages": 1,
  "sender": "text"
}
```

## Errors

- 400: --always is ip or domain
- 400: --id goes alone
- 400: <what> must be text without control characters, 1 to <max> characters
- 400: An entry is named by lowercase letters and digits
- 400: Domain name required
- 400: Domain name too long
- 400: Give --id ID, or --domain DOMAIN with --sender SENDER_DOMAIN
- 400: Give an entry, or a domain and the sender domain held for it
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 400: With --domain, --always is domain: a customer lists a sender by its domain
- 400: always is ip or domain
- 401: Authentication required
- 403: Only an administrator can let through an individual held message.
- 404: No held message <id>
- 404: No mail from <sender> is held for <name>
- 404: Setting '<key>' not found
- 409: Mail from <sender> is no longer held: its records have expired.
- 409: That message has no sender domain. You can list its sending server's IP address instead.
- 409: That message has no sending server IP address on record
- 409: That message is no longer held: its record expired. Its next delivery attempt will be checked again.
- 409: That message was let in already
