Re: [exim] BerkeleyDB in ACL or transport

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: David Cannings
CC: exim-users
Subject: Re: [exim] BerkeleyDB in ACL or transport
David Cannings said:
> Is there any way to get Exim to open a BerkeleyDB and increment a value in
> it inside an ACL or transport? I currently keep track of other
> statistics in a similar way for HTTP using a custom logging script and
> rrd.
>
> If somebody could suggest a simple way to update the count I would be very
> grateful.


I don't believe there's a way to achieve this in native Exim, but you can
use a ${run expansion in an ACL or a router to call an external
prog/script to do the job... or a ${readsocket to communicate with a
daemon.

An acl clause such as

warn set acl_m0 = ${run <command> <args>}}

would do it.

In a router, you could probably put the above in a condition which will
always return true.

Peter