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

Pàgina inicial
Delete this message
Reply to this message
Autor: Lena
Data:  
A: exim-users
Assumpte: 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"}}