yum install opendkim opendkim-tools
AutoRestart Yes
AutoRestartRate 10/1h
UMask 002
Syslog yes
SyslogSuccess Yes
LogWhy Yes
Canonicalization relaxed/simple
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
KeyTable refile:/etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
Mode sv
PidFile /var/run/opendkim/opendkim.pid
SignatureAlgorithm rsa-sha256
UserID opendkim:opendkim
Socket inet:8891@localhost
touch /etc/opendkim/TrustedHosts
touch /etc/opendkim/KeyTable
touch /etc/opendkim/SigningTable
127.0.0.1
localhost
opendkim-genkey -b 2048 -d example.com -D /etc/opendkim/keys/ -s mail -v
This will generate a private key (mail.private) and a public key (mail.txt) in the /etc/opendkim/keys/ directory.
mail._domainkey.example.com example.com:/etc/opendkim/keys/mail.private
*@example.com mail._domainkey.example.com
Add the following lines to your /etc/postfix/main.cf file:
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
systemctl start opendkim
systemctl enable opendkim
system
© 2017 - 2023 DMARC.FR