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...') |
|||
(2 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
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 | |
− | 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 |
− | |||
− | |||
− | |||
− | |||
− | + | 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 | + | 127.0.0.1 |
− | localhost | + | localhost |
− | *.dominio.com | + | *.dominio.com |
− | + | 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 |
− | + | em /etc/opendkim/SigningTable | |
− | *@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 | ||
+ | <source lang="bash"> | ||
service postfix restart | service postfix restart | ||
+ | service opendkim restart | ||
+ | </source> | ||
− | + | == Referências == | |
+ | * https://www.youtube.com/watch?v=Iv_9Zwqvp8A | ||
+ | * https://easyengine.io/tutorials/mail/dkim-postfix-ubuntu/ |
Edição atual tal como às 20h09min 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