Internet-Draft DNSBL-Results November 2026
Schneider Expires 2 June 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-schneider-dnsbl-results-00
Published:
Intended Status:
Standards Track
Expires:
Author:
M. Schneider
Threat InSites Inc.

The DNSBL-Results Message Header Field

Abstract

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.

Status of This Memo

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.

▲

Table of Contents

1. Introduction

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.

2. Requirements Language

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.

3. The DNSBL-Results Header Field

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.

3.1. Syntax

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:

  1. Evaluated entity and context (smtp.*, header.*, body.*, bulk.*)

  2. Queried zone (dns.zone)

  3. DNS return address or response code (dns.a or dns.rcode)

  4. Human-readable metadata (dns.txt)

  5. 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 ;.

3.2. Reputation Methods

The rep-method identifies the class of threat intelligence or data type that was evaluated:

ip:

The evaluation of an IPv4 or IPv6 address (e.g., connecting client IP, intermediate relay IP, or IP extracted from a MIME entity).

domain:

The evaluation of a domain name extracted from SMTP protocol parameters, message headers, or MIME body/attachment contents.

hash:

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.

bulk:

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.

3.3. Reputation Results

The rep-result indicates the outcome of the evaluation:

pass:

The entity passed evaluation (e.g., an NXDOMAIN response from a blocklist, or a positive listing on an allowlist).

fail:

The entity failed evaluation (e.g., listed or flagged by a blocklist).

policy:

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).

temperror:

A transient failure occurred (e.g., DNS timeout or SERVFAIL).

permerror:

A permanent failure occurred (e.g., malformed query or unresolvable zone configuration).

neutral:

The evaluation yielded a neutral, informational, or non-scoring result (e.g., an unlisted entity on an allowlist, or a metadata tag).

unknown:

The provider returned a response code not recognized or configured by the evaluating MTA, recorded for optional downstream processing.

3.4. Properties

Properties convey query context and provider responses:

3.4.1. SMTP and Header Context Properties

smtp.remote-ip:

The IPv4 or IPv6 address of the connecting SMTP client.

smtp.helo:

The domain name or address literal presented in the SMTP HELO or EHLO command.

smtp.rdns:

The reverse DNS (PTR) hostname resolved for the connecting SMTP client IP, if present.

smtp.mailfrom:

The reverse-path address or domain from the SMTP MAIL FROM command.

smtp.rcptto:

The forward-path address or domain from the SMTP RCPT TO command.

header.<header-name>:

The address, domain, or IP extracted from the named RFC 5322 header field (e.g., header.from, header.reply-to, header.received).

3.4.2. MIME and Content Properties

body.domain:

A domain name extracted from a MIME body or attachment.

body.ip:

An IPv4 or IPv6 address literal extracted from a MIME body or attachment.

body.email:

An email address extracted from a MIME body or attachment.

body.url:

A URI extracted from a MIME body or attachment, encoded as a quoted-string.

body.phone:

A telephone number extracted from a MIME body or attachment, encoded as a quoted-string.

body.crypto:

A cryptocurrency address extracted from a MIME body or attachment.

body.content-type:

The MIME media type and subtype of the evaluated part (e.g., application/pdf, text/html).

body.part:

A hierarchical part identifier (e.g., "1.2") locating the evaluated MIME entity within the message structure.

body.role:

The structural role of the evaluated MIME part (text, inline, attachment, or alternative).

body.filename:

The declared filename of an evaluated MIME attachment, if present.

3.4.3. Bulk Clearinghouse Properties

bulk.count:

The reported match or dissemination count returned by a bulk clearinghouse under the bulk method.

3.4.4. DNS and Zone Properties

dns.zone:

REQUIRED. The DNS suffix (zone name) queried.

dns.a:

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.

dns.rcode:

The DNS header RCODE (e.g., SERVFAIL, REFUSED) when conveying diagnostic detail for temperror or permerror results.

dns.txt:

The TXT record string returned by the DNSBL, if queried and present, encoded as a quoted-string.

4. Examples

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

5. Security Considerations

Header Forgery and Boundary Hygiene:

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 Sanitization:

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).

Information Disclosure:

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.

6. IANA Considerations

Per [RFC3864], this document requests the registration of the following entry in the "Permanent Message Header Field Names" registry:

Header field name:

DNSBL-Results

Applicable protocol:

mail

Status:

standard

Author/Change controller:

IETF

Specification document(s):

[This document]

7. References

7.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC3864]
Klyne, G., Nottingham, M., and J. Mogul, "Registration Procedures for Message Header Fields", BCP 90, RFC 3864, DOI 10.17487/RFC3864, , <https://www.rfc-editor.org/rfc/rfc3864>.
[RFC5234]
Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, DOI 10.17487/RFC5234, , <https://www.rfc-editor.org/rfc/rfc5234>.
[RFC5321]
Klensin, J., "Simple Mail Transfer Protocol", RFC 5321, DOI 10.17487/RFC5321, , <https://www.rfc-editor.org/rfc/rfc5321>.
[RFC5322]
Resnick, P., Ed., "Internet Message Format", RFC 5322, DOI 10.17487/RFC5322, , <https://www.rfc-editor.org/rfc/rfc5322>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC8601]
Kucherawy, M., "Message Header Field for Indicating Message Authentication Status", RFC 8601, DOI 10.17487/RFC8601, , <https://www.rfc-editor.org/rfc/rfc8601>.

7.2. Informative References

[RFC5782]
Levine, J., "DNS Blacklists and Whitelists", RFC 5782, DOI 10.17487/RFC5782, , <https://www.rfc-editor.org/rfc/rfc5782>.
[RFC8904]
Vesely, A., "DNS Whitelist (DNSWL) Email Authentication Method Extension", RFC 8904, DOI 10.17487/RFC8904, , <https://www.rfc-editor.org/rfc/rfc8904>.

Author's Address

Matthew Schneider
Threat InSites Inc.