From 900a7e6fdb5465ae8d9f9acb8f3b4007fbfba923 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 3 Jan 2025 16:47:42 -0800 Subject: [PATCH] email: Create DKIM keys for all known domains - Instead of just the primary domain. This bring us closer to working equally well on all the domains. - App version number has not be incremented because it has already been incremented for this release cycle. Tests: - When re-running the setup of email app. Notice that all the domains have DKIM keys now. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Benedek Nagy --- plinth/modules/email/privileged/domain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/email/privileged/domain.py b/plinth/modules/email/privileged/domain.py index b24d98933..643e19792 100644 --- a/plinth/modules/email/privileged/domain.py +++ b/plinth/modules/email/privileged/domain.py @@ -38,7 +38,8 @@ def set_all_domains(primary_domain=None): # Update configuration and don't restart daemons set_domains(primary_domain, list(all_domains)) - dkim.setup_dkim(primary_domain) + for domain in all_domains: + dkim.setup_dkim(domain) # Copy certificates (self-signed if needed) and restart daemons app = App.get('email')