-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Second domain no DKIM signing #237
Comments
Create only for master domain example.com a dkim privatekey and add in dns from example.com a txt record default._domainkey dkim,… FJFKKFBFJFKFNFBFBFJFJFB== For domains added via anonaddy web ui goto dns and create a cname redirect default._domainkey (on example2 domain dns) to default._domainkey.example.com. |
Thanks for your reply. But that’s not what I was planning to do. I want to add Like I said, DKIM signing for |
What is the contents of the Rspamd DKIM config file? Typically |
I think And also update |
In my opinion signing everything with the same key would be fine. |
I have been fighting failing DKIM setup on a similar setup to you @JensSpanier for days now. Did you successfully get this solution setup and if so, would you be willing to elaborate on how you set things up in both your configuration (docker/podman/whatever) and DNS? I would wildly appreciate any help! |
I’m sorry @Waffleophagus, but I couldn't get it to work. I only kept one domain. |
Gotcha, thanks for letting me know. I think I finally got DKIM setup and working on one domain, so that'll have to do for now. Thank you for letting me know @JensSpanier!! |
Hey @JensSpanier and @Waffleophagus, I came across this issue while trying to self host AnonAddy without Docker and was experiencing the issue you were except I couldn't even sign for the primary domain either. It started looking into the problem with greater detail and discovered this line In order to test my theory I split In my testing only the external IPs were necessary but left the local ones just in case: sign_networks = [
"127.0.0.0/8",
"[::1]/128",
"anonaddy_server_ipv4",
"anonaddy_server_ipv6",
]; My final file looks like the below: signing_table = [
"*@domain1 domain1",
"*@*.domain1 domain1",
"*@domain2 domain2",
"*@*.domain2 domain2",
"*@domain3 domain3",
"*@*.domain3 domain3",
];
key_table = [
"domain1 domain1:default:/var/lib/rspamd/dkim/domain1.default.key",
"domain2 domain2:default:/var/lib/rspamd/dkim/domain2.default.key",
"domain3 domain3:default:/var/lib/rspamd/dkim/domain3.default.key",
];
sign_networks = [
"127.0.0.0/8",
"[::1]/128",
"anonaddy_server_ipv4",
"anonaddy_server_ipv6",
];
use_domain = "envelope";
allow_hdrfrom_mismatch = true;
allow_username_mismatch = true;
use_esld = true;
sign_authenticated = false; If you enable /etc/rspamd/local.d/logging.inclevel = "error";
debug_modules = ["dkim_signing"] Checking 2025-01-20 07:03:12 #92348(main) <7y73xi>; cfg; rspamd_config_action_from_ucl: action rewrite subject has no threshold being set and it is not a no threshold action
2025-01-20 07:03:26 #92351(normal) <147B22>; dkim_signing; lua_dkim_tools.lua:195: mail is ineligible for signing
2025-01-20 07:03:27 #92351(normal) <5D4D12>; dkim_signing; lua_dkim_tools.lua:189: mail is from address in sign_networks
2025-01-20 07:03:27 #92351(normal) <5D4D12>; dkim_signing; lua_dkim_tools.lua:275: signing_table: found entry for [email protected]: domain.com
2025-01-20 07:03:27 #92351(normal) <5D4D12>; dkim_signing; lua_dkim_tools.lua:329: perform dkim signing for domain.com, selector=default, domain=domain.com, key file=/var/lib/rspamd/dkim/domain.com.default.key
2025-01-20 07:03:27 #92351(normal) <5D4D12>; dkim_signing; dkim_signing.lua:130: using key "/var/lib/rspamd/dkim/domain.com.default.key", use selector "default" for domain "domain.com" Hopefully this helps you, if it does I can look at raising a PR to have the self hosted documentation updated. Keep me posted 😄. |
Support guidelines
I've found a bug and checked that ...
Description
I've added another domain to
ANONADDY_ALL_DOMAINS
. So my config looks like this:I also created DKIM keys for both domains. The folder
data/dkim
has the following files:example.com.private
example.com.txt
example2.com.private
example2.com.txt
Signing mails with DKIM from
example.com
works just fine. But in mails fromexample2.com
there is no DKIM header.Expected behaviour
All domains should get a DKIM singature.
Actual behaviour
Only first domain and custom domains get a DKIM signature.
Steps to reproduce
ANONADDY_ALL_DOMAINS
ANONADDY_ALL_DOMAINS
Docker info
Docker Compose config
No response
Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: