DKIM: Difference between revisions
From DWIKI
mNo edit summary |
m →Links Tag: wikieditor |
||
| (38 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
'''DomainKeys Identified Mail''' | |||
= Links = | |||
==DKIM checks== | |||
[https://dkimvalidator.com/ DKIMvalidator] | |||
*[http://dkimcore.org/tools/keycheck.html dkim check] | *[http://dkimcore.org/tools/keycheck.html dkim check] | ||
*[http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test] | |||
==DKIM documentation== | |||
*[https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy DKIM and postfix] | *[https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy DKIM and postfix] | ||
*[https://help.ubuntu.com/community/Postfix/dkim-milter | *[https://help.ubuntu.com/community/Postfix/dkim-milter Postfix and dkim-milter] | ||
*[ | *[https://www.samlogic.net/articles/dkim--cname-or-txt.htm DKIM with CNAME or TXT] | ||
*[http://www.sendmail.com/sm/wp/dkim// About DKIM] | *[http://www.sendmail.com/sm/wp/dkim// About DKIM] | ||
*[[DKIM_with_Sendmail|DKIM with Sendmail]] | *[[DKIM_with_Sendmail|DKIM with Sendmail]] | ||
*[https://wiki.debian.org/OpenDKIM https://wiki.debian.org/OpenDKIM] | *[https://wiki.debian.org/OpenDKIM https://wiki.debian.org/OpenDKIM] | ||
*[https://www.linode.com/docs/email/postfix/configure-spf-and-dkim-in-postfix-on-debian-9/ SPF and DKIM on Debian] | *[https://www.linode.com/docs/email/postfix/configure-spf-and-dkim-in-postfix-on-debian-9/ SPF and DKIM on Debian] | ||
*[ | *[[OpenDKIM]] | ||
*[https://diziet.dreamwidth.org/16025.html dkim key rotation] | |||
=DKIM tags= | |||
* https://mxtoolbox.com/dmarc/dkim/dkim-signature-tags | |||
=Tools= | |||
==dkimverify== | |||
=HOWTO= | |||
==Find published dkim key== | |||
In mailheader look for 'd=' and 's=' to get domain and selector, then | |||
dig <selector>._domainkey.<domain> TXT | |||
== | ==Check if keys match== | ||
dig myselector._domainkey.example.com txt | |||
and save the bit from "p=" to '''public.key.b64''' | |||
You will probably need to remove the quotes/spaces: | |||
| sed 's/[\" \"|\"$]//g' | |||
openssl enc -base64 -d -in public.key.b64 -out public.key | |||
openssl rsa -pubin -inform DER -in public.key -noout -modulus | |||
and compare the shown modulus with | |||
openssl rsa -in private.key -noout -modulus | |||
They should be identical | |||
= FAQ = | = FAQ = | ||
[[Category:Mail]] | [[Category:Mail]] | ||
Latest revision as of 07:12, 29 April 2026
DomainKeys Identified Mail
Links
DKIM checks
DKIM documentation
- DKIM and postfix
- Postfix and dkim-milter
- DKIM with CNAME or TXT
- About DKIM
- DKIM with Sendmail
- https://wiki.debian.org/OpenDKIM
- SPF and DKIM on Debian
- OpenDKIM
DKIM tags
Tools
dkimverify
HOWTO
Find published dkim key
In mailheader look for 'd=' and 's=' to get domain and selector, then
dig <selector>._domainkey.<domain> TXT
Check if keys match
dig myselector._domainkey.example.com txt
and save the bit from "p=" to public.key.b64 You will probably need to remove the quotes/spaces:
| sed 's/[\" \"|\"$]//g'
openssl enc -base64 -d -in public.key.b64 -out public.key openssl rsa -pubin -inform DER -in public.key -noout -modulus
and compare the shown modulus with
openssl rsa -in private.key -noout -modulus
They should be identical
