Re: [exim] Unable to read domainkey file

Etusivu
Poista viesti
Vastaa
Lähettäjä: Luca Bertoncello
Päiväys:  
Vastaanottaja: Exim-Users
Aihe: Re: [exim] Unable to read domainkey file
Am 20.03.2021 um 09:43 schrieb Andrew C Aitchison via Exim-users:

Hi again

> The message says "Tainted filename"
> recent versions of exim refuse to open files with names derived from the
> incoming message unless they have been "sanitised" eg by a database
> lookup. To be certain we would have to see how the filename is created
> in your config file, but you *may* be able to fix this by changing
> $domain to $domain_data


I got it!

I had to recompile Exim with:

    LOOKUP_DSEARCH=yes


Then I changed my transport so:

remote_smtp_DK:
driver = smtp
helo_data = $smtp_active_hostname
dkim_canon = relaxed
dkim_domain = ${lookup {$sender_address_domain} dsearch
{/etc/exim/domainKeys/}}
dkim_selector = ${substr{0}{4}{$tod_zulu}}
dkim_private_key = /etc/exim/domainKeys/$dkim_domain/$dkim_selector.priv
interface =
${lookup{$sender_address_domain}lsearch{/etc/exim/mailouts}{$value}{<;
DEFAULT_IPv4 ; DEFAULT_IPv6}}
tls_try_verify_hosts = !*

Now it works. No errors/warnings in the exim log and E-Mails signed with
DKIM.

Hope to help someone other...

Regards
Luca Bertoncello
(lucabert@???)