| Internet-Draft | DNSBL-Results | November 2026 |
| Schneider | Expires 2 June 2027 | [Page] |
This document defines a new message header field, "DNSBL-Results", for conveying the results of DNS-based Blocklist (DNSBL) and reputation queries (such as IP, domain, bulk checksum, and cryptographic hash evaluations) performed by a Message Transfer Agent (MTA) or edge filter. By standardizing this telemetry transport, downstream content filters and Local Delivery Agents (LDAs) can consume edge reputation data without performing redundant lookups, thereby reducing latency, network overhead, and DNS zone load.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 2 June 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Modern email infrastructure relies heavily on distributed reputation systems, commonly accessed via DNS (DNSBLs) [RFC5782], to evaluate the trustworthiness of connecting IP addresses, domains, and message contents. Traditionally, these evaluations are performed at the network edge by an MTA or milter during the SMTP transaction to allow for immediate rejection of malicious traffic.¶
However, for messages that are accepted at the edge, the results of these evaluations are typically lost to downstream components, such as content filters (e.g., SpamAssassin, Rspamd) or Local Delivery Agents (LDAs). This forces downstream content filters to either perform redundant DNS queries--frequently against stale or shifted state--or operate without critical edge context.¶
While [RFC8904] defines an extension for conveying DNS whitelist (DNSWL) lookups inside the "Authentication-Results" header field [RFC8601], it explicitly does not address blocklists or broader content, domain, and hash reputation evaluations. This document defines the "DNSBL-Results" header field, structurally modeled on "Authentication-Results" [RFC8601]. It provides a vendor-neutral, machine-readable format for edge MTAs and milters to record reputation query outcomes directly in message headers, enabling clean separation between edge evaluation and downstream content filtering.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
An MTA or edge evaluation agent MAY insert a "DNSBL-Results" header field to record the outcome of one or more reputation queries. As with trace fields, a "DNSBL-Results" header field MUST be prepended at the top of the message header block, above any pre-existing "DNSBL-Results" fields.¶
The syntax of the header field is defined using Augmented BNF (ABNF)
[RFC5234]. Core rules (ALPHA, DIGIT, CRLF) are imported from
[RFC5234]. CFWS, quoted-string, and addr-spec are imported from
[RFC5322]. authserv-id is imported from [RFC8601]. domain-name
follows the syntax of Domain in [RFC5321]. address-literal,
ipv4-address, and ipv6-address follow the syntax of
address-literal, IPv4-address-literal, and IPv6-addr in
[RFC5321].¶
dnsbl-results = "DNSBL-Results:" [CFWS] authserv-id
( [CFWS] ";" [CFWS] "none" /
1*([CFWS] ";" [CFWS] dnsbl-res) )
[CFWS] CRLF
dnsbl-res = rep-method [CFWS] "=" [CFWS] rep-result
1*([CFWS] rep-props)
rep-method = "ip" / "domain" / "hash" / "bulk" / keyword
rep-result = "pass" / "fail" / "policy" / "temperror" /
"permerror" / "neutral" / "unknown"
rep-props = "dns.zone=" domain-name /
"dns.a=" ipv4-list /
"dns.rcode=" dns-rcode /
"dns.txt=" quoted-string /
"smtp.remote-ip=" ip-address /
"smtp.helo=" (domain-name / address-literal /
ip-address) /
"smtp.rdns=" domain-name /
"smtp.mailfrom=" (addr-spec / domain-name) /
"smtp.rcptto=" (addr-spec / domain-name) /
"header." header-name "="
(addr-spec / domain-name / ip-address) /
"body.domain=" domain-name /
"body.ip=" ip-address /
"body.email=" addr-spec /
"body.url=" quoted-string /
"body.phone=" quoted-string /
"body.crypto=" prop-value /
"body.content-type=" mime-type /
"body.part=" quoted-string /
"body.role=" mime-role /
"body.filename=" quoted-string /
"bulk.count=" 1*DIGIT /
ext-prop
ip-address = ipv4-address / ipv6-address
ipv4-list = ipv4-address *("," ipv4-address)
dns-rcode = 1*(ALPHA / DIGIT / "-")
header-name = 1*(ALPHA / DIGIT / "-")
mime-type = 1*(ALPHA / DIGIT / "-" / "." / "+") "/"
1*(ALPHA / DIGIT / "-" / "." / "+")
mime-role = "text" / "inline" / "attachment" /
"alternative" / keyword
keyword = ALPHA *(ALPHA / DIGIT / "-" / "_")
ext-prop = keyword "." keyword "=" (prop-value /
quoted-string)
prop-value = 1*(ALPHA / DIGIT / "-" / "." / "_" / ":" / "/")
¶
Each dnsbl-res entry MUST include a dns.zone= property identifying
the queried reputation zone. Method names, result values, and property
names are case-insensitive.¶
While parsers MUST accept properties in any order, generators SHOULD
emit properties in the following canonical order after the
rep-method=rep-result token:¶
Evaluated entity and context (smtp.*, header.*, body.*,
bulk.*)¶
Queried zone (dns.zone)¶
DNS return address or response code (dns.a or dns.rcode)¶
Human-readable metadata (dns.txt)¶
Agent-generated CFWS comments¶
To simplify downstream parsing, generators SHOULD NOT emit CFWS comments
between rep-props tokens; any informational comments SHOULD appear
only immediately after rep-result (for example, a brief reason or
category tag such as (phish)) or at the end of a dnsbl-res entry.¶
Because quoted-string values (such as dns.txt or body.url) may
contain semicolon (;) characters, parsers MUST respect quoted-string
boundaries when splitting dnsbl-res entries on ;.¶
The rep-method identifies the class of threat intelligence or data
type that was evaluated:¶
The evaluation of an IPv4 or IPv6 address (e.g., connecting client IP, intermediate relay IP, or IP extracted from a MIME entity).¶
The evaluation of a domain name extracted from SMTP protocol parameters, message headers, or MIME body/attachment contents.¶
The evaluation of a content artifact (e.g., email address, URL,
telephone number, cryptocurrency address, or MIME entity) queried via
a cryptographic hash against a hash-based DNSBL. The raw hash digest
and algorithm are omitted from the header; the accompanying smtp.*,
header.*, or body.* properties convey the evaluated artifact and
its location.¶
The evaluation of message body contents against a cooperative fuzzy-checksum or bulk dissemination clearinghouse.¶
Additional extension methods MAY be used via private agreement using the
keyword production.¶
The rep-result indicates the outcome of the evaluation:¶
The entity passed evaluation (e.g., an NXDOMAIN response from a blocklist, or a positive listing on an allowlist).¶
The entity failed evaluation (e.g., listed or flagged by a blocklist).¶
The lookup could not be completed or was rejected due to a provider policy condition (e.g., query quota exceeded or use of a prohibited open resolver).¶
A transient failure occurred (e.g., DNS timeout or SERVFAIL).¶
A permanent failure occurred (e.g., malformed query or unresolvable zone configuration).¶
The evaluation yielded a neutral, informational, or non-scoring result (e.g., an unlisted entity on an allowlist, or a metadata tag).¶
The provider returned a response code not recognized or configured by the evaluating MTA, recorded for optional downstream processing.¶
Properties convey query context and provider responses:¶
The IPv4 or IPv6 address of the connecting SMTP client.¶
The domain name or address literal presented in the SMTP HELO or EHLO command.¶
The reverse DNS (PTR) hostname resolved for the connecting SMTP client IP, if present.¶
The reverse-path address or domain from the SMTP MAIL FROM command.¶
The forward-path address or domain from the SMTP RCPT TO command.¶
The address, domain, or IP extracted from the named RFC 5322 header
field (e.g., header.from, header.reply-to, header.received).¶
A domain name extracted from a MIME body or attachment.¶
An IPv4 or IPv6 address literal extracted from a MIME body or attachment.¶
An email address extracted from a MIME body or attachment.¶
A URI extracted from a MIME body or attachment, encoded as a quoted-string.¶
A telephone number extracted from a MIME body or attachment, encoded as a quoted-string.¶
A cryptocurrency address extracted from a MIME body or attachment.¶
The MIME media type and subtype of the evaluated part (e.g.,
application/pdf, text/html).¶
A hierarchical part identifier (e.g., "1.2") locating the evaluated
MIME entity within the message structure.¶
The structural role of the evaluated MIME part (text, inline,
attachment, or alternative).¶
The declared filename of an evaluated MIME attachment, if present.¶
The reported match or dissemination count returned by a bulk
clearinghouse under the bulk method.¶
REQUIRED. The DNS suffix (zone name) queried.¶
One or more IPv4 addresses (A records) returned by the DNSBL (e.g.,
127.0.0.2 or 127.0.0.2,127.0.0.128), which may represent
individual listing codes or an encoded bitmask.¶
The DNS header RCODE (e.g., SERVFAIL, REFUSED) when conveying
diagnostic detail for temperror or permerror results.¶
The TXT record string returned by the DNSBL, if queried and present, encoded as a quoted-string.¶
Example 1: A clean connection where the client IP, rDNS hostname, and HELO domain passed.¶
DNSBL-Results: mx.example.com;
ip=pass smtp.remote-ip=198.51.100.42
dns.zone=ip4.bl.example.org;
domain=pass smtp.rdns=mail.example.net
smtp.helo=mail.example.net dns.zone=domain.bl.example.org
¶
Example 2: An IP listed on a blocklist, including the returned A record and accompanying TXT record.¶
DNSBL-Results: mx.example.com;
ip=fail smtp.remote-ip=198.51.100.42
dns.zone=ip4.bl.example.org dns.a=127.0.0.128
dns.txt="Listed - see https://bl.example.org"
¶
Example 3: A policy notification indicating the edge MTA was blocked from querying the zone due to using a shared open resolver.¶
DNSBL-Results: mx.example.com;
ip=policy smtp.remote-ip=198.51.100.42
dns.zone=ip4.bl.example.org dns.a=127.255.255.254
dns.txt="Open resolver blocked: 192.0.2.53"
¶
Example 4: Evaluating a "From" header domain, a URI domain from an HTML MIME body part, a hashed "Reply-To" email address, and a hashed telephone number found in the body.¶
DNSBL-Results: mx.example.com;
domain=pass header.from=example.net
dns.zone=domain.bl.example.org;
domain=fail (phish) body.domain=phish.example.org body.part="1.2"
body.role=text body.content-type=text/html
dns.zone=domain.bl.example.org dns.a=127.0.1.4;
hash=fail header.reply-to=sender@bad-domain.example.org
dns.zone=hash.bl.example.org dns.a=127.0.100.2;
hash=fail body.phone="+1-555-0199" body.part="1.2"
body.role=text dns.zone=hash.bl.example.org dns.a=127.0.100.8
¶
Like all message header fields, "DNSBL-Results" can be trivially
forged by a malicious sender prior to arrival. An ingress MTA at the
boundary of an Administrative Management Domain (ADMD) SHOULD remove
any pre-existing "DNSBL-Results" header fields whose authserv-id
matches its own ADMD--or remove all external "DNSBL-Results" header
fields--before inserting its own results. Downstream consumers MUST NOT
trust a "DNSBL-Results" header field unless it was injected by a
trusted agent within their administrative boundary.¶
DNS TXT records are controlled by external parties and may contain
arbitrary octets, control characters, or excessive data.
Implementations inserting dns.txt MUST strip or escape control
characters (including CR and LF) to prevent header injection, MUST
properly escape quotes and backslashes per [RFC5322], and SHOULD
enforce a reasonable length limit (e.g., 255 octets). For
interoperability with simple downstream parsers that split clauses on
semicolons, generators SHOULD replace or remove semicolon (;)
characters within dns.txt values (for example, substituting a comma
or space).¶
Exposing internal blocklist zones, return codes, or query diagnostics to external recipients may assist malicious senders in evading detection. Administrators SHOULD strip "DNSBL-Results" header fields prior to forwarding messages outside their administrative boundary.¶
Per [RFC3864], this document requests the registration of the following entry in the "Permanent Message Header Field Names" registry:¶