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

OPENDKIM: DKIM does not match in the domain UI #6472

Closed
stephdl opened this issue Apr 1, 2021 · 5 comments
Closed

OPENDKIM: DKIM does not match in the domain UI #6472

stephdl opened this issue Apr 1, 2021 · 5 comments
Labels
bug A defect of the software verified All test cases were verified successfully

Comments

@stephdl
Copy link

stephdl commented Apr 1, 2021

Steps to reproduce

  • Record a domain in the mail domain UI
  • Most of time the DKIM test is ok (If correctly recorded)
  • In some case the DKIM mismatches even if it is correctly set

Expected behavior

I expect if the DKIM is correctly set in the DNS registar the UI output that DKIM is correctly set

Actual behavior

A sysadmin has a DNS provider who output the key a bit differently as usual

 [root@prometheus ~]# echo '{"action":"network-checks","domain":"domain.com"}'| /usr/libexec/nethserver/api/nethserver-mail/domains/read
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnDHXY9axEEi2mNiPJarErUkCdnuCIo3pLidherVt+6z6NHrB/Fwc2BWwK97qH9APzbo4cBhm/wtbXAiRnNlcTBMkG4P4lm09a/dR6spVsJ72QMrr+V5M04sLQ+76Ru4K6Pj4iyHJmBlAvORS3v4tpoZgXipi4o9qmbPvcT7JzXucICZ6q5gSKuyQRrKlZKL55TR7GWTCJ6VVLhbis74HlMNWfwjhJmcz3z1zMnNKHsDSaQfLplDBi5c3gZFG8hJ7mBVA1fGZHD4SeDv5mSYQrBgFT5Hgij67eSmYtZ5GcMPyn7q3aobCDXHvWVTFQD1x5SNIJohYTBuPQ7SfRNs17QIDAQAB
v=DKIM1; k=rsa;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw0LJtESK0G5LJ3euhIpLRyXlJyVOrw7exuztpOurn+/CYIYrpKVyBEdYBwlU2fOpSITJotK6dL2oOuhVnfCt6DhtSrTlA+jAvbHFsAraOm50dONtA9UllyKqjBPjYUP3VgPfTrHdC0r6oz1VcHb8JEuY9aDMb5EG8p155ZUpsrPYLn/m2Fq6nf5w/0g1/liPF3zFdLY8N61Vfgj3oX1dIhGGKVECPapA4Nh2tP+tznVaD6saMpH9POjHAmOPZ56ZaCrbdyChPKXh6ntwscb75QILhjuvLnmkfKsanO3bjJrIRl9tR25RhOEGnxwzAzqrxGvh+wj+bd2tDvVsLYcmiQIDAQAB
{"port-25":{"response":"ok","status":"success","message":""},"dkim-record":{"response":"mismatch","status":"success","message":""},"mx-record":{"response":"ok","status":"success","message":"mail.domain.com"},"status":"success","iprev-check":{"response":"ok","status":"success","message":""}}

we can see

default key
v=DKIM1; k=rsa; p=MIIBIjAN
dig output
v=DKIM1; k=rsa;p=MIIBIjAN

we need to remove all spaces to compare exactly the string

Components

nethserver-mail-common-2.29.8-1.ns7.noarch

See also

https://community.nethserver.org/t/dkim-records-not-matching/18078


Thank Elleni

@stephdl stephdl added the bug A defect of the software label Apr 1, 2021
@stephdl stephdl self-assigned this Apr 1, 2021
stephdl added a commit to NethServer/nethserver-mail that referenced this issue Apr 2, 2021
@stephdl
Copy link
Author

stephdl commented Apr 2, 2021

After rpm testing upgrade

  • Go to domain panel of the email software and check on an already configured DKIM setting that your DKIM matches the DKIM from DNS (in the domain list check the domain popover)

@nethbot
Copy link
Member

nethbot commented Apr 2, 2021

in 7.9.2009/testing:

@stephdl stephdl added the testing Packages are available from testing repositories label Apr 6, 2021
@gsanchietti
Copy link
Member

I've tested it on a machine where the check was already ok: no regression found.

@gsanchietti
Copy link
Member

Tested also by Elleni, verified.

@gsanchietti gsanchietti added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Apr 7, 2021
@nethbot
Copy link
Member

nethbot commented Apr 7, 2021

in 7.9.2009/updates:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect of the software verified All test cases were verified successfully
Projects
None yet
Development

No branches or pull requests

3 participants