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

/domains/{name}/mail/greylist/pass

First published 19 Nov 20260.2.30Unchanged since publication

Release greylisted mail from a sender domain

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailall
Answers200 OK

Every message currently held for the recipient domain from sender can pass greylisting on its next delivery attempt, whenever that occurs. Spam scoring still applies. As after the normal wait, later mail with the same sender, sending network and recipients bypasses greylisting for as long as Rspamd remembers the sender.

With always set to true, UrbeStack also exempts the sender domain from future greylisting through the recipient domain's nogreylist list. The request is refused if none of the held messages came from that sender domain as verified by SPF or DKIM.

The 200 response identifies the recipient domain and sender in domain and sender, and reports the number released in messages. When always is true, the response also includes the nogreylist entry and whether the request added it in always.

Administrators, the customer who owns the domain and that customer's reseller can call this operation with a token that has the mail scope.

As a command

Run as root on the server

Parameters

namepath ·DomainNameRequired

Request body

JSON· 2 fields
senderstring, up to 253 charactersRequired
Sender domain as listed by GET /domains/{name}/mail/greylist.
alwaysboolean
Whether to add the sender domain to the recipient domain's nogreylist list to exempt it from future greylisting. Defaults to false and requires at least one held message verified by SPF or DKIM as coming from the sender domain when set to true.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/domains/example.com/mail/greylist/pass" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "always": true,
    "sender": "text"
  }'
Response · 200 OK
{
  "always": {
    "added": 1,
    "entry": "text",
    "kind": "profile",
    "scope": "text"
  },
  "domain": "example.com",
  "id": 1,
  "messages": 1,
  "sender": "text"
}

Errors

26 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 boolean
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-domains-name-mail-greylist-pass/