-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Labels
Description
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
- Configure a domain with DKIM enabled via the admin interface
- Verify DKIM key is correctly stored in Redis (
dkim_keyshash) - Verify DNS TXT record is correctly configured
- Send an email to an external address (e.g., mail-tester.com)
- 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
Reactions are currently unavailable