You are here: Foswiki>HomeInfra Web>SPFDKIM (13 Sep 2019, AdminUser)Edit Attach
https://debian-administration.org/article/718/DKIM-signing_outgoing_mail_with_exim4

... or in summary follow the steps below

Generate the keys

cd /etc/exim4
openssl genrsa -out dkim.private 1024
openssl rsa -in dkim.private -out dkim.public -pubout -outform PEM

Make sure the exim user can read the keys.

Apply the keys in /etc/exim4.conf.localmacros
# DKIM loading
DKIM_CANON = relaxed
DKIM_DOMAIN = ${sender_address_domain}
DKIM_PRIVATE_KEY = CONFDIR/dkim.private
DKIM_SELECTOR = dkim

Update your exim configuration with update-exim4.conf and restart the mail server.

Add the public key to DNS TXT records for SPF and DKIM
; SPF
vervest.org.    IN      TXT "v=spf1 a mx -all"
; DKIM
dkim._domainkey.vervest.org. IN TXT "v=DKIM1; k=rsa; s=email; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDJHl/pdmbD0MeemgIC1QCSXR2jqZtTFvQy8HIdEMrpw1kH0k02sffDkMTK/D/WGXbLJoRzr2rOcBNFc6C+X1R/MmTWvOQ7DXgWZHPWcsGxOY6l2LVFtCeGDJb9jER8FXs28tkW1V7rTgKqcsm5TnzBYZv8LHWClwKlkNaWNCjUQIDAQAB"
Topic revision: r2 - 13 Sep 2019, AdminUser
This site is powered by FoswikiCopyright © by Eddy Vervest