-
-
Notifications
You must be signed in to change notification settings - Fork 2k
docs: Rspamd DKIM config simplify via path setting
#3702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
02f09ef
2a0af43
a041eea
405be2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -156,6 +156,13 @@ DKIM is currently supported by either OpenDKIM or Rspamd: | |
| use_esld = true; | ||
| check_pubkey = true; # you want to use this in the beginning | ||
|
|
||
| selector = "mail"; | ||
| # The path location is searched for a DKIM key with these variables: | ||
| # - `$domain` is sourced from the MIME mail message `From` header | ||
| # - `$selector` is configured for `mail` (as a default fallback) | ||
| path = "/tmp/docker-mailserver/dkim/keys/$domain/$selector.private"; | ||
|
|
||
| # domain specific configurations can be provided below: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternatively there is a simple The
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feedback has been migrated to a separate TODO issue: #3778 |
||
| domain { | ||
| example.com { | ||
| path = "/tmp/docker-mailserver/rspamd/dkim/mail.private"; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path is wrong, currently the keys are in:
/tmp/docker-mailserver/opendkim/keys/I have used
path = "/etc/opendkim/keys/$domain/$selector.private";until nowThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an example and was explicitly changed to that by me for the docs.
The contributor used
/tmp/docker-mailserver/...instead of/etc/...but otherwise they also referred toopendkim.Not sure why you'd want OpenDKIM as the path for rspamd though? I want this to be a unified location for DKIM keys, but someone will need to contribute that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it's more that rspamd wanted to do signing before I would even know it. So I patched the path and selector to use open dkim path. Since opendkim was the first dkim stuff I had setup
Just feels like there is too many moving components in DMS and without a diagram I can not decide to shut down one component or another.
Anyway this config allows to local dkim sign and that's all I needed to pass 👍