[GH-ISSUE #2610] Opendkim A DNS record has been found but its syntax is not valid: Public key mismatchs #1652

Closed
opened 2026-02-27 11:18:23 +03:00 by kerem · 3 comments
Owner

Originally created by @tate11 on GitHub (Sep 22, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2610

Impacted versions

  • OS Type: Ubuntu
  • OS Version: 20.04
  • Database Type: PostgreSQL
  • Database version: 12
  • Modoboa: 2.0.1
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Current behavior

Expected behavior

Video/Screenshot link (optional)

Originally created by @tate11 on GitHub (Sep 22, 2022). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2610 # Impacted versions * OS Type: Ubuntu * OS Version: 20.04 * Database Type: PostgreSQL * Database version: 12 * Modoboa: 2.0.1 * installer used: Yes * Webserver: Nginx # Steps to reproduce # Current behavior <!-- modoboa web admin domain/dkim tab (orange) message in the pop-up window (A DNS record has been found but its syntax is not valid: Public key mismatchs) new-admin dkiml (green) DKIM record found Mail log Sep 22 13:42:12 mail opendkim[1209]: 94CD42E1A67: no signing table match for 'root@mail.uzmantem.com' Sep 22 13:42:12 mail opendkim[1209]: 94CD42E1A67: no signature data service opendkim status ● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2022-09-22 13:42:08 CEST; 3h 36min ago Docs: man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html Process: 1189 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf (code=exited, status=0/SUCCESS) Main PID: 1209 (opendkim) Tasks: 7 (limit: 9479) Memory: 7.7M CGroup: /system.slice/opendkim.service └─1209 /usr/sbin/opendkim -x /etc/opendkim.conf Sep 22 17:04:07 mail.uzmantem.com opendkim[1209]: 9DD482E1A76: DKIM-Signature field added (s=mod, d=uzmantem.com) Sep 22 17:04:57 mail.uzmantem.com opendkim[1209]: DED1F2E1A76: DKIM-Signature field added (s=mod, d=uzmantem.com) Sep 22 17:05:31 mail.uzmantem.com opendkim[1209]: 3540D2E1A76: DKIM-Signature field added (s=mod, d=uzmantem.com) Sep 22 17:07:36 mail.uzmantem.com opendkim[1209]: 19D8F2E1A76: DKIM-Signature field added (s=mod, d=uzmantem.com) opendkim-testkey -d uzmantem.com -s mod -k /var/lib/dkim/uzmantem.com.pem -x /etc/opendkim.conf opendkim-testkey: keys do not match https://dmarcly.com/tools/dkim-record-checker Success! Everything appears fine with your DKIM record. --> # Expected behavior # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:18:23 +03:00
Author
Owner

@stefaweb commented on GitHub (Sep 23, 2022):

Hello,

I have the same concern. The public key in modoboa seems to change on its own and no longer corresponds to the one entered in the DNS. No yet found how this is happening.

<!-- gh-comment-id:1255868426 --> @stefaweb commented on GitHub (Sep 23, 2022): Hello, I have the same concern. The public key in modoboa seems to change on its own and no longer corresponds to the one entered in the DNS. No yet found how this is happening.
Author
Owner

@stefaweb commented on GitHub (Sep 23, 2022):

I found the problem. I fooled myself with my curiosity to click everywhere. ;)

If you click on the small button, it generates a new key.

sc

It would be nice to have a confirmation "Are you sure you want to generate a new key?" when you click on this button.

<!-- gh-comment-id:1255983373 --> @stefaweb commented on GitHub (Sep 23, 2022): I found the problem. I fooled myself with my curiosity to click everywhere. ;) If you click on the small button, it generates a new key. ![sc](https://user-images.githubusercontent.com/12907102/191930547-ee03a7bc-b9f4-4173-93a5-7277e5a2c740.png) It would be nice to have a confirmation "Are you sure you want to generate a new key?" when you click on this button.
Author
Owner

@tate11 commented on GitHub (Sep 23, 2022):

I found the problem. I fooled myself with my curiosity to click everywhere. ;)

If you click on the small button, it generates a new key.

sc

It would be nice to have a confirmation "Are you sure you want to generate a new key?" when you click on this button.

I think the problem is the new web admin.
I made the old web admin opendkim settings and it worked

<!-- gh-comment-id:1256547450 --> @tate11 commented on GitHub (Sep 23, 2022): > I found the problem. I fooled myself with my curiosity to click everywhere. ;) > > If you click on the small button, it generates a new key. > > ![sc](https://user-images.githubusercontent.com/12907102/191930547-ee03a7bc-b9f4-4173-93a5-7277e5a2c740.png) > > It would be nice to have a confirmation "Are you sure you want to generate a new key?" when you click on this button. I think the problem is the new web admin. I made the old web admin opendkim settings and it worked
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#1652
No description provided.