SPFBL.net · Documentation

API

The API gives your system the same queries and actions as the panel: message history, details of each record, whitelisting and blocking senders, sending samples to the AI analysis. Responses are JSON, except the MTA client registration, in plain text.

Authentication

Create a key in Access keys. It is shown only once and has the format spfbl_<id>_<secret>, 58 characters long. The key has the same rights as your account.

Send the key in every request, only in the Authorization header and only over HTTPS:

curl -sS "https://matrix.spfbl.net/history/" \
     -H "Authorization: Bearer spfbl_XXXXXXXX_..."
The key is revoked immediately, with an e-mail notice, if it shows up in a URL (for example ?key=spfbl_...) or arrives over http://. Keep it like a password: out of source code and out of logs.
  • Up to 10 active keys per account. Use one per system, so you can revoke only the one that leaked.
  • Validity of 1 year, 90 days or no expiration, chosen at creation. SPFBL sends an e-mail 14 and 3 days before the expiration.
  • A key unused for 180 days is revoked automatically.
  • Keys are for queries and actions. Creating and revoking keys happens only in the panel.

Key errors

When there is a problem with the key, the response is HTTP 200 with one of these values in result. The exception is the MTA client registration (POST /client/), called by scripts: it answers HTTP 403 (429 for BANNED) with the same JSON in the body.

resultMeaningExtra fields
INVALID_KEYUnknown key or wrong format. Counts as a login failure for the IP.
KEY_REVOKEDRevoked or expired key. Create another one in the panel.reason, id, revoked (milliseconds)
KEY_IN_URLThe key came in the URL and was just revoked.
KEY_HTTPSThe key came over HTTP and was just revoked.
BANNEDToo many recent failures from this IP. Wait before trying again.wait (seconds)
EXPIREDRequest without any credential.

Revocation reasons in reason: MANUAL (in the panel), URL, HTTP, EXPIRED, UNUSED (180 days without use) and ADMIN (by the administrator).

Account suspended for non-payment

When an invoice stays unpaid for 30 days, the paid services of the account are suspended until the payment (see Billing). During the suspension, queries, history, billing and payments keep working, and the actions that use a paid service answer HTTP 200 with {"result": "SUSPENDED"}:

  • sample submission, new analysis and answer (/samples/upload/ and /samples/);
  • adding to RBL monitoring (/monitoring/) and DNS listing requests (/listing/);
  • fast delist and paid RBL query (/delist/);
  • new MX Gateway domain (/mxgateway/).

The queries of the MTA scripts (/spfbl/ and /scan/) get HTTP 403 with SUSPENDED in the body, and spfbl.sh lets the message pass without filtering. On the SPFBL.net SMTP, the MX Gateway answers 451 4.7.1 and authenticated sending, 454 4.7.0. The overdue field of GET /billing/ shows the dates and the amount that reactivates the account.

History: GET /history/

Lists the messages of your account, newest first. Parameters go in the URL and are all optional.

ParameterUse
noneMost recent page, up to 1024 records.
beginPrevious page: use the next value of the previous response. Repeat while next comes.
afterOnly records that arrived after this key, oldest first, up to 32 at a time. "more": true comes when there are more. This is the right mode for periodic polling.
filterSearch like the panel's: free text (sender, subject, IP…) or, in UPPERCASE, the name of a criterion, such as SENDER_RED.
active=1Only what is still in progress (held, queued or being received), from any date, up to 500.
timekeysCurrent state of known records: up to 64 key values separated by commas. Records that no longer exist come with "missing": true.

The history keeps only part of the rejections caused by bans (result BANNED), to avoid bloating the database. To find them, use filter with the sender domain: the last rejection of that sender comes back. A filter by recipient may return nothing.

curl -sS "https://matrix.spfbl.net/history/?after=1795162167378" \
     -H "Authorization: Bearer $SPFBL_KEY"

Response:

{
  "result": "VALID",
  "user": "[email protected]",
  "alerts": 0,
  "optout": false,
  "more": false,
  "message": [
    {
      "key": 1795162201845,
      "queueid": "1k7s086as",
      "arrival": "Fri, 20 Nov 26 05:10:01 -0300",
      "ip": "65.182.169.23",
      "from": "[email protected]",
      "recipient": "[email protected]",
      "subject": "Commercial proposal",
      "result": "HOLD",
      "filter": "SENDER_RED",
      "pending": false,
      ...
    }
  ]
}

With begin or without parameters, the response carries next when there is a previous page. result may be UNAVAILABLE if the history is temporarily unavailable: try again in a few seconds.

Message details: GET /registry/?timekey=<key>

Returns every history field plus: simplified, body (message text), links, executable, malware, malwareIgnored, banned and status (WHITELISTED, BLOCKED or NONE, the sender's state now). The record comes in message, as an object.

curl -sS "https://matrix.spfbl.net/registry/?timekey=1795162201845" \
     -H "Authorization: Bearer $SPFBL_KEY"

result: VALID, NOTFOUND (record does not exist or belongs to another account) or INVALID (missing timekey).

Actions

RequestEffect
GET /white/?timekey=<key>Whitelists the message's sender: their next messages are accepted.
GET /block/?timekey=<key>Blocks the message's sender: their next messages are refused.
GET /malware/?timekey=<key>&ignore=trueIgnores the virus alert of this message. The responsibility becomes yours: use it only when you are sure it is a false positive.
GET /malware/?timekey=<key>&ignore=falseTakes the virus alert into account again.

result: DONE when the action was done, NOTFOUND, INVALID (missing parameter or message without virus alert) or FAIL.

Whitelist: /whitelist/

Lists, adds and removes the allow records of your account. Administrator records do not show up. Listing accepts GET; adding and removing use POST, with the parameters in the body (application/x-www-form-urlencoded).

curl -sS "https://matrix.spfbl.net/whitelist/" \
     -H "Authorization: Bearer $SPFBL_KEY"

curl -sS -X POST "https://matrix.spfbl.net/whitelist/" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     --data-urlencode "action=add" \
     --data-urlencode "type=SENDER" \
     --data-urlencode "[email protected]" \
     --data-urlencode "validator=PASS"

curl -sS -X POST "https://matrix.spfbl.net/whitelist/" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     --data-urlencode "action=drop" \
     --data-urlencode "[email protected];PASS"
ParameterUse
actionlist (default), add or drop.
typeWhen adding: SENDER (full sender), DOMAIN (sender domain), HOST (origin server), IP, CIDR (at most /24 for IPv4 and /48 for IPv6), DISABLE_DESTINATION or DISABLE_ORIGIN (disable the SPFBL filter for a recipient or a sender).
sourceSender, domain, server, IP or block, depending on the type. In DOMAIN, HOST and DISABLE_ORIGIN, *.example.com covers any subdomain and *@example.com is accepted as the domain itself; the asterisk is only accepted in that position (error WILDCARD). In the listing, these records come with a leading dot (.example.com).
validatorFor SENDER and DOMAIN: PASS (valid SPF), BULK (any bulk email provider), DOMAIN or IP (with validator_value). Only SENDER accepts NONE: a record without validation is temporary and expires in 7 days.
validator_valueDomain or IP of the validating server, when validator is DOMAIN or IP.
destinationOptional: recipient or @domain. Required for DISABLE_DESTINATION.
tokenWhen removing: the record's token field, as returned by the listing.

Each listed item has token, type, source, validator, validator_value, destination, origin (who created the record: USER_MANUAL, USER_API, USER_DESIRABLE, ADMIN_MANUAL, the name of the automatic filter or UNKNOWN) and last_use (milliseconds of the last use). Records without validation also have temporary and expires. Automatic records expire when unused: 30 days (validated by IP), 90 (by domain), 180 (BULK) and 360 (PASS). Records added through the API get origin USER_API.

result: VALID (listing), DONE, EXISTS (the record already exists), NOTFOUND (removing a record that does not exist) or INVALID, with field and error saying what is wrong. A whole free email domain (@gmail.com, .outlook.com etc.) is refused with error FREEMAIL: allow the full sender instead.

Blocklist: /blocklist/

Lists, adds and removes the block records of your account. It works like the whitelist: listing accepts GET; adding and removing use POST, with the parameters in the body (application/x-www-form-urlencoded).

curl -sS "https://matrix.spfbl.net/blocklist/" \
     -H "Authorization: Bearer $SPFBL_KEY"

curl -sS -X POST "https://matrix.spfbl.net/blocklist/" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     --data-urlencode "action=add" \
     --data-urlencode "type=DOMAIN" \
     --data-urlencode "source=promo.example.com" \
     --data-urlencode "validator=NOTPASS"

curl -sS -X POST "https://matrix.spfbl.net/blocklist/" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     --data-urlencode "action=drop" \
     --data-urlencode "[email protected];NOTPASS"
ParameterUse
actionlist (default), add or drop.
typeWhen adding: SENDER (full sender), DOMAIN (sender domain), HOST (origin server), IP, SERVER (any sender coming from a sending server) or NO_SENDER (bounce messages from a domain or IP).
sourceSender, domain, server or IP, depending on the type. In DOMAIN, HOST and SERVER, *.example.com applies to any subdomain and *@example.com is accepted as the domain itself; the asterisk is only accepted in that position (error WILDCARD).
validatorFor SENDER and DOMAIN: ANY (default, in any situation), NOTPASS (SPF not approved), FAIL, SOFTFAIL, NEUTRAL, NONE (no SPF), BULK (sent by a bulk email provider), DOMAIN or IP (with validator_value).
validator_valueDomain or IP of the sending server, when validator is DOMAIN or IP.
destinationOptional: recipient or @domain.
tokenWhen removing: the record token field, as it came in the listing.

Each listed item has token, type (also CIDR, HREF, SIGNATURE and OTHER, which only show up in the listing), source, validator, validator_value, destination, origin (who created the record: USER_MANUAL, USER_API, USER_UNDESIRABLE, COMPLAIN, MASSIVE, ADMIN_MANUAL, the name of the automatic filter or UNKNOWN), last_use (milliseconds of the last use) and expires. A ban, which rejects the sender for any recipient right at the connection, comes with ban set to true. Every record, manual ones included, expires 90 days after the last time it blocks something.

result: VALID (listing), DONE, EXISTS (the record already exists), NOTFOUND (removing a record that does not exist) or INVALID, with field and error telling what is wrong.

Message fields

keyRecord identifier (arrival time in milliseconds). Use it in after, timekey and timekeys.
queueidMessage code in SPFBL, the same shown in the panel and in notices (#1k7s086as).
arrival / departureArrival date and the date declared by the sender, in e-mail format (RFC 5322).
clientMail server that made the query.
ip, fqdn, heloConnection origin.
sender, qualifierEnvelope sender and SPF result.
from, replyto, subjectMessage headers, when already read.
recipientRecipient.
layerHow far the message was analyzed: ENVELOPE, HEADER or BODY.
resultResult at arrival (table below).
filterCriterion that decided the result, such as SENDER_RED. May be null.
pendingtrue while the message is still being received.
malware, abuseName of the virus found and abuse report recorded, when present.

Results

ACCEPTAccepted and delivered.
WHITEDelivered because the sender is whitelisted.
FLAGDelivered marked as suspicious.
HOLDHeld, waiting for a decision.
QUEUEIn the delivery queue of the SPFBL mail server.
GREYLISTDeferred: the origin server must try again.
BLOCKRefused because the sender is blocked.
REJECTRefused by the analysis.
MALWARERefused for containing a virus.
BANNEDRefused because the origin is banned.
LISTEDRefused because the origin is on a block list.
FAILRefused for SPF failure.
INEXISTENTNonexistent recipient.
INVALID, NXDOMAINInvalid sender or nonexistent sender domain.
TRAPSent to a trap address.

MTA client: POST /client/

Registers the mail server that will query SPFBL, identified by the machine hostname. The Irondome installer makes this call; it also serves to check the registration after changing the server hostname or IP.

curl -sS -X POST "https://matrix.spfbl.net/client/" \
     -H "Authorization: Bearer spfbl_XXXXXXXX_..." \
     -H "X-SPFBL-Hostname: $(hostname -f)"
  • The registered IP is the one of the connection. On a server with IPv4 and IPv6, call once for each protocol (curl -4 and curl -6).
  • The hostname must be valid: have an A (IPv4) or AAAA (IPv6) record with the connection IP and not be a generic provider name. SPFBL uses this hostname to send the server the release signals of held messages.
  • The client belongs to the key user. If another account calls with the same hostname, the client moves to it.

The response is one line of text:

HTTPResponseMeaning
200OK <hostname> <ip>Client registered or updated.
400HOSTNAME REQUIREDThe X-SPFBL-Hostname header is missing.
403KEY REQUIREDCall without an access key. With an invalid key, the response is the key error JSON.
422INVALID FQDN <reason>NO_ADDRESS: the hostname has no A/AAAA record. IP_MISMATCH: the record does not contain the connection IP. GENERIC: generic provider name. RESERVED_IP: private or reserved IP. INVALID: malformed hostname.

A refused hostname is only checked again in DNS after 10 minutes; until then, the response repeats the reason. The key owner gets a notice by e-mail (at most one a day) and in the panel bell.

The queries of the spfbl.sh installed by Irondome carry the same two headers, and each one updates the registration (current IP, hostname change, owner). When the key or the hostname is refused, these queries answer 403, 422 or 429, and spfbl.sh lets the message pass without filtering, writing the reason to the mail server log.

Uninstallation: POST /client/uninstall/

Declares that Irondome was uninstalled from the server. The uninstaller makes this call before removing anything. The client leaves the MTA clients at once, without the 1-hour wait of the removal through the panel, and the account owner gets the uninstallation notice. The amount already charged in the cycle stays on the invoice.

curl -sS -X POST "https://matrix.spfbl.net/client/uninstall/" \
     -H "Authorization: Bearer spfbl_XXXXXXXX_..." \
     -H "X-SPFBL-Hostname: $(hostname -f)"

The hostname is validated for the IP of the connection, as in the registration. Response in one line of text: 200 UNINSTALLED <hostname>; 404 NOT FOUND (no client of the account with that hostname); and the same 400, 403 and 422 of the registration.

Billing: GET /billing/

Your account's invoices, from the most recent to the oldest, with the same data as the panel's Billing screen.

To change the preferred currency, use POST /billing/ with the currency parameter (USD, EUR and, if PIX is enabled on the account, BRL). The response is the same as the GET, already with the new currency; a currency outside the list returns {"result": "INVALID"}. Charges are always in dollars: the preferred currency only changes the estimate.

To buy credit via PayPal, use POST /billing/ with the paypal parameter (amount from 10.00 to 1000.00, up to two decimals) and, optionally, currency=USD (default) or currency=EUR. In EUR, the net amount received is converted to USD at the ECB rate. The response is {"result": "REDIRECT", "url": "https://www.paypal.com/..."}: open that URL in the browser to pay. After payment, PayPal returns to the panel, and the credit is added at the net amount, after the PayPal fee, only once the payment is completed. Other responses: INVALID (amount out of range), NO_BILLING, UNAVAILABLE (PayPal not available) and ERROR. The limits and the estimated fee come in the topup field of the GET.

To buy credit via Stripe, use POST /billing/ with the stripe parameter (amount in dollars, from 10.00 to 1000.00). Stripe always receives in USD; its page may show the amount in the customer's local currency and offer local methods, such as Pix, with the exchange handled by Stripe. The response is {"result": "REDIRECT", "url": "https://checkout.stripe.com/..."}. After payment, Stripe returns to the panel; the credit is added at the net amount in USD once the payment is confirmed (with Pix, it may take a few minutes). Other responses: INVALID, NO_BILLING, UNAVAILABLE and ERROR.

Only the currencies and platforms available right now appear in topup. A platform that is temporarily down leaves topup until it is back, and calls to it answer UNAVAILABLE; if all of them are down, the GET brings "paymentDown": true instead of topup. The user's default currency does not change.

On accounts with PIX enabled, use POST /billing/ with the pix parameter (amount in reais, up to two decimals) to buy credit via Pix. The response is {"result": "CHARGE"} with txid, amount, currency (BRL), expires (charge validity, in milliseconds), copy (Pix copy and paste code) and svg (QR code). To follow it, use POST /billing/ with pixstatus=<txid>: ACTIVE, RECEIVED (paid, credit being processed), PAID, EXPIRED or NOT_FOUND. The credit is added at the net amount, after the Pix fee, converted to dollars at the most recent PTAX rate of the Central Bank of Brazil. Other responses: INVALID, NO_PIX, NO_BILLING, UNAVAILABLE and ERROR. With PAID, the response also carries the credit details, as in payment below. The limits, the estimated fee and the rate come in the topup field of the GET.

To look up a credited payment of the account, use POST /billing/ with payment=<platform>:<transaction> (paypal:<TRANSACTIONID>, stripe:<PaymentIntent> or efi:<endToEndId>). The FOUND response carries platform, transaction, credit (credit added, in USD), balance, time and payment: currency, gross (amount paid), fee (actual platform fee), net and, outside USD, rate, rateSource and rateTime. With no payment of the account under that identifier, NOT_FOUND. The fee is paid by the payer.

To close the current invoice before the end of the cycle, use POST /billing/ with closenow=1: the invoice closes at once, the next ones close on today's day and the available credit is deducted; the response is the updated GET itself (or NOTHING, with nothing to close). To pay the amount due on a closed invoice, use POST /billing/ with invoicepay=paypal, invoicepay=stripe (in USD) or invoicepay=pix (only on accounts with PIX enabled) and invoice=<id>; PayPal also accepts currency=USD (default) or currency=EUR. The amount is the invoice amount due, converted at the currency rate and grossed up by the estimated fee, so the net amount covers it. The response is the same as for buying credit: REDIRECT with url for PayPal, or CHARGE for Pix, with invoice and total (in USD). Once the payment is confirmed, the invoice is settled and the payment email is sent; for Pix, pixstatus answers PAID with invoice. If the invoice was already settled before the confirmation, the payment is added as credit. Other responses: NOTHING (no amount due), NO_RATE, INVALID (above the platform maximum), NO_PIX, NO_BILLING, UNAVAILABLE and ERROR.

To add or edit the tax information (it cannot be removed), use POST /billing/ with fiscal=1 and the fields fiscal_name, fiscal_country (ISO 3166-1, two letters), fiscal_doctype (CNPJ or CPF, Brazil only), fiscal_document, fiscal_address, fiscal_city, fiscal_state and fiscal_zip. The response is the updated GET itself, or {"result": "INVALID", "field": "<field>"}.

curl -sS "https://matrix.spfbl.net/billing/" \
     -H "Authorization: Bearer spfbl_XXXXXXXX_..."

If billing is not enabled for the account (its payments are made on other platforms), the response is {"result": "VALID", "enabled": false}.

FieldContent
currencyCurrency of the charged amounts: always USD.
createdStart of the account's billing, in milliseconds.
anchorDay of the month on which the invoice closes, at midnight. In months without that day, it closes on the last day of the month.
topupOnly when buying credit is available: per currency (USD, EUR, BRL), the rate (units per dollar, with rateSource and rateTime) and methods, each with id (paypal, stripe, pix), min, max and, when configured, the estimated fee (percent and fixed, in the currency).
fiscalRegistered tax information: name, country, docType, document, address, city, state, zip.
companyName of the issuing company.
invoicesInvoices: id, begin and end (milliseconds), current (true on the current invoice), total and items.
userCurrency, currenciesThe account's preferred currency and the currencies it can choose.
estimateCurrent invoice only, when the preferred currency is not USD, together with projection (after the first three days): currency, projection (converted closing estimate), rate (units of the currency per dollar), rateTime (milliseconds) and source (the monetary authority of the currency, always quoted directly against the dollar: PTAX, Central Bank of Brazil, for BRL; ECB, European Central Bank, for EUR). Without an available rate, the field is omitted.
closed, paidOn each invoice: closed tells whether it has closed; paid, when the payment was recorded, has currency, amount and time (milliseconds).
creditThe account's credit balance, in USD. Each invoice that closes uses the credit first; new credit is used right away on invoices with an amount due, from the oldest to the newest.
settled, settledTime, creditPaid, dueOn each invoice: settled tells whether it is settled (and settledTime, when, in milliseconds); creditPaid, how much was paid with credit, in USD; due, on closed invoices not yet settled, the amount due in USD. A settled invoice never changes.
trial, trialOpen, trialApprovedOnly on the trial invoice (trial = true), the 30-day first invoice of each company. trialOpen tells whether the trial is still open: closing the account in the panel before the invoice ends (end) forgives the debt, and nothing is charged. trialApproved (milliseconds) tells when the trial ended and the invoice started being charged as usual: at the first payment or credit added, or at closing.
overdueOnly with an overdue invoice: state (PENDING, WARNING 7 days or less before the suspension, or SUSPENDED), suspend (expected suspension or, in SUSPENDED, its start, in milliseconds), removal (only in SUSPENDED: expected removal of the account), due (amount in USD that avoids the suspension or reactivates the account) and invoices (the invoices of that amount).
editingPresent (true) on an invoice under review by support: the amount may change, and invoicepay and closenow do not work until the review ends (responses NOTHING and EDITING). A payment that arrives meanwhile goes to credit.
projectionCurrent invoice only: estimate of the total at closing, from the average of the period. During the first three days, projectionFrom (milliseconds) comes instead.
itemskey (table below), kind (SET, COUNT, BYTES or AMOUNT, amount already summed in dollars), quantity, price (per unit; per byte on BYTES items), total and, on SET items, elements with the id of each resource (and the name on the user registration).

Money amounts come as decimal text ("2.04", "0.00002"), so no precision is lost. Only items with quantity and price greater than zero are listed. Each invoice keeps the price table of the day it was created until it closes.

keyItem
spfbl_user_setUser registration: the account's email.
spfbl_client_setMTA clients: the hostname of each server registered during the period.
spfbl_domain_setMX gateway domains: each domain registered during the period, in any state, including a pending request or one removed later.
spfbl_envelope_countEnvelope queries (SPF), one per recipient.
spfbl_header_countHeader queries (HEADER), one per message.
spfbl_malware_countMalware identifications: each message with malware that your server reports to SPFBL.
spfbl_scan_bytesVolume your server sends to the content scan (/scan/), in bytes.
spfbl_analysis_bytesVolume sent for AI deep analysis, in bytes.
spfbl_analysis_countAI deep analyses actually performed.
spfbl_complain_countReports sent by your server: an abusive IP, or an unwanted message by Message-ID or subject.
spfbl_firewall_countFirewall generations: each download of the rules generated by SPFBL.
spfbl_incoming_bytesVolume received by the SPFBL.net email servers (MX Gateway), from the sender to the gateway, in bytes. Your own email servers do not pay this item.
spfbl_api_countAuthenticated API and panel calls that return data; /billing/ is not counted.
spfbl_sample_count, spfbl_sample_bytesNumber and volume, in bytes, of the messages sent as samples to the SPFBL.net abuse address or through the sample submission of the panel.
spfbl_download_bytesVolume, in bytes, of the samples downloaded from the sample submission of the panel.
dnswl_fqdn_setContracted DNSWL listing: each FQDN registered during the period.
dnsal_domain_set, dnsal_fqdn_setContracted DNSAL listing: each domain:contact pair (root domain, valid for *.domain) or fqdn:contact requested during the period (it is charged when the request is sent).
dns_rbl_countDNS queries to the RBL Monitoring RBLs that are not ignored, including TXT when listed.
dns_rbl_costSum, in dollars, of the per-query cost of the enabled paid RBLs. Its kind is AMOUNT: the value is in total; quantity is the same value in micro-dollars and price is fixed (0.000001).
spfbl_delist_countFast delist: negative reputation points neutralized at once by the public delist page, one per abusive sending of the week on the IP, on the other server IPs and on the FQDN.
admin_support_countSupport interventions to fix mistakes, such as removing a DNSAL record from the invoice so that it can be made again in the same cycle.
overdue_interestInterest on invoices left open when the account was closed: 10% per year, simple, day by day, from the closing until payment. Its kind is AMOUNT, like dns_rbl_cost.
othersOther usage counters, such as holds and alerts, appear once they have a price. Each item is explained in the Billing documentation.

Query at most once per minute.

DNS Listing: /listing/

The DNSWL and DNSAL records contracted by your account, the same as the DNS Listing screen of the panel. Listing accepts GET; adding and removing use POST, with the parameters in the body (application/x-www-form-urlencoded). The account needs billing enabled, and each record is accepted only if the account credit covers it together with what was already accrued.

curl -sS "https://matrix.spfbl.net/listing/" \
     -H "Authorization: Bearer $SPFBL_KEY"

curl -sS -X POST "https://matrix.spfbl.net/listing/" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     --data-urlencode "action=dnsal" \
     --data-urlencode "key=example.com" \
     --data-urlencode "[email protected]"
actionParametersEffect
list (default)—Only the listing.
dnswlfqdnAllows the FQDN of a sending server in the DNSWL, right away, if the FQDN and each of its IPv4 and IPv6 have green status and are not blocked, the same criterion the DNS uses to answer the DNSWL. It is charged at registration; redoing it in the same cycle is not charged again. While the status is yellow, the DNS does not answer; if it turns red or gets blocked, the record drops by itself, with an alert. The response has addresses: each IP of the FQDN, with bound true when its reverse DNS (PTR) confirms the FQDN and it also applies in the IP query; otherwise bound false and the current ptr.
dnsalkey, contactRequests the abuse contact record of a root domain (valid for *.domain) or of an FQDN. It is charged now, if the credit covers it, and the charge stays even without the confirmations; the same request in the same cycle returns BILLED. The request goes, in English, to the postmaster@ of the root domain and, after its confirmation, to the contact itself (a single confirmation if it is the same address). The record takes effect at the last confirmation. The links are valid for 7 days.
droptype (DNSWL or DNSAL), value, otpRemoves the record. Requires the 6-digit TOTP code in otp, even with an API key. The amount already charged in the cycle stays on the invoice.

The response has records (type, value, root on root domain DNSAL records, contact on DNSAL records and created in milliseconds), billing, credit (USD), prices (monthly price of dnswl_fqdn_set, dnsal_domain_set and dnsal_fqdn_set on the current invoice), sender and smtp (sender and server of the confirmation emails, which the postmaster and the contact should allow).

result: VALID (listing), DONE (DNSWL added or record removed), SENT (DNSAL request sent, with postmaster), INVALID (with field), NO_BILLING, NO_CREDIT, EXISTS (the record already exists), BILLED (the same pair was already charged in this cycle: only in the next one or through support), NO_ADDRESS (FQDN without IPv4 or IPv6), BAD_REPUTATION (the DNS would not answer; reason has the element and the cause: YELLOW, RED or BLOCKED), SUPPRESSED (on dnsal: the address in email asked not to receive e-mails from SPFBL.net; field says whether it is the contact or the postmaster, and it has to turn receiving back on at /painel/unsubscribe/ before the request), NOT_FOUND or, on drop, OTP (code missing), INVALID_OTP (invalid or already used code), LOCKED (too many failures; wait has the seconds to wait) and CONTACT (the account has no TOTP enabled).

Each abuse report sent to the contact of a DNSAL record carries in List-Unsubscribe the link that revokes the record. If the contact uses this link, the record drops and the account gets an alert.

RBL Monitoring: /monitoring/

The IPs and FQDNs your account monitors on the RBLs, the same as the RBL Monitoring screen of the panel. Listing accepts GET; adding, removing and frequency go by POST, with the parameters in the body (application/x-www-form-urlencoded). Adding and frequency need billing enabled. The listing only reads what the server already queried: it never triggers RBL queries.

curl -sS "https://matrix.spfbl.net/monitoring/" \
     -H "Authorization: Bearer $SPFBL_KEY"

curl -sS -X POST "https://matrix.spfbl.net/monitoring/" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     --data-urlencode "action=add" \
     --data-urlencode "value=mail.example.com"
actionParametersEffect
list (default)—Listing only.
addvalue, confirm (optional)Adds a public IP or an FQDN. The FQDN counts through the IPs of its A/AAAA records that confirm the name (by reverse DNS or SMTP banner); it is refused if none confirms. An IP that SPFBL already knows as belonging to a server comes back as SUGGEST, not added, with the FQDN in fqdn: monitoring by the FQDN follows the server IP changes. To add the IP anyway, repeat with confirm=true. The first addition of the account sets paid RBLs to NEVER.
dropvalue, otpRemoves the IP or FQDN and its query history. Needs the 6-digit TOTP code in otp, even with an API key: without monitoring, the account is no longer warned of listings. Also works without billing.
intervalzone, intervalAccount frequency on an active RBL: AUTO (by the RBL own TTL), a fixed interval such as 1MIN, 15MIN, 1H or 1D (counted from the last query, regardless of the TTL) or NEVER (ignore the RBL). Needs at least one monitored IP or FQDN. Taking a paid RBL out of NEVER adds its cost per query to the invoice.

The response has billing, monitoring (the account has some IP or FQDN), price (price per query of dns_rbl_count on the current invoice), rbls and elements.

Each item of rbls: zone, name, type (DNSBL, URIBL, DNSWL, SCORE or INFO), status (ACTIVE or SUSPENDED), ipv4, ipv6 and fqdn (what it checks), cost (USD per query), interval (the account frequency), codes (code and meaning) and, when present, description, delist (removal page; on INFO, more information page), terms and validated. RBL texts come from the list operator, in English.

Each item of elements: value, kind (IPV4, IPV6 or FQDN), created and results. The FQDN also has addresses (each confirmed IP, with its results on the IP RBLs), warned (some IP was left out) and resolved; the IP has fqdn when SPFBL knows its server. Each result: zone, status (LISTED, NXDOMAIN, ERROR, PENDING or IGNORED) and, when present, codes, txt, since, checked, next, error and errorSince. Dates in milliseconds.

result: VALID (listing), ADDED (with element and, for an FQDN, ips and ignored: IP and reason OTHER_FQDN, NOT_VERIFIED or GENERIC_FQDN), SUGGEST (with element, fqdn and covered, true when that FQDN is already monitored and already covers the IP), EXISTS, NO_VALID_IP (with ignored), INVALID (with reason: INVALID_IP, RESERVED_IP, INVALID_FQDN, RESERVED_TLD, INVALID_TLD, INVALID_DOMAIN, RBL_ZONE, RESERVED_DOMAIN or NXDOMAIN; or with field), DONE (removal or frequency), NOT_FOUND, NO_ELEMENT (frequency without any IP or FQDN), SUSPENDED (suspended RBL), NO_BILLING or, on drop, OTP, INVALID_OTP, LOCKED and CONTACT, as in DNS Listing.

Query the listing at most once a minute: that is the pace of the server query cycle.

Samples: /samples/upload/ and /samples/

Sends emails to the AI analysis and follows each sample until it is archived, under the same rules as the panel, described in Sample submission. Requires active billing. The typical flow:

  1. Send the .eml with POST /samples/upload/ and keep the id of the response.
  2. Query action=get every 15 to 30 seconds while status is ANALYSIS. The analysis takes a few minutes.
  3. With status ANALYZED, read analysis and answer with action=answer before deadline. With no answer within 1 hour, the AI result applies, and the sample gets answeredBy TIMEOUT.

Submission: POST /samples/upload/

The body is the raw .eml file, up to 16 MB, one per request. The name parameter, in the URL, is the file name, optional, only so you can recognize the sample.

curl -sS -X POST "https://matrix.spfbl.net/samples/upload/?name=scam.eml" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     -H "Content-Type: application/octet-stream" \
     --data-binary @scam.eml

Response: {"result":"OK","id":"1k90r89av"}. A file the antivirus already detects also returns OK and goes straight to DETECTED.

resultMeaning
OKSample accepted, with its id.
BILLINGThe account has no active billing.
SUSPENDEDThe services of the account are suspended for non-payment.
EMPTYEmpty body.
TOO_LARGEFile larger than 16 MB.
MSGClassic Outlook .msg file, which is not accepted.
NOT_EMLThe file is not an email message with a header.
UNAVAILABLEThe analysis is down right now. Nothing was charged; try again later.
BUSYThe account already has 10 samples in analysis. Send again when one finishes.
DISKThe server is out of space right now. Try again later.
ERRORInternal failure.

Queries and answers: /samples/

Listing and querying one sample accept GET, with the parameters in the URL. The other actions use POST, with the parameters in the body (application/x-www-form-urlencoded).

curl -sS "https://matrix.spfbl.net/samples/?action=get&id=1k90r89av" \
     -H "Authorization: Bearer $SPFBL_KEY"

curl -sS -X POST "https://matrix.spfbl.net/samples/" \
     -H "Authorization: Bearer $SPFBL_KEY" \
     --data-urlencode "action=answer" \
     --data-urlencode "id=1k90r89av" \
     --data-urlencode "agree=false" \
     --data-urlencode "opinion=HARMFUL" \
     --data-urlencode "comment=The payment link is not the supplier's."
actionParametersResponse
list (default)OK with billing (active billing), available (analysis up now), maxSize (bytes) and samples, newest first.
getidOK with sample, or NOT_FOUND.
answerid, agree (true or false); when disagreeing, opinion (HARMFUL, UNDESIRABLE or DESIRABLE) and comment (optional, up to 1000 characters)OK with sample; INVALID_STATE (the sample is not waiting for an answer, was already answered or came through abuse@); INVALID_OPINION; GONE (the file no longer exists); NOT_FOUND; ERROR.
confirmid, harmful (true or false), only with confirm PENDINGOK with sample. With false, the sample goes to the AI analysis. Also BILLING, SUSPENDED, UNAVAILABLE, BUSY, INVALID_STATE, GONE, NOT_FOUND and ERROR.
retryid, only with status FAILEDOK (the sample goes back to the analysis, without charging the submission again); BILLING; SUSPENDED; UNAVAILABLE; INVALID_STATE; GONE; NOT_FOUND.
downloadidOK with name and eml (the file in base64), charged by the downloaded volume; GONE; NOT_FOUND.
deleteid, in any statusOK (deletes the sample, its record and its EML file for good; the file stays only if another sample has exactly the same content; nothing is refunded on the invoice); NOT_FOUND.

An unknown action returns INVALID_ACTION.

Fields of each sample

{"result":"OK","sample":{"id":"1k90r89av","name":"scam.eml","size":18432,
 "created":1796398654000,"updated":1796398790000,"status":"ANALYZED","available":true,
 "subject":"Open invoice","from":"Billing <[email protected]>",
 "to":"[email protected]","date":"Wed, 02 Dec 2026 10:15:00 -0300",
 "result":"HARMFUL","deadline":1796402390000,
 "analysis":{"classification":"HARMFUL","confidence":0.97,"conclusion":"…",
  "threats":[{"type":"FINANCIAL_SCAM","description":"…","evidence":"…"}]}}}
FieldContent
idSample identifier.
name, sizeName of the file sent and size in bytes.
created, updatedSubmission and last change, in milliseconds (epoch).
statusANALYSIS (being analyzed), ANALYZED (waiting for the answer), INSPECTION (with the specialist), ARCHIVED, DETECTED (archived and already detected by the antivirus), DISCARDED or FAILED.
availableThe EML can still be downloaded.
subject, from, to, dateOriginal subject, sender, recipient and date of the message.
resultClass given by the AI: HARMFUL, UNDESIRABLE (unwanted), UNACCEPTABLE (unverified), ACCEPTABLE, DESIRABLE (legitimate) or BENEFICIAL (essential).
deadlineOnly in ANALYZED without an answer: until when the answer counts, in milliseconds.
answer, opinion, commentThe answer (AGREE or DISAGREE) and, when disagreeing, the opinion and the comment.
answeredByWhen the agreement was not yours: TIMEOUT (1-hour deadline expired) or ADMIN (confirmed by a specialist).
reasonIn INSPECTION: DISAGREE, REVIEW (the class needs the specialist) or CONFLICT (the same EML is on the opposite side of the archive). In DISCARDED: ADMIN, EXPIRED or MISSING.
decisionIn ARCHIVED and DETECTED: harmful or desirable.
malwareName of the signature that detects the sample.
confirmFor a sample detected at sending: PENDING (waiting for action=confirm), HARMFUL or NOT_HARMFUL.
channelSMTP when the sample came through abuse@.
analysisThe AI report, in the account language (see below).

In analysis: classification and confidence (0 to 1), sender_identity, authentication, conclusion, threats (each with type, description and evidence), malicious_urls (url, role), malicious_contacts (email, role), malicious_attachments (filename, md5, size, type, reason), legitimacy_evidence, risk_evidence, web_research (subject, finding), marketing, structure, sender_country and recipient_country. Threat types include PHISHING, BEC, MALWARE, EXTORTION, IMPERSONATION, BOLETO, PIX, QRCODE, THREAD_HIJACK, TAMPERED (message altered after it was sent), PROMPT_INJECTION, FILTER_EVASION, SPAM, PURCHASED_LIST, DATA_SALE, FINANCIAL_SCAM, HEALTH_SCAM, LINK_LURE, GAMBLING, CALLBACK_PHISHING (a scam that leads you to call a phone number) and SEXUAL_CONTENT (unsolicited sexual content); treat an unknown type as text.

Billing: each accepted sample counts in Samples submitted and Sample volume; the bytes sent to the AI, in Volume for AI analysis; each finished analysis, in AI deep analyses; and each download, in Downloaded sample volume.

DNSAL confirmation: POST /dnsal/

Used by the public page /painel/listing/, opened by the links of the confirmation emails and of the List-Unsubscribe of the abuse reports. It requires no account or key: the encrypted code of the link (t) identifies the request.

actionParametersResponse
loadtCONFIRM (with step: POSTMASTER or ABUSE, and confirmer) or REVOKE, with scope, contact and active; EXPIRED; INVALID. Always includes the reCAPTCHA sitekey.
confirmt, g-recaptcha-responseNEXT (the abuse contact got its own request), ACTIVE, ALREADY, NO_CREDIT, BILLED_IN_CYCLE, CAPTCHA, EXPIRED or INVALID.
revoket, g-recaptcha-responseREVOKED, NOT_FOUND or CAPTCHA.

Email preferences: POST /unsubscribe/

Used by the public page /painel/unsubscribe/, opened from the unsubscribe link of SPFBL.net emails. No account or key needed: the encrypted code of the link (t) identifies the address. Parameters go in the body as application/x-www-form-urlencoded, and the response is JSON.

actionParametersResponse
loadtOK with email and selection (current choices), or FORM without a valid code. Always includes the reCAPTCHA sitekey.
savet, selection, g-recaptcha-responseDONE with empty (nothing selected) and selection; CAPTCHA; INVALID.
requestemail, lang, g-recaptcha-responseAlways SENT: sends the link to the address, at most one per address every 24 hours and ten per IP every hour.

selection is a comma-separated list: ABUSE (abuse reports), MALWARE (malware alerts), HOLD (hold and block notices), SAMPLE (sample notices) or UNSUBSCRIBED (all emails). An empty list receives everything again. Choices expire after 365 days without use.

Sign-up: POST /signup/

Used by the public page /painel/signup/, the account self sign-up. It requires no account or key and only works with reCAPTCHA, SMTP sending and the administrator email configured (available). Parameters go in the body, as application/x-www-form-urlencoded, and the answer is JSON. lang (pt, en or es) chooses the language of the emails.

actionParametersAnswer
loada, d or r (optional: the links of the emails)OK with available, sitekey, logged (and email, with a session), policy (Usage Policy version) and fee (account monthly fee, item spfbl_user_set). With a, also activation (state: VALID, EXISTS, EXPIRED or INVALID; email and mode, AUTO or ADMIN); with d, decision (state: VALID, CLOSED or INVALID; stage, email, website, cause, detail, summary, purpose, time and final); with r, review (state and email).
catalognoneOK with logged (and email, with a session), fee (account monthly fee), price (price per dns_rbl_count query, or null) and dnsbl: the active DNSBLs of the MultiRBL Monitoring catalog, with name, zone (public zone), ipv4, ipv6, paid and, for paid ones, cost (USD per query). Used by the service presentation page; the private zone of paid RBLs never appears.
demononeOK with the live demo of MultiRBL Monitoring: ip (massive abuse IPv4 drawn every hour), since (start of observation), until (when the next draw starts), now (server time) and lists: each free public-zone DNSBL, with name, zone, state (LISTED, CLEAN, ERROR or PENDING) and, when present, codes and checked (time of the last valid answer). WAIT until the first round ends. It only reads the result kept on the server: no call generates a DNS query.
requestemail, site (optional), purpose (without site: 20 to 2000 characters), accept=true, locale, timezone, g-recaptcha-responseValidated website: SENT or SENDING with approved=true, or NOT_SENT (with the cause, in the same fields as the abuse@ failure of the delist). Otherwise: PENDING with site (true or false). Also PURPOSE (no website and no purpose: the page opens the form), DENIED (definitively refused), OPTOUT (with reason), LOGGED, INVALID (with field: email, site or purpose), POLICY, CAPTCHA, LIMIT (with wait), BUSY or UNAVAILABLE.
activatet (the a of the link), password, code (authenticator app code), g-recaptcha-responseDONE with email, billing and trial (the account started on the 30-day trial); EXISTS, EXPIRED, INVALID (with field: password, with weak, or code), NOT_ACCEPTED, CAPTCHA, LIMIT or UNAVAILABLE.
decidet (the d of the link), choice (approve or reject)DONE with email, state (APPROVED, REJECTED or DENIED) and delivery (the delivery of the email to the address, as in request); CLOSED, INVALID or LIMIT.
reviewt (the r of the link), purpose, g-recaptcha-responseDONE with email; EXPIRED, INVALID (with field=purpose, or without a request), CAPTCHA or LIMIT.

Three paths. With the website validated by the same robot of the retention notice and by the AI (line of business, economic activity and location of the company), the sign-up is approved at once: the address receives the email with the QR Code of the TOTP key and the activation link. With a website that could not be verified automatically, the page does not show the cause: the administrator receives the request with it and the Approve and Reject buttons. Without a website, the request goes to the administrator with the purpose. The result of each URL is kept for 24 hours.

When a request with a website is rejected, the address receives the review link, valid for 7 days, and the review request goes back to the administrator. Rejecting a request without a website, or a review request, is final: the address enters the SIGNUP suppression, which only blocks new sign-ups. A request without a decision in 30 days expires, with a notice to the address. The buttons of the alert open the request page, with the confirmation. The page never reveals whether the address already has an account.

No account exists before the activation: the approval link is valid for 7 days and asks for the new password (with the strong password rules of the panel) and the app code, checked against the key of the QR Code. The account is created with billing enabled, the language and the time zone of the request, and the administrator receives the new account alert. The website of the request is always kept for the control of new signups and goes to the account, right after the activation, only if it passes the same website check of the panel settings: the address must lead to a real website, and a failure that is only the system's in reading the site (built only by JavaScript, bot protection, timeout and the like) does not prevent it. The Usage Policy acceptance is recorded with the version and the IPs of the request and of the activation. Causes of the automatic refusal (cause): NO_SITE, SOCIAL, DNS, TIMEOUT, REFUSED, TLS, CONNECTION, HTTP (with detail), ORIGIN_DOWN, FIREWALL, REDIRECTS, REDIRECT_OTHER, PARKED, SUSPENDED, MAINTENANCE, DEFAULT, JAVASCRIPT, NOT_HTML, HARMFUL, UNAVAILABLE, NO_COMPANY, UNVERIFIED, BUSY.

Limits: 10 website checks and 5 requests per hour per IP; per email, 1 request every 10 minutes (5, after a temporary failure) and 3 per day; 10 activations and 10 review requests per hour per IP.

Delist: POST /delist/

Used by the public page /painel/delist/. No account or key needed; with the panel session, the response also brings the account data and the full list of the MultiRBL counter. Parameters go in the body as application/x-www-form-urlencoded, and the response is JSON. Every action after check requires the visit v, valid for 1 hour and only for the same source IP. In all of them, lang (pt, en or es) picks the language of the emails. The reCAPTCHA (g-recaptcha-response) is only asked of the visitor without login, in check, in mailserver with answer=yes (in the PROBE gate, the first check uses the reCAPTCHA of check) and in unblock; with the panel session, never.

actionParametersResponse
loadt (optional)OK with sitekey, logged, account (with a session: email, billing, monitoring, listing, clients, gateway), stripe, policy (version of the Acceptable Use Policy), prices (user, rbl in human notation and delist and dnsal, the DNSAL registration of an FQDN), min and max. With t, also ticket: state (VALID, EXPIRED or INVALID), ip, fqdn, email (the link destination) and source (the destination origin: see targets).
checkip (public IP or FQDN; with an FQDN, its first IP whose confirmed reverse is the FQDN itself is used; without it, the first IP whose reverse (PTR) points back to the name opens the visit in the PROBE gate, and the reverse never registers the FQDN; without any, INVALID with field=fqdn and reason (PTR or GENERIC); an FQDN without any A/AAAA record goes on with the name only: ip null and noAddress=true), g-recaptcha-response (visitor)VISIT with v, ip and gate: FQDN (with fqdn, when the FQDN was typed), CONFIRM (with fqdn: the typed IP already has an FQDN and the page asks whether it is that server) ASK (IP without an identified mail server) or PROBE (with claimed, the typed FQDN: the reverse points back to it, but the mail server is still to be proven; the page starts the banner check by itself); INVALID (with field), CAPTCHA or LIMIT (with wait, in seconds).
mailserverv, answer (yes, no or recheck: the CONFIRM FQDN is not the server, and the banner decides; a valid new FQDN replaces the previous one), g-recaptcha-response (visitor, with yes)NOMAIL (not a mail server: code 127.0.0.4 is correct), JOB with job (check by the SMTP banner: only port 25 for an IP in the DYNAMIC list, otherwise 25, 587 and 465), FQDN, CAPTCHA, LIMIT (one test per IP every 10 minutes) or BUSY.
jobv, jobWaits up to 10 seconds for the end. RUNNING or the result, with kind: MULTIPORT (FQDN with fqdn, changed and previous; or FAIL with dynamic, reason (CONNECTION, NO_HOSTNAME, GENERIC, NO_ADDRESS, WRONG_ADDRESS or DNS), ip, hostname, banner (up to 300 characters) and port, addresses, ports (port and reason: TIMEOUT, REFUSED, UNREACHABLE, CLOSED, TLS or FAILED), previous, claimed (in the PROBE gate) and helo (the helo@ test address, when the incoming SMTP server is active: the visit then accepts the helo action)), COUNTER (COUNTED with count, total, failed, elements and, only with a session, list) or ABUSE (SENT or NOT_SENT, with email; on failure, the cause: see below); EXPIRED.
helovWait for the helo@ test, after a check that failed: FQDN with fqdn, changed and previous when the IP of the visit got the FQDN (in recheck, only an FQDN different from the previous one counts); WAIT, LIMIT (240 per hour) or INVALID (no helo@ offered in the visit). The page asks every 20 seconds, for up to 30 minutes.
statusvSTATUS with ip (null in FQDN-only mode), fqdn, noAddress (only in FQDN-only mode), code (127.0.0.2, 127.0.0.3, 127.0.0.4, 127.0.0.5 or NONE), addresses, points (abusive sends in the last 7 days), ham (legitimate sends in the same period), blocked, last, expires, recent and retry (milliseconds), contact (email, source, funnel and, for the WHOIS and ASN sources, suppressed), quote (for 127.0.0.2), abuse, targets and newTarget (on 127.0.0.3 and 127.0.0.5: see below) and dnswl (for NONE, when there is an invitation: see below).
countervJOB, LIMIT, BUSY or MONITORED (with a session, when the FQDN or the IP of the server is already in the account's RBL Monitoring: no query). Visitor: MultiRBL counter on the free DNSBLs of the catalog, through the system resolvers, free of charge. With a session: straight at the authoritative servers, with the paid RBLs the account enabled in monitoring (each paid item of list has paid); every query made goes to the account invoice, in dns_rbl_count and, for the paid ones, dns_rbl_cost. The private zone of paid RBLs never appears.
rblv, zone, mode (once or enable)Session and billing only. Queries now, at the authoritative servers, a paid RBL the account keeps at NEVER (in the counter, state SKIPPED, with cost per query). once keeps NEVER; enable sets the RBL to AUTO. Either way, the queries go to the invoice. CHECKED with detail (the same item of list) and interval (NEVER, AUTO or NO_MONITORING, when the account has no monitoring yet); NO_BILLING, INVALID (with field), LIMIT (30 per hour) or LOGIN.
contactv, email, key (the server FQDN or its root domain; default: the FQDN)Session only. Adds a new email as a pending destination (nothing is charged or registered now), already checked against the same refusals of the DNSAL request: PENDING with email and targets; SELECTED (the email was already a destination); INVALID (with field), OPTOUT (with reason), BILLING_REQUIRED, NO_CREDIT, BILLED_IN_CYCLE, ALREADY_EXISTS, POSTMASTER_SUPPRESSED, CONTACT_SUPPRESSED, INVALID_DOMAIN or LOGIN.
abusev, to (optional, one of targets; without it, the abuse@)JOB with email (the destination gets the unblocking link, valid for 3 days), NOT_APPLICABLE, INVALID (destination not in targets), BILLING_REQUIRED or NO_CREDIT (pending destination without credit for the DNSAL registration), OPTOUT with reason (why the address does not receive: UNSUBSCRIBED is the opt-out, which the address itself undoes at /painel/unsubscribe/; COMPLAINT, INEXISTENT, REJECTED and the others are removed by support only), LIMIT (one sending per IP and destination every 30 minutes, 5 minutes after a temporary failure; up to 4 per IP per hour) or UNAVAILABLE. With the pending destination (NEW), no link is sent: the usual DNSAL request goes out, charged now, with the IP: DNSAL_SENT with email, scope and postmaster (who confirms first), or the refusals of contact.
unblockt, g-recaptcha-response (visitor)DONE with before, code and, out of the list, dnswl; ALREADY, REPUTATION (127.0.0.2 cannot leave this way), CHANGED (the IP FQDN changed), CAPTCHA, EXPIRED or INVALID.
applyv, confirm=trueWith a session, billing and free credit: DONE or PARTIAL with points, neutralized, units, code and, out of the list, dnswl; NO_CREDIT (with quote), NOT_LISTED, RECENT (with retry), CONFIRM, LOGIN or NO_BILLING.
payv, confirm=true, accept=true, email (without a session), locale, timezoneREDIRECT with url (Stripe) and order; ACCOUNT (the email already has an account: sign in to the panel first), INVALID (with field), POLICY, CONFIRM, APPLY (the account credit already covers it: use apply), NOT_LISTED, RECENT, UNAVAILABLE, TOO_LARGE or LIMIT.
receiptorderDONE, PARTIAL or SKIPPED (the IP had already left: the amount stayed as credit), with ip, fqdn, points, neutralized, account (NEW, USER or EXISTING), totp, code and, out of the list, dnswl; PENDING or INVALID.

Quote (quote): points, billable (at least 1), price (per point, item spfbl_delist_count), delist, mode and, depending on the case, credit (free account credit), opening (first invoice of an account still without billing; for a visitor, the registration monthly fee), need and charge (the amount at Stripe, with the estimated fee and the minimum of min). mode: APPLY (the free credit covers it: use apply), PAY, TOO_LARGE (above max), NO_ADDRESS (FQDN-only mode: payment through Stripe is not available, only the account credit with apply) or UNAVAILABLE.

helo@ test: every message to helo@<smtp_hostname> only validates the HELO/EHLO of the source against the sending IP. The name must be a hostname (not an IP), outside the generic masks, with an A (IPv4) or AAAA (IPv6) record containing the IP; if it passes, it becomes the FQDN of the IP. The reply is always a permanent rejection at RCPT TO: 550 5.0.0 SPFBL HELO validated, with the name, or 550 5.7.1 SPFBL HELO not validated, with the reason. The usual MAIL FROM rejections (SPFBL invalid identification and SPFBL check failed, which only happen without a validated HELO) still come before RCPT TO. The other way out is to open port 25 for a moment, with the banner announcing a name that points to the IP, check again with mailserver and close the port after the delist. FCrDNS alone never registers the FQDN: only the server itself introducing itself with the name, in the banner or in the HELO. An IP marked as dynamic that gets the FQDN through helo@ raises an alert to the administrator.

FQDN-only mode: when the typed FQDN has no A/AAAA record at all, the check goes on with the name only. The situation, the count in the other RBLs, the unblocking by link and the fast delist with account credit apply to the FQDN only; newTarget is false (the new email needs an IP) and pay answers UNAVAILABLE. The unblocking link of this mode has a null ticket.ip.

The fast delist is only offered one hour after the last spam (recent and retry). The confirmed payment creates the account (without a session), enables billing, adds the net credit and neutralizes the points, charged as spfbl_delist_count on the current invoice. If new abuse arrives between the quote and the payment, only the points the credit covers leave, and the rest stays active. Stripe returns through /delist/stripe/, which redirects to the page with order.

Failure sending to abuse@ (NOT_SENT): cause is CONNECTION (could not connect, the connection dropped or TLS failed, with detail: TIMEOUT, REFUSED, CLOSED, UNREACHABLE, TLS or FAILED), REJECTED (SMTP rejection, with type: MAILBOX, POLICY, TEMPORARY or PERMANENT), DNS (with type: NXDOMAIN, NOHOST or FAILURE), NO_MX or UNKNOWN. It also brings status (enhanced code), domain, temporary and wait (seconds until the new attempt). Only on direct delivery to the public MX of the domain come mx (the server tried) and response (its answer, up to 300 characters) and, on a policy rejection, sender and smtp (the sender and the sending server, to allow in inbound filters).

Whole server: status brings elements, the situation of each server address (the checked IP, the FQDN and the other IPv4 and IPv6 of the FQDN, up to 8), each with element, type (FQDN, IPV4 or IPV6) and code, as SPFBL clients see them. The situation code is the worst among them (127.0.0.2, then 127.0.0.3, 127.0.0.5 and 127.0.0.4) and decides the path: fast delist or unblocking by link. Unblocking by link removes the block of the FQDN and of every FQDN IP whose confirmed reverse is the FQDN itself. In the counter, each listed RBL brings hits (each listed address, with element, type and codes), and the result brings checked (fqdn, ipv4 and ipv6: what was checked).

Destinations of the unblocking link (targets, in order of preference; the first one is the suggested one): each item has email, source and pending and, for the pending one, scope and postmaster. source: NEW (new email given in this visit by the session account, pending), DNSAL (DNSAL contact of the FQDN or of the root domain, of any account), MANUAL and FQDN (contacts registered by support) and ABUSE (the abuse@ of the root domain, the only free one). newTarget tells whether the session can give a new email. The new email follows the panel DNSAL request (POST /listing/ with action=dnsal), for the FQDN or the root domain, charged at request: first the postmaster@ of the root domain confirms, then the contact itself. On the last confirmation, at /painel/listing/, the registration becomes active and the IP and the FQDN are unblocked; the confirmation response brings delist (result: DONE, ALREADY, REPUTATION, CHANGED or INVALID, with ip). In prices, dnsal is the registration of an FQDN and dnsalDomain, of the root domain.

DNSWL invitation (dnswl): it only shows up if the registration would be accepted now, by the same criterion as the DNS, and if the FQDN is not in the DNSWL yet. It brings fqdn, mode and price (monthly, item dnswl_fqdn_set). mode: ADD (session with billing: register through POST /listing/ with action=dnswl), LOGIN (payment receipt: the account can already register in the panel), SIGNUP (invitation to subscribe to the platform, with account, the account monthly fee) or REGISTERED (the FQDN is already in the DNSWL of the session account).

Authenticated sending over SMTP

For authenticated sending through the SPFBL SMTP server (submission over TLS, AUTH PLAIN), use your account e-mail as the user name and an access key as the password. The key must belong to the same account as the user name.

user:     [email protected]
password: spfbl_XXXXXXXX_...
The panel password is still accepted over SMTP, but it will stop being accepted. Switch to an access key.

A revoked or expired key, or a key of another account, is refused with 535 5.7.1, like a wrong password. Sending also depends on relay permission on the account, granted by the system administrator; without it, the answer is 535 5.7.8. With the account suspended for non-payment, the answer is 454 4.7.0, and your server keeps the message in its queue.

Good practices

  • To follow new messages, keep the highest key received and query /history/?after=<key> every 30 to 60 seconds. While "more": true comes, query again right away.
  • To follow a sample, query /samples/?action=get&id=<id> every 15 to 30 seconds while it is in ANALYSIS, and answer before deadline.
  • To know whether something held was released or delivered, use timekeys with the records that were still in progress.
  • Treat KEY_REVOKED as a permanent error: warn whoever manages the system instead of repeating the call.
  • Do not use curl -v or log the request headers: they contain the key.
  • Date parameters and key values are integers in milliseconds (epoch).