Re: [Exim] logging script names invoking exim

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Jens-Ingo Brodesser
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] logging script names invoking exim
On Tue, 11 Nov 2003, Jens-Ingo Brodesser wrote:

> i would like to log in the mainlog the name (path) of cgi or php
> scripts invoking exim on our webservers. this should enable us to tell
> exactly which script has send what email.


If your scripts invoke Exim directly (i.e. NOT using SMTP over TCP/IP)
and you have control over the command line that they use, you could make
the calling uids trusted, and then use the -oMt command line option to
set an "ident string". This is logged as U=

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book