Skip to content

DKIM signing skipped #673

@barnabehvrd

Description

@barnabehvrd

DKIM signing skipped for authenticated users / local networks

Description

Outgoing emails are not being signed with DKIM when sent from authenticated users (e.g., via Roundcube webmail). This causes DMARC failures when receiving servers check the signature.

Steps to reproduce

  1. Configure a domain with DKIM enabled via the admin interface
  2. Verify DKIM key is correctly stored in Redis (dkim_keys hash)
  3. Verify DNS TXT record is correctly configured
  4. Send an email to an external address (e.g., mail-tester.com)
  5. Check Rspamd logs

Expected behavior

Outgoing emails should be signed with DKIM.

Actual behavior

Emails are not signed. Rspamd logs show:

proxy; dkim_symbol_callback: skip DKIM checks for local networks and authorized users
lua; dmarc.lua:460: skip DMARC checks as either SPF or DKIM were not checked

Root cause

In dkim_signing.conf, the options sign_authenticated and sign_local are not set, so Rspamd defaults to skipping DKIM signing for:

  • Authenticated users
  • Connections from local/Docker networks

Since all traffic in a Docker setup comes from internal networks (172.x.x.x), DKIM is never applied to outgoing mail.

Suggested fix

Add the following to dkim_signing.conf:

sign_authenticated = true;
sign_local = true;

Environment

  • docker-mailserver version: v7.3.2
  • Rspamd container: jeboehm/mailserver-filter:latest

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions