Switch to using redis for dkim keys

This commit is contained in:
danwin1210 committed 2026-10-23 20:17:49 +02:00
1 parent d9f12adde6
commit 11fe088b64
11 files changed
+115 -41

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ Each mailbox receives a unique 15-character Feedback Loop sender ID. Rspamd adds
Google FBL reporting requires mail to be DKIM-signed by a domain verified in Google Postmaster Tools. Publish the sending IPs in SPF and ensure the IPs have valid PTR records; FBL reports apply only to Gmail recipients.
Configure DKIM signing maps by replacing the example hostname and token in `/etc/rspamd/local.d/arc.conf` and `/etc/rspamd/local.d/dkim_signing.conf` with the same hostname and token used for the other Rspamd maps. An RSA DKIM key is generated automatically when a domain is added. The domain editor shows the selector and public DNS TXT record to publish; regenerating the key changes the selector and requires updating that record. Private keys are stored in the database and should be protected accordingly.
Configure the DKIM signing map by replacing the example hostname and token in `/etc/rspamd/local.d/dkim_signing.conf` with the same hostname and token used for the other Rspamd maps. ARC/DKIM signing uses the local Redis instance (`127.0.0.1:6379`) via the `php-redis` extension, with Redis hashes `dkim_keys` and `dkim_selectors`; the installation script installs the extension. ARC signing is enabled for authenticated, local, and inbound messages, using the recipient's hosted domain for inbound ARC seals. The database-backed ARC hashes are synchronized during setup, when a domain is added/updated or a key is regenerated, and by the five-minute cron job. An RSA DKIM key is generated automatically when a domain is added. The domain editor shows the selector and public DNS TXT record to publish; regenerating the key changes the selector and requires updating that record. Private keys are stored in the database and Redis and should be protected accordingly.
The authenticated-user ratelimit map is configured in `/etc/rspamd/custom_ratelimit.lua`; replace its example hostname and token with your map endpoint settings. Accounts registered within the last 14 days receive lower sending limits. A mailbox marked as trusted in the admin editor receives higher limits; other authenticated mailboxes receive the default limits.