DKIM: Difference between revisions
From DWIKI
m (→Checking) |
mNo edit summary |
||
Line 30: | Line 30: | ||
somename domain.name:selectorname:/path/to/somename.private | somename domain.name:selectorname:/path/to/somename.private | ||
This will try to fetch the key published in DNS, so "record not found" means DNS record not found. | = Checking = | ||
No output is good output. | |||
opendkim-testkey -d domain.name -s selectorname -v -k keys/keyname.private | |||
This will try to fetch the key published in DNS, so "record not found" means DNS record not found. No output is good output. | |||
=FAQ= | =FAQ= |
Revision as of 12:18, 8 September 2020
DomainKeys Identified Mail
Links
- dkim check
- DKIM and postfix
- {https://help.ubuntu.com/community/Postfix/dkim-milter Postfix and dkim-milter]
- Homepage
- http://www.opendkim.org/opendkim-README
- About DKIM
- DKIM with Sendmail
- https://wiki.debian.org/OpenDKIM
- http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test
- SPF and DKIM on Debian
OpenDKIM Howto
cd /etc/opendkim/keys
The 'selector' you choose here does not have to be the actual selector used in DNS. It is just the name used for storing the .txt and .private files
opendkim-genkey -s somename -d domain.name
Make sure the key ends up in /etc/opendkim/keys and is readable for user opendkim
SigningTable
- somename is the first field in Keytable
*@domain.name somename
KeyTable
Here the name of the selector (the part before ._domainkey) is the one you publish in dns
somename domain.name:selectorname:/path/to/somename.private
Checking
opendkim-testkey -d domain.name -s selectorname -v -k keys/keyname.private
This will try to fetch the key published in DNS, so "record not found" means DNS record not found. No output is good output.
FAQ
opendkim: no signing table match for
In opendkim.conf use:
refile:/etc/opendkim/SigningTable
opendkim-testkey key not secure
Probably means you have no DNSSEC
opendkim: /etc/opendkim.conf: /etc/opendkim/keys/default.private: open(): No such file or directory
Means it's defined in opendkim.conf, and you're not using KeyTable