/domains/{name}/mail/greylist/pass
0.2.30Unchanged since publicationRelease greylisted mail from a sender domain
mailallEvery 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 serverParameters
namepath ·DomainNameRequiredRequest body
JSON· 2 fieldssenderstring, up to 253 charactersRequiredalwaysbooleanExample
See the API overview for how to set $API and $TOKEN.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"
}'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 sentence400--always is ip or domain400--id goes alone400<what> must be text without control characters, 1 to <max> characters400An entry is named by lowercase letters and digits400Domain name required400Domain name too long400Give --id ID, or --domain DOMAIN with --sender SENDER_DOMAIN400Give an entry, or a domain and the sender domain held for it400Invalid IPv4 address400Invalid IPv6 address400Invalid boolean400Invalid domain name400Invalid port400Invalid setting key400With --domain, --always is domain: a customer lists a sender by its domain400always is ip or domain401Authentication required403Only an administrator can let through an individual held message.404No held message <id>404No mail from <sender> is held for <name>404Setting '<key>' not found409Mail 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 record409That message is no longer held: its record expired. Its next delivery attempt will be checked again.409That message was let in alreadyurbestack.com/docs/api/post-domains-name-mail-greylist-pass/