Установка и настройка DKIM на CentOS

Установка и настройка DKIM на CentOS

Устанавливаем opendkim

[root@localhost]# yum -y install opendkim
[root@localhost]# mkdir -p /etc/opendkim/keys
[root@localhost]# chown -R opendkim:opendkim /etc/opendkim
[root@localhost]# chmod -R go-wrx /etc/opendkim/keys

Приводим конфигурационный файл opendkim к виду: 

[root@localhost]# cat /etc/opendkim.conf
AutoRestart Yes
AutoRestartRate 10/1h
PidFile /var/run/opendkim/opendkim.pid
Mode sv
Syslog yes
SyslogSuccess yes
#LogWhy yes
UserID opendkim:opendkim
Socket inet:8891@localhost
Umask 022
Canonicalization relaxed/relaxed
Selector default
Background yes
MinimumKeyBits 1024
KeyFile /etc/opendkim/keys/example.ru/default
KeyTable /etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts

Перегружаем postfix и opendkim

[root@localhost]# hash -r
[root@localhost]# service opendkim restart
[root@localhost]# service postfix restart

Настраиваем почтовый …