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 <sunil@medhas.org>
Reviewed-by: Benedek Nagy <contact@nbenedek.me>
This commit is contained in:
Sunil Mohan Adapa 2025-01-03 16:47:42 -08:00 committed by Benedek Nagy
parent 26a61d67b9
commit 900a7e6fdb
No known key found for this signature in database
GPG Key ID: E167EC84BC1CDBBF

View File

@ -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')