Quoting Jaap Winius <[email protected]>:

My first attempt to configure DKIM on a Debian wheezy box running Exim4 4.80 (exim4-daemon-heavy) keeps ending with this error:

  DKIM: signing failed (RC -102)

Solved this one myself. All I really did was to use a 2048-bit key instead of the 256-bit key that I had created earlier and the error disappeared. The full set of commands that I used to generate both the private and public keys was:

~# CONF=/etc/exim4 ; BITS=2048 ; SELECTOR=rsa1 ; openssl genrsa -out $CONF/dkim.$BITS-bit.private.$SELECTOR $BITS ; openssl rsa -in $CONF/dkim.$BITS-bit.private.$SELECTOR -out $CONF/dkim.public.der -pubout -outform DER ; base64 < $CONF/dkim.public.der > $CONF/dkim.$BITS-bit.public.$SELECTOR ; rm $CONF/dkim.public.der ; chgrp Debian-exim $CONF/dkim.*-bit.private.$SELECTOR ; chmod 640

Moreover, the Exim variables that I've set are:

  DKIM_DOMAIN = umrk.nl
  DKIM_SELECTOR = exm
  DKIM_PRIVATE_KEY = CONFDIR/dkim.2048-bit.private.rsa1

I left out the 'DKIM_CANON' variable because it's set to 'relaxed' by default.

Cheers,

Jaap

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to