Difference between revisions of "DKIM How To"
Line 29: | Line 29: | ||
systemctl restart postfix | systemctl restart postfix | ||
− | + | Documentation: | |
+ | *[http://www.postfix.org/MILTER_README.html#workarounds Postfix Workarounds] | ||
*[https://help.ubuntu.com/community/Postfix/DKIM Postfix/DKIM Ubuntu/Debian Guide] | *[https://help.ubuntu.com/community/Postfix/DKIM Postfix/DKIM Ubuntu/Debian Guide] | ||
*[https://dkimcore.org/tools/ Key Generator] | *[https://dkimcore.org/tools/ Key Generator] | ||
+ | |||
+ | Tools: | ||
*[http://dkimvalidator.com/ Online Key Validator] | *[http://dkimvalidator.com/ Online Key Validator] |
Revision as of 19:47, 8 May 2018
DKIM add new key:
- create keys and put them into /etc/opendkim/keys/domains.com/keys
- add domain to trusted.hosts
- add domain to signing.table
- add domain to key.table
systemctl restart opendkim
Generate keys two ways:
opendkim-genkey -t -s mail -d domain.com -v opendkim-genkey -b 2048 -h rsa-sha256 -r -s mail -d domain.com -v
Test Keys:
opendkim-testkey -d domain.com -s mail -vvv
Need permissions:
chown -R opendkim:opendkim /etc/opendkim/ chmod 700 /etc/opendkim/keys/
Debugging:
grep -r milter /var/log/syslog grep -i dkim /var/log/mail.log
Notes:
If it keys do not pass on reboot, do the following:
systemctl restart opendkim systemctl restart postfix
Documentation:
Tools: