Skip to content

opendkim: improve too-much-header-data log and SMTP reply (issue #143)#344

Merged
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:issue-143-too-much-header-data
May 25, 2026
Merged

opendkim: improve too-much-header-data log and SMTP reply (issue #143)#344
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:issue-143-too-much-header-data

Conversation

@thegushi
Copy link
Copy Markdown
Collaborator

Summary

  • The bare "too much header data" log message gave no context - no job ID, no header name, no size info
  • Added job ID, offending header field name, and the configured MaximumHeaders limit to the log line
  • Added a 552 5.3.4 SMTP reply so the sending MTA receives a descriptive permanent error rather than a generic service-unavailable response
  • OnSecurity config still controls accept/reject/tempfail behavior; this just makes each outcome more informative

Fixes #143

Credit to @andreasschulze for the original diagnosis and proposed approach.

…teddomainproject#143)

The bare "too much header data" log message gave no context about which
message, which header, or what the limit was.  Add the job ID, the
offending header field name, and the configured limit.

Also set a 552 5.3.4 SMTP reply so the sending MTA receives a
descriptive error rather than the generic service-unavailable response.
The OnSecurity action (default tempfail) still controls accept/reject
behaviour.

Fixes trusteddomainproject#143
@thegushi thegushi mentioned this pull request May 25, 2026
@thegushi thegushi merged commit 04b8c99 into trusteddomainproject:develop May 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant