Marc Perkel wrote:
>
> OK - trying to do something simple but can't get it to work.
>
> In an ACL - if I trigger a condition - I want to write the IP address
> ofthe host that connected to me to a file. How do I do that?
>
Untested, but should get you on the right track.
condition hosts = *
log_message = \
${ \
run{/usr/exim/bin/exim-echo $sender_host_name;\
$sender_host_address;CONNECT /var/spool/exim/echo-file} \
{Connection from $sender_host_address logged} \
{Connection from $sender_host_address logged} \
}
where /usr/exim/bin/exim-echo is:
<SCRIPT>
#!/bin/sh
echo $1 >> $2
return 0
</SCRIPT>
--
--EAL--
--