[exim] $local_part_data is empty

Top Page
Delete this message
Reply to this message
Author: Leon Fellows
Date:  
To: Exim-users
Subject: [exim] $local_part_data is empty
Hi,

I have a problem with this router:

userforward:
debug_print = "R: lp_data: $local_part_data d_data: $domain_data"
driver = redirect
domains = dsearch;/etc/mail/domains
local_parts = lsearch;/etc/mail/domains/$domain_data
#local_parts = leon
file = /home/mailusers/${domain_data}/${local_part_data}/.forward

The $domain_data displays the domain, as expected.
But the $local_part_data is empty.

If I define local_parts as above, then it stays empty.
If I use this definition:
local_parts = leon
it works.

The file is readable and not empty. I can find the $local_part in there.
Even with this command:
su Debian-exim -p -c 'cat /etc/mail/domains/fairtragen.de'

I am using Exim version 4.94.2 #2 built 13-Jul-2021 16:04:57
on a Debian bullseye.


What am I doing wrong?


Kind Regards,
Leon