Peter Bowyer wrote:
> On 12/02/2008, Bernd Jendrissek <[EMAIL PROTECTED]> wrote:
> > Fine, I could use exim_user = bernd, but then my colleague
> > charles needs his own copy of this config file.  I thought I could use
> > exim_user = $caller_uid, but exim complains:
> >   seeking password data for user "$caller_uid": cache not available
> >   getpwnam() returned NULL (user not found)
> > What to do?
>
> exim_user is not expanded. But you could perhaps use a macro which you
> define on the command line with
>
> exim -DEXIM_USER=bernd -bd ...
>
> and
>
> exim_user = EXIM_USER
>
> in the config file. Untested, this may have side-effects, buyer beware.
>   
Thanks, that works a treat.  In fact it's perfect for a "make check" 
type target, where I can specify -DEXIM_USER=`id -u`.


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to