User Tools

Site Tools


postfix_spf_dkim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
postfix_spf_dkim [2024/07/21 08:36] ryaspostfix_spf_dkim [2024/07/21 08:40] (current) – [Установка и настройка opendkim] ryas
Line 2: Line 2:
   * yum install -y postfix\\   * yum install -y postfix\\
   * vi /etc/postfix/main.cf   * vi /etc/postfix/main.cf
 +
      myhostname = mx.domain.ru      myhostname = mx.domain.ru
      mydomain = domain.ru      mydomain = domain.ru
Line 13: Line 14:
   * yum install -y opendkim\\   * yum install -y opendkim\\
   * vi /etc/opendkim.conf   * vi /etc/opendkim.conf
 +
      AlwaysAddARHeader       Yes      AlwaysAddARHeader       Yes
      SubDomains              Yes           SubDomains              Yes     
Line 29: Line 31:
      Socket                  inet:10021@localhost      Socket                  inet:10021@localhost
      ReportAddress           "DKIM Error Postmaster" <postmaster@domain.ru>      ReportAddress           "DKIM Error Postmaster" <postmaster@domain.ru>
 +
   * opendkim-genkey -D /etc/opendkim --domain=domain.ru --selector=key1   * opendkim-genkey -D /etc/opendkim --domain=domain.ru --selector=key1
   * chown opendkim:opendkim /etc/opendkim/*.private\\   * chown opendkim:opendkim /etc/opendkim/*.private\\
   * chmod 600 /etc/opendkim/*.private\\   * chmod 600 /etc/opendkim/*.private\\
   * vi /etc/opendkim/KeyTable   * vi /etc/opendkim/KeyTable
 +
      key1 domain.ru:key1:/etc/opendkim/key1.private      key1 domain.ru:key1:/etc/opendkim/key1.private
 +
   * vi /etc/opendkim/SigningTable   * vi /etc/opendkim/SigningTable
 +
      @domain.ru key1      @domain.ru key1
 +
   * systemctl restart opendkim postfix && systemctl status opendkim postfix\\   * systemctl restart opendkim postfix && systemctl status opendkim postfix\\
  
postfix_spf_dkim.1721551012.txt.gz · Last modified: 2024/07/21 08:36 by ryas