Patrick

add domain, switch from Details tab to Emails and check content box "DNS Information" on right side. click on "Show more information" and copy dkim stuff for entering in provider dns settings.

i got it run with following steps: *** replace "your-domain.xyz" with your real domain...

1. transform pkey to rsa key with via console:

extract private key for public string to set DNS txt dkim._domainkey value
file /opt/tinycp/domains/your-domain.xyz/dkim.private.key 
publik key extrahieren (for PKCS#8 to RSA) und rsa key erstellen
openssl pkey -in /opt/tinycp/domains/your-domain.xyz/dkim.private.key -pubout -outform PEM 
openssl rsa -in /opt/tinycp/domains/your-domain.xyz/dkim.private.key -out /opt/tinycp/domains/your-domain.xyz/dkim.private.rsa.key

2. replace dkim_private_key at remote_transport in exim4.conf:  

comment out this like here:
#dkim_private_key = /opt/tinycp/domains/${if eq {$sender_address_domain}{} {${domain:$reply_address}}{$sender_address_domain} }/dkim.private.key    

and insert this:

dkim_private_key = ${lookup{$sender_address_domain}dsearch{/opt/tinycp/domains/}{/opt/tinycp/domains/$value/dkim.private.rsa.key}}

either is prevents untaind permission error an uses rsa instead of pem.

3. finally set permission and of rsa key to user and group debian-exim for directory "/opt/tinycp/domains/your-domain.xyz" and dkim.private.rsa.key => replace "your-domain.xyz" with your domain! commands:

chown Debian-exim:Debian-exim /opt/tinycp/domains/your-domain.xyz/dkim.private.rsa.key 
chmod 640 /opt/tinycp/domains/your-domain.xyz/dkim.private.rsa.key
chown Debian-exim:Debian-exim /opt/tinycp/domains/your-domain.xyz
chmod 750 /opt/tinycp/domains/your-domain.xyz

It took 2 days to find out ;-)

Join our Discord server
Write a reply Edit a reply