Re: [exim] 4.94 - De-tainting without lookup?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Evgeniy Berdnikov
Data:  
Para: exim-users
Assunto: Re: [exim] 4.94 - De-tainting without lookup?
On Sat, Jun 27, 2020 at 10:53:16AM +0100, Jeremy Harris via Exim-users wrote:
> On 26/06/2020 08:50, Matthias Hörmann via Exim-users wrote:
> >> # save copy of outgoing messages
> >> traffic_tap_save_copy:
> >> driver = appendfile
> ...
> >> create_directory = true
> >> directory = /var/mailarchive/outgoing/$sender_address_domain/$sender_address_local_part/$domain/$local_part/
>
> # directory must exist

^^^^^^^^^^^^^^^^^^^^^^^^
The question is what to do if it does not exist? It's impossible to predict
addressees of arbitrary mail list, so no way to create subdirs in advance.

> route_traffic_tap:
>  driver = redirect
> ...
>  set r_dir = ${lookup {$sender_address_domain}     dsearch,ret=full {/var/mailarchive/outgoing}}
>  set r_dir = ${lookup {$sender_address_local_part} dsearch,ret=full {$r_dir}}
>  set r_dir = ${lookup {$domain}                    dsearch,ret=full {$r_dir}}
>  set r_dir = ${lookup {$local_part}                dsearch,ret=full {$r_dir}}
>  data = $local_part@$domain, $r_dir/
>  directory_transport = traffic_tap_save_copy
> ...

>
> # directory is already set
> traffic_tap_save_copy:
> driver = appendfile


--
Eugene Berdnikov