Re: [exim] Running a command in a ACL?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Lena
Fecha:  
A: exim-users
Asunto: Re: [exim] Running a command in a ACL?
> From: James Isolder

> warn ratelimit = 1 / 5m / strict
>      condition = ${run{/bin/sh -c "echo ${sender_host_address} >> /usr/local/etc/exim/ratelimited_hosts"}{0}{1}}


The string (containing ${run ) is expanded under Exim user
which hasn't permissions to write to /usr/local/etc/exim/ . So, instead:

warn ratelimit = 1 / 5m / strict
     continue = ${run{/bin/sh -c "echo $sender_host_address >> $spool_directory/ratelimited_hosts"}}