Skip to content
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

management subcommand manage_dkim_keys should print the public keys (and arguably TXT records) #2740

Open
bernd-wechner opened this issue Jan 3, 2023 · 0 comments

Comments

@bernd-wechner
Copy link

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 #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants