DKIM

De MochilaWiki
Revisão de 19h52min de 5 de julho de 2017 por Banto Palmarino (discussão | contribs) (Criou página com ' apt-get install opendkim opendkim-tools -y nano /etc/opendkim.conf ExternalIgnoreList refile:/etc/opendkim/TrustedHosts InternalHosts refile:/etc/opendkim/TrustedHosts KeyTa...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegaçãoIr para pesquisar

apt-get install opendkim opendkim-tools -y

nano /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

nano /etc/default/opendkim

SOCKET="inet:8891@localhost"

nano /etc/postfix/main.cf smtp_tls_security_level = may

  1. OpenDKIM

milter_default_action = accept milter_protocol = 2 smtpd_milters = inet:localhost:8891 non_smtpd_milters = inet:localhost:8891

mkdir /etc/opendkim

nano /etc/opendkim/TrustedHosts 127.0.0.1 localhost

  • .dominio.com

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

nano /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

service postfix restart

service opendkim restart