[GH-ISSUE #2740] management subcommand manage_dkim_keys should print the public keys (and arguably TXT records) #1693

Closed
opened 2026-02-27 11:18:36 +03:00 by kerem · 1 comment
Owner

Originally created by @bernd-wechner on GitHub (Jan 3, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2740

Impacted versions

  • Modoboa: 2.0.3

Steps to reproduce

python manage.py modo manage_dkim_keys

Notice it creates private_keys and populates the admin_domain table with public keys and a path to private key.

Expected behavior

Given the need to add a TXT record at the DNS end for each domain it would be very useful if this command provided them. That is it should for each .pem it creates spit something out like:

$ python manage.py modo manage_dkim_keys
Creating keys for mydomain.tld:
    private key written to: <path_to_private_key>
    public key: <the_public_key>
    DNS TXT record required:
        host: <selector>._domainkey.myserver.tld
        value: v=DKIM1; k=rsa; p=<the_public_key>
Creating keys for mydomain2.tld:
   ... etc

Arguably only if verbosity is greater than the default (of 1), i.e. 2 or 3, which assumes https://github.com/modoboa/modoboa/issues/2737 is fixed.

As it stands to create the text record I could not find any guidance, nor sign of the public key in the modoboa web interface, so fished it out of the admin_domain with pgadmin.

Originally created by @bernd-wechner on GitHub (Jan 3, 2023). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2740 # Impacted versions * Modoboa: 2.0.3 # Steps to reproduce `python manage.py modo manage_dkim_keys` Notice it creates private_keys and populates the `admin_domain` table with public keys and a path to private key. # Expected behavior Given the need to add a TXT record at the DNS end for each domain it would be very useful if this command provided them. That is it should for each `.pem` it creates spit something out like: ``` $ python manage.py modo manage_dkim_keys Creating keys for mydomain.tld: private key written to: <path_to_private_key> public key: <the_public_key> DNS TXT record required: host: <selector>._domainkey.myserver.tld value: v=DKIM1; k=rsa; p=<the_public_key> Creating keys for mydomain2.tld: ... etc ```` Arguably only if verbosity is greater than the default (of 1), i.e. 2 or 3, which assumes https://github.com/modoboa/modoboa/issues/2737 is fixed. As it stands to create the text record I could not find any guidance, nor sign of the public key in the modoboa web interface, so fished it out of the `admin_domain` with pgadmin.
kerem 2026-02-27 11:18:36 +03:00
Author
Owner

@tonioo commented on GitHub (Sep 28, 2025):

Public key is available on Domain detail page.

<!-- gh-comment-id:3342839526 --> @tonioo commented on GitHub (Sep 28, 2025): Public key is available on Domain detail page.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1693
No description provided.