Author: Jeremy Harris Date: To: exim-users Subject: Re: [exim] running an external program on messages data
On 11/11/2018 18:35, Ian Zimmerman via Exim-users wrote: > On 2018-11-11 17:49, Jeremy Harris wrote:
>
>>> What is the recommended/canonical way to run an arbitrary external
>>> process on a mail that is being processed and capture the output of
>>> the process so it can be used for expansion?
>>
>> The malware ACL condition, with your choice of scanner type "sock" or
>> "cmdline".
>
> Yea, I thought about that too. Feels like the cleanest solution, but
> ... it is too early. I need to delay the program until delivery time.
That's getting a bit specialised... will the message content remain
unaltered, and you just need to extract and develop something for
use at transport time? Do repeat calls (e.g. thanks to failed
deliveries not matter?
If so, find a transport option that is expanded and that you can
insert a dummy expansion in, that always results in a correct value.
Use a ${acl } expansion, to a custom ACL which makes a malware call.
--
Cheers,
Jeremy