Issue Description
A piece of spam email triggered a DMARC report to Cloudflare which has been floating in my queue. I notice three issues:
- The next DSN delivery date is 2083,
- The DMARC report is rejected due to a schema error, and,
- After being rejected the report goes back to the queue for further rejection instead of permanently dying.
Expected Behavior
DSNs should have a reasonable date, the schema requires examination/correction, and if a DMARC report is rejected it shouldn’t try again.
Reproduction Steps
I cannot reproduce manually, this was an automated response to a piece of spam that has a DMARC rua configured.
Relevant Log Output
2026-08-02T21:00:00Z INFO New delivery attempt for domain (delivery.domain-delivery-start) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, domain = "dmarc-reports.cloudflare.net"
2026-08-02T21:00:00Z INFO MTA-STS policy not found (mta-sts.policy-not-found) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, domain = "dmarc-reports.cloudflare.net", strict = false, elapsed = 62ms
2026-08-02T21:00:00Z INFO Fetching TLSA record (dane.tlsa-record-fetch) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, domain = "dmarc-reports.cloudflare.net", hostname = "route2.mx.cloudflare.net", details = "Tlsa { entries: [TlsaEntry { is_end_entity: false, is_spki: true, matching: Sha256, data: [89, 231, 56, 230, 116, 34, 23, 2, 175, 30, 219, 135, 197, 32, 12, 26, 75, 117, 246, 79, 174, 61, 44, 61, 38, 81, 36, 198, 27, 216, 60, 121] }, TlsaEntry { is_end_entity: true, is_spki: true, matching: Sha256, data: [15, 12, 108, 22, 74, 54, 249, 126, 123, 76, 90, 91, 105, 214, 244, 242, 57, 212, 34, 252, 62, 194, 89, 32, 114, 236, 250, 184, 194, 113, 196, 82] }, TlsaEntry { is_end_entity: true, is_spki: true, matching: Sha256, data: [155, 229, 183, 212, 127, 158, 255, 147, 12, 17, 235, 4, 210, 124, 174, 107, 221, 208, 211, 117, 205, 251, 204, 246, 139, 38, 239, 230, 118, 209, 208, 219] }], has_end_entities: true, has_intermediates: true }", strict = false, elapsed = 55ms
2026-08-02T21:00:00Z INFO Connecting to remote server (delivery.connect) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, domain = "dmarc-reports.cloudflare.net", hostname = "route2.mx.cloudflare.net", localIp = 10.0.1.100, remoteIp = 162.159.205.17, remotePort = 25, elapsed = 16ms
2026-08-02T21:00:00Z INFO SMTP STARTTLS command (delivery.start-tls) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, domain = "dmarc-reports.cloudflare.net", hostname = "route2.mx.cloudflare.net", version = "TLSv1_2", details = "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", elapsed = 49ms
2026-08-02T21:00:00Z INFO TLSA record match found (dane.tlsa-record-match) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, hostname = "route2.mx.cloudflare.net", type = "end-entity"
2026-08-02T21:00:00Z INFO DANE authentication successful (dane.authentication-success) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, hostname = "route2.mx.cloudflare.net"
2026-08-02T21:00:01Z INFO Message rejected by remote server (delivery.message-rejected) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, hostname = "route2.mx.cloudflare.net", code = 555, details = "invalid_report_schema. LwoVAX8t53au", elapsed = 435ms
2026-08-02T21:00:01Z INFO DSN permanent failure notification (delivery.dsn-perm-fail) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, to = "[email protected]", hostname = "route2.mx.cloudflare.net", details = "Unexpected response for DATA: Code: 555, Enhanced code: 5.7.1, Message: invalid_report_schema. LwoVAX8t53au", total = 0
2026-08-02T21:00:01Z INFO Delivery completed (delivery.completed) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, elapsed = 1598000ms
2026-08-02T21:00:01Z INFO Delivery attempt ended (delivery.attempt-end) queueId = 321750938324828161, queueName = "remote", from = "[email protected]", to = ["[email protected]"], size = 2886, total = 1, elapsed = 1075ms
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
PostgreSQL
Blob Storage
S3-compatible
Search Engine
Internal
Directory Backend
Internal
Additional Context
v0.16.15
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on