Re: [exim] DKIM signing for multiple domains

Top Page
Delete this message
Reply to this message
Author: Andrew Colin Kissa
Date:  
To: exim-users
CC: odhiambo
Subject: Re: [exim] DKIM signing for multiple domains

> On 25 Sep 2018, at 13:57, Odhiambo Washington <odhiambo@???> wrote:
>
> Thank you. However, for some reason this is generating an error:
>
> 2018-09-25 14:53:15 1g4jHp-000B76-VQ signing_init: error:0906D06C:PEM routines:PEM_read_bio:no start line
> 2018-09-25 14:53:15 1g4jHp-000B76-VQ DKIM: signing failed: PRIVKEY
> 2018-09-25 14:53:15 1g4jHp-000B76-VQ DKIM: message could not be signed, and dkim_strict is set. Deferring message delivery.


Sorry about that butter fingers typo in the dkim_private_key part it should have one curly bracket as follows.

dkim_private_key = ${if exists{/etc/pki/tls/dk/${lc:$sender_address_domain}-dkim.priv.key}\
    {/etc/pki/tls/dk/${lc:$sender_address_domain}-dkim.priv.key}{0}}


Or if you prefer one line.

dkim_private_key = ${if exists{/etc/pki/tls/dk/${lc:$sender_address_domain}-dkim.priv.key}{/etc/pki/tls/dk/${lc:$sender_address_domain}-dkim.priv.key}{0}}