Re: [exim] Piping message in ACL DATA

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: admin
CC: Exim Users List
Onderwerp: Re: [exim] Piping message in ACL DATA
On Wed, 22 Aug 2007, admin@??? wrote:

> Is there any way (outside standard connection to SA via
> "malware" condition) to pipe message into $run in acl_data? Smth
> like that would definitely make Exim shine (even more, that is :-)...


As Magnus pointed out, this is not directly available, though it can be
fudged up.

The forthcoming Exim 4.68 contains a new option, -Mvc, which outputs a
message in RFC2822 format. So it should be possible to do something like

${run {/bin/sh}{-c 'exim -Mvc $exim_message_id | your-command'}...

which is a bit neater, but getting the return code back won't be
straightforward. Another possibility is to write a script (or program)
of your own that does the same thing, but gives back the return code
that you want.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book