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

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Subject: 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"}}