cd /usr/ports/mail/opendkim
make install clean
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
opendkim-genkey -D /var/db/opendkim -d <domain.name> -s
/var/db/opendkim — ,
<domain.name> - (example.com)
selector — , (, mail). DNS exim`.
:
opendkim-genkey -D /var/db/opendkim -d example.com -s mail
, — mail.txt (mail — ) mail.private. :
cat /var/db/opendkim/mail.txt
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; t=s; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN … mpwIDAQAB" ) ; ----- DKIM key mail for example.com.
mail.txt DNS example.com, ( ):
mail._domainkey IN TXT "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGS … wIDAQAB"
DNS :
_adsp._domainkey.example.com IN TXT "dkim=unknown"
mail.private , exim . :
chown mailnull:mail /var/db/opendkim/mail.private
chmod 600 /var/db/opendkim/mail.private
config opendkim mail.private. config:
vim (or something else) /usr/local/etc/opendkim.conf
# This is a simple config file for signing and verifying
LogWhy yes
Syslog yes
SyslogSuccess yes
Canonicalization relaxed/simple
Domain example.com
Selector mail
KeyFile /var/db/opendkim/mail.private
Socket inet:8891@localhost
ReportAddress support@example.com
SendReports yes
## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList XXXX
# PidFile /var/run/opendkim/opendkim.pid
, .
C opendkim` . Exim.
3. Exim
transports:
vim /usr/local/etc/exim/configure
begin transports :
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /var/db/opendkim/mail.private #- !!!!
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
:
remote_smtp:
driver = smtp
:
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = mail # - .
dkim_private_key = DKIM_PRIVATE_KEY
4. milter_opendkim
/usr/local/etc/rc.d/milter-opendkim start
5. Exim
/usr/local/etc/rc.d/exim reload
Exim , .
DKIM :
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d= example.com; s=mail;
h=Date:Message-Id:From:Content-type:MIME-Version:Subject:To; bh=RUN…0qKg=;
b=EEla1LMRm…Q6CYJM/VHg=;
Received: from example by xxx.freehost.com.ua with local (Exim 4.80.1 (FreeBSD))
– DKIM .
, . "" . . . .
Source: https://habr.com/ru/post/163577/