Re: [exim] Tainted filename on DKIM signing in 4.94

Góra strony
Delete this message
Reply to this message
Autor: Max Kostikov
Data:  
Dla: exim-users
Temat: Re: [exim] Tainted filename on DKIM signing in 4.94
Ok, I found a solution (thanks, Jeremy!) in the previous thread.
So now this configuration works fine

begin transports

   SENDER_DOMAIN         = ${if 
def:h_from:{${lc:${domain:${address:$h_from:}}}}{$qualify_domain}}
   KEYNAME               = key${eval10:${substr{4}{2}{$tod_logfile}}%2}
   DKIM_PATH             = /usr/local/etc/exim/dkim
   DKIM_FILE             = SENDER_DOMAIN.KEYNAME
   DKIM_DEFAULT          = $qualify_domain.KEYNAME


remote_smtp:
   driver                = smtp
   dkim_domain           = SENDER_DOMAIN
   dkim_selector         = KEYNAME
   dkim_private_key      = ${lookup {DKIM_FILE} dsearch,ret=full 
{DKIM_PATH}}
   arc_sign              = $primary_hostname : KEYNAME : 
DKIM_PATH/DKIM_DEFAULT : timestamps
   ...


Max Kostikov via Exim-users писал 2020-06-06 12:25:
> I found one more issue found after upgrade to latest Exim 4.94.
> Now this is related to outgoing messages DKIM signing.
>
> Jun 6 12:17:04 beta exim[11180]: 1jhVss-000ORe-45 Tainted filename
> '/usr/local/etc/exim/dkim/kostikov.co.key0'
> Jun 6 12:17:04 beta exim[11180]: 1jhVss-000ORe-45 unable to open file
> for reading: /usr/local/etc/exim/dkim/kostikov.co.key0
>
> In Exim configuration it defined using global variabled at the start
> of transports section
>
> begin transports
>
>   SENDER_DOMAIN         = ${if
> def:h_from:{${lc:${domain:${address:$h_from:}}}}{$qualify_domain}}
>   KEYNAME               = key${eval10:${substr{4}{2}{$tod_logfile}}%2}
>   DKIM_FILE             = 
> /usr/local/etc/exim/dkim/SENDER_DOMAIN.KEYNAME
>   DKIM_DEFAULT          = 
> /usr/local/etc/exim/dkim/$qualify_domain.KEYNAME

>
> remote_smtp:
>   driver                = smtp
>   dkim_domain           = SENDER_DOMAIN
>   dkim_selector         = KEYNAME
>   dkim_private_key      = ${if exists{DKIM_FILE}{DKIM_FILE}{}}
>   arc_sign              = $primary_hostname : KEYNAME : DKIM_DEFAULT :
> timestamps
>   ...

>
> How can I fix this?
>
> --
> With best regards,
> Max Kostikov
>
> W: https://kostikov.co | DeltaChat: mk@???


--
With best regards,
Max Kostikov

W: https://kostikov.co | DeltaChat: mk@???