On Thu, 11 Jun 1998, Dave C. wrote:
> Does anyone have any idea how I can force a specific sender for
> messages generated locally, if exim is being called with a
> specific EGID, regardless of the EUID?
[snip]
> I'll note this box also server as an SMTP relay, so this header/sender
> modification should not apply to any mail received from a remote
> host...
The development Exim has $originator_{uid,gid} which can be tested for
the uid/gid of the process that called Exim to submit the message. (This
is in the 1.927 alpha testing version.) So you could probably set up a
rewrite rule something like
*@* "${if eq{$originator_gid}{1234}{newaddress}fail}" F
--
Philip Hazel University Computing Service,
P.Hazel@??? New Museums Site, Cambridge CB2 3QG,
ph10@??? (sic) England. Phone: +44 1223 334714
--
*** Exim information can be found at
http://www.exim.org/ ***