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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Lena
日付:  
To: exim-users
題目: 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"}}