Difference between revisions of "DKIM How To"

From HyperSecurity Wiki
Jump to: navigation, search
(Created page with "'''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...")
 
Line 12: Line 12:
 
Test Keys:
 
Test Keys:
 
  opendkim-testkey -d domain.com -s mail -vvv
 
  opendkim-testkey -d domain.com -s mail -vvv
 +
 +
Need permissions:
 +
chown -R opendkim:opendkim /etc/opendkim
 +
chmod go-rw /etc/opendkim/keys

Revision as of 05:11, 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
systemctr restart opendkim

Generate keys:

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 go-rw /etc/opendkim/keys