Re: [exim] $home in filter file, empty variable

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mike Brudenell
Date:  
À: Exim Users
CC: teamea
Sujet: Re: [exim] $home in filter file, empty variable
Hi,

If you read about the *$home* variable the *Specification* you'll find it
says:

*$home*

When the *check_local_user* option is set for a router, the user’s home
directory is placed in $home when the check succeeds. In particular, this
means it is set during the running of users’ filter files. A router may
also explicitly set a home directory for use by a transport; this can be
overridden by a setting on the transport itself.


You have *no_check_local_user* set on your router, preventing it from
looking up the username in your user database to obtain the account's home
directory, so *$home* can't be populated.

You either need to remove that option, or use the
*router_home_directory* option
in your router to obtain and set the directory (overriding anything
obtained by *check_local_user* is you use both).

Cheers,
Mike B-)

On 8 August 2016 at 13:42, <teamea@???> wrote:

>
>
> Hi
>
> This has been bugging me for days... I've got $local_part, $domain etc
> etc, but the variable $home is missing, anyone got any idea why?
>
> I'm calling the filter like this:
>
> central_filter_test:
> driver = redirect
> directory_transport = address_file
> file = /etc/exim/centralfiltertest.exim
> no_check_local_user
> no_verify
> user = root
> allow_filter
> allow_fail
>
> All I got in the filter file is this
>
> # Exim filter
>
> logfile /var/log/debug.log
>
> logwrite "$tod_log home=$home mi=$message_id domain=$original_domain
> localpart=$local_part ip=$sender_host_address sender=$sender_address
> header_from=$header_from: subject=$header_subject"
>
> it's all there except the value of $home, anyone got an idea?
>
> Rgds, team mail
>
>
> --
> ## List details at https://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/





--
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm