Applications like reputation systems require close integration of exim with a
database. All the infos exim is gathering during reciption are recorded in the
database. This is done using the lookup query facility of exim, which also can
insert/update data in the db.
Information about outgoing traffic is vital for reputation systems.
Unfortunately exim currently has no hook to set up a query at time of completed
This enhancement request proposes a small addition to the exim code base,
including one new global option and 4 global variables. The option allows to
define a query with several variables to be expanded/executed at delivery
completion time. The 4 variables allow access to delivery details and are used
in the query.
The included patch has been tested with a PostgreSQL database on FreeBSD 8.0.
An example is in doc/doc-txt/experimental-spec.txt.