Get your free beta license ↗
API operation · mail group
POST

/mail/greylist/{id}/pass

First published 19 Nov 20260.2.30Unchanged since publication

Release a greylisted message for its next delivery attempt

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailall
Answers200 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

Run as root on the server

Parameters

idpath ·string, matching ^[a-z0-9]{4,64}$Required

Request body

JSON· 1 field
alwaysstring, 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

See the API overview for how to set $API and $TOKEN.
Request
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

25 errors, each a status and a sentence
400--always is ip or domain
400--id goes alone
400<what> must be text without control characters, 1 to <max> characters
400An entry is named by lowercase letters and digits
400Domain name required
400Domain name too long
400Give --id ID, or --domain DOMAIN with --sender SENDER_DOMAIN
400Give an entry, or a domain and the sender domain held for it
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid port
400Invalid setting key
400With --domain, --always is domain: a customer lists a sender by its domain
400always is ip or domain
401Authentication required
403Only an administrator can let through an individual held message.
404No held message <id>
404No mail from <sender> is held for <name>
404Setting '<key>' not found
409Mail from <sender> is no longer held: its records have expired.
409That message has no sender domain. You can list its sending server's IP address instead.
409That message has no sending server IP address on record
409That message is no longer held: its record expired. Its next delivery attempt will be checked again.
409That message was let in already
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/api/post-mail-greylist-id-pass/