Re: [Exim] Timezone setting. (Why is TZ changed? Can I disab…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Toralf Lund
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Timezone setting. (Why is TZ changed? Can I disable the setup?)
On Mon, 19 Apr 2004, Toralf Lund wrote:

> Hmmm. Depends on how you see it. I'm primarily talking about processes
> started via 'exim -bd'. Not everyone can do that, can they?


True, but it still seems dangerous, and a very "special case" feature.

Of course, there is a way to hack it. In your Exim configuration, put

TZ=<whatever default you want for non-daemon calls>
timezone = TZ

Then, when you start up the daemon, start it with

exim -bd -D TZ=$TZ

That defines a macro TZ that will override the definition in the file.
For security, however, you have to be root or exim to do that...

Not tested, just thought up off the top of my head, YMMV, etc...

But I still think there will be confusion, because other Exim processes
will see things differently.

--
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