Re: [exim] unable to use $home variable in accept router?!

Top Page
Delete this message
Reply to this message
Author: Andrew C Aitchison
Date:  
To: juergen.edner
CC: exim-users
Subject: Re: [exim] unable to use $home variable in accept router?!
On Thu, 15 Oct 2020, Jürgen Edner via Exim-users wrote:

> My conclusion is, that although the check_local_user function is called
> and the local user is found (getpwnam() succeeded uid=2001 gid=100) and the
> $home variable is set correctly, the access priviliges are not
> changed for the following exists command which results in a condition
> failure.
>
> I've also tried to replaced the "condition" by a "require_files" statement,
> but this doesn't work either. So it seems that there is
> no way to use this condition check in combination with an unauthenticated
> delivery, except I would alter the directory access
> rights.


Routers and transports have the options "user" and "group" (chapters 
15 and 24) which allow you to change the user/group that exim runs as
for these actions. For example, the procmail example in chapter 29.6
includes the lines
     user = $local_part_data
     group = mail



-- 
Andrew C. Aitchison                    Kendal, UK
             andrew@???