Re: [Exim] problem changing UID

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Michael Collin Nielsen
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] problem changing UID
On Wed, 17 Jul 2002, Michael Collin Nielsen wrote:

> If I used a -D<macro>=<value> would that trigger the same problem ?


Yes. An ordinary user is not permitted to call Exim with a modified
configuration file.

I assume you are using queue_only in the -bd configuration, so no
deliveries happen from that daemon? If so, there should be no problem
using -C (or -D) on that exim.

Otherwise, I think you may end up either compiling a different binary,
or patching a copy of the binary. There actually is space in the binary
for this kind of hackery. Look in the binary for this string

--------------Space to patch spool_directory

It isn't actually very hard to write a Perl script to copy the binary
and make the patch en route.

Wait a minute. The value of spool_directory is expanded. If there was
only some way you could tell the difference between the two daemons...

The first thing I can think of is that you start the -q daemon from a
different uid than the -bd daemon, and test $caller_uid.

Another possibility is to use -oMr to set $received_protocol. This of
course is not relevant for daemons, but there's nothing to stop you
setting it.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.