Re: [Exim] Logging redirects to a database

Etusivu
Poista viesti
Vastaa
Lähettäjä: Drav Sloan
Päiväys:  
Vastaanottaja: Jeff
Kopio: exim-users
Aihe: Re: [Exim] Logging redirects to a database
Jeff wrote:
> After finding nothing useful in the archives, I was wondering if anyone has
> tried/succeeded in logging (message specific) information to a database..


have you tried adding an ACL:

  warn     message      = X-woteva:
           condition = ${run{ /path/to/command $sender##....}}


Where /path/to/command is some script that does the SQL handling and
the $sender##.... is the data to be passed to the script seperated
by something that marks a feild seperator (## in this example).

Failing that you are after alot more specific handling and in which
case look at coding a local_scan() function in C.

Regards

D.