Mailing List Archive

"taint-safe" alternative for $sender_address_domain ?
Hello,

we recently updated a pretty old exim installation.

It still had "tainted" configuration lines.

So far we had had success replacing e.g. $domain with #domain_data and $local_part with $local_part_data

However we are currently stuck on $sender_address_domain. According to the documentation there is no straight-forward replacement, e.g. $sender_address_domain_data

What is best way to go around this? The configuration line in questions looks something like this:

directory = ${lookup mysql{select wert from konstanten where name = "mailpfad" and id = 1}}/${lc:$sender_address_domain}/outgoing/


Regards,
Kristijan
--
## 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/
Re: "taint-safe" alternative for $sender_address_domain ? [ In reply to ]
On 12/05/2021 14:51, Kristijan Savic - ratiokontakt GmbH via Exim-users wrote:
> directory = ${lookup mysql{select wert from konstanten where name = "mailpfad" and id = 1}}/${lc:$sender_address_domain}/outgoing/

${lookup {${lc:$sender_address_domain}} \
dsearch,ret=full \
{${lookup mysql{select wert from konstanten where name = "mailpfad" and id = 1}}} \
}/outgoing/

--
Cheers,
Jeremy

--
## 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/
Re: "taint-safe" alternative for $sender_address_domain ? [ In reply to ]
Thank you, that helped a lot!

Kind regards,
Kristijan

--------------------------------------------------------

________________________________________
Von: Exim-users <exim-users-bounces+ks=ratiokontakt.de@exim.org> im Auftrag von Jeremy Harris via Exim-users <exim-users@exim.org>
Gesendet: Donnerstag, 13. Mai 2021 00:42
An: exim-users@exim.org
Betreff: Re: [exim] "taint-safe" alternative for $sender_address_domain ?

On 12/05/2021 14:51, Kristijan Savic - ratiokontakt GmbH via Exim-users wrote:
> directory = ${lookup mysql{select wert from konstanten where name = "mailpfad" and id = 1}}/${lc:$sender_address_domain}/outgoing/

${lookup {${lc:$sender_address_domain}} \
dsearch,ret=full \
{${lookup mysql{select wert from konstanten where name = "mailpfad" and id = 1}}} \
}/outgoing/

--
Cheers,
Jeremy

--
## 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/

--
## 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/