Mudanças entre as edições de "DKIM"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
Linha 1: Linha 1:
 
+
<source lang="bash">
 
apt-get install opendkim opendkim-tools -y
 
apt-get install opendkim opendkim-tools -y
 +
mkdir /etc/opendkim
 +
</source>
  
 
em /etc/opendkim.conf
 
em /etc/opendkim.conf
Linha 19: Linha 21:
 
  smtpd_milters = inet:localhost:8891
 
  smtpd_milters = inet:localhost:8891
 
  non_smtpd_milters = inet:localhost:8891
 
  non_smtpd_milters = inet:localhost:8891
 
mkdir /etc/opendkim
 
  
 
em /etc/opendkim/TrustedHosts
 
em /etc/opendkim/TrustedHosts
Linha 33: Linha 33:
 
  *@dominio.com default._domainkey.dominio.com
 
  *@dominio.com default._domainkey.dominio.com
  
 +
<source lang="bash">
 
mkdir -p /etc/opendkim/keys/dominio.com
 
mkdir -p /etc/opendkim/keys/dominio.com
 
cd /etc/opendkim/keys/dominio.com
 
cd /etc/opendkim/keys/dominio.com
 
 
opendkim-genkey -s default -d dominio.com
 
opendkim-genkey -s default -d dominio.com
 
 
chown -R opendkim:opendkim /etc/opendkim
 
chown -R opendkim:opendkim /etc/opendkim
 
cat default.txt
 
cat default.txt
 +
</source>
  
 
reiniciando servios
 
reiniciando servios
Linha 46: Linha 46:
 
service opendkim restart
 
service opendkim restart
 
</source>
 
</source>
 +
 +
== Referências ==
 +
* https://www.youtube.com/watch?v=Iv_9Zwqvp8A

Edição das 19h57min de 5 de julho de 2017

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