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

De MochilaWiki
Ir para navegaçãoIr para pesquisar
(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...')
 
Linha 2: Linha 2:
 
apt-get install opendkim opendkim-tools -y
 
apt-get install opendkim opendkim-tools -y
  
nano /etc/opendkim.conf
+
em /etc/opendkim.conf
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
+
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
+
InternalHosts refile:/etc/opendkim/TrustedHosts
KeyTable refile:/etc/opendkim/KeyTable
+
KeyTable refile:/etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
+
SigningTable refile:/etc/opendkim/SigningTable
SOCKET inet:8891@localhost
+
SOCKET inet:8891@localhost
  
nano /etc/default/opendkim
+
em /etc/default/opendkim
 +
SOCKET="inet:8891@localhost"
  
SOCKET="inet:8891@localhost"
+
em /etc/postfix/main.cf
 
+
smtp_tls_security_level = may
nano /etc/postfix/main.cf
+
# OpenDKIM
smtp_tls_security_level = may
+
milter_default_action = accept
# OpenDKIM
+
milter_protocol = 2
milter_default_action = accept
+
smtpd_milters = inet:localhost:8891
milter_protocol = 2
+
non_smtpd_milters = inet:localhost:8891
smtpd_milters = inet:localhost:8891
 
non_smtpd_milters = inet:localhost:8891
 
  
 
mkdir /etc/opendkim
 
mkdir /etc/opendkim
  
nano /etc/opendkim/TrustedHosts
+
em /etc/opendkim/TrustedHosts
127.0.0.1
+
127.0.0.1
localhost
+
localhost
*.dominio.com
+
*.dominio.com
  
nano /etc/opendkim/KeyTable
+
em /etc/opendkim/KeyTable
default._domainkey.dominio.com dominio.com:default:/etc/opendkim/keys/dominio.com/default.private
+
default._domainkey.dominio.com dominio.com:default:/etc/opendkim/keys/dominio.com/default.private
  
nano /etc/opendkim/SigningTable
+
em /etc/opendkim/SigningTable
*@dominio.com default._domainkey.dominio.com
+
*@dominio.com default._domainkey.dominio.com
  
 
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
  
Linha 41: Linha 39:
  
 
chown -R opendkim:opendkim /etc/opendkim
 
chown -R opendkim:opendkim /etc/opendkim
 
 
cat default.txt
 
cat default.txt
  
 +
reiniciando servios
 +
<source lang="bash">
 
service postfix restart
 
service postfix restart
 
 
service opendkim restart
 
service opendkim restart
 +
</source>

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

apt-get install opendkim opendkim-tools -y

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

mkdir /etc/opendkim

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