I use this soloution:
#>openssl genrsa -out /usr/local/etc/exim/dkim/domain.org.key 1024
Generating RSA private key, 1024 bit long
modulus...++++++.....................................................................++++++e
is 65537 (0x10001)
#>chown mailnull:wheel /usr/local/etc/exim/dkim/chmod u=rx,go=
/usr/local/etc/exim/dkim/
#>chown mailnull:wheel /usr/local/etc/exim/dkim/chmod u=rx,go=
/usr/local/etc/exim/dkim/
for create txt dkim:
#> openssl rsa -in /usr/local/etc/exim/dkim/domain.org.key
-puboutwriting RSA key
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQE.....
-----END PUBLIC KEY-----
I add this key for domain.org :
dkim._domainkey TXT "k=rsa;
p=MIGfMA0GCSqGSIb3D.........;"
I change exim.conf:
## DKIM:
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE =
/usr/local/etc/exim/dkim/${lc:${domain:$h_from:}}.key
DKIM_PRIVATE_KEY = ${if
exists{DKIM_FILE}{DKIM_FILE}{0}}
remote_smtp:
driver = smtp
dkim_domain = DKIM_DOMAIN
dkim_selector = dkim
dkim_private_key = DKIM_PRIVATE_KEY
But mails are sending without DKIM Please help me :(