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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Lena
Päiväys:  
Vastaanottaja: exim-users
Aihe: 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"}}