DKIM

De MochilaWiki
Ir para navegaçãoIr para pesquisar
apt-get install opendkim opendkim-tools -y
mkdir /etc/opendkim

em /etc/opendkim.conf

ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
KeyTable refile:/etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
SOCKET inet:8891@localhost

em /etc/default/opendkim

SOCKET="inet:8891@localhost"

em /etc/postfix/main.cf

smtp_tls_security_level = may
# OpenDKIM
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891

em /etc/opendkim/TrustedHosts

127.0.0.1
localhost
*.dominio.com

em /etc/opendkim/KeyTable

default._domainkey.dominio.com dominio.com:default:/etc/opendkim/keys/dominio.com/default.private

em /etc/opendkim/SigningTable

*@dominio.com default._domainkey.dominio.com
mkdir -p /etc/opendkim/keys/dominio.com
cd /etc/opendkim/keys/dominio.com
opendkim-genkey -s default -d dominio.com
chown -R opendkim:opendkim /etc/opendkim
cat default.txt

reiniciando servios

service postfix restart
service opendkim restart

Referências