[exim] Re: Untainting data and Vacation configuration

Top Page
Delete this message
Reply to this message
Author: Glenn Gregorec
Date:  
To: exim-users
Subject: [exim] Re: Untainting data and Vacation configuration
Thank You Jeremy!  :-)

I went back and read up some on lookups (Chapter 9 - File and database
lookups) in particular.

May I get some insight as to why this lookup does not work properly:

local_parts                 =
${lookup{${lc:$local_part@$domain}}lsearch,ret=key{/usr/local/etc/dovecot/users}}

Is not the option, ret=key, supposed to return the actual lookup key?

Although the lookup yielded:
{BLF-CRYPT}$2a$05$xqWtKL1l.e3B98ISN0xbyOSROOIcMgAn6hIBZ7J9tHp/Wu28jvJfy::::::
, the next line shows another lookup.?.

emailUser in "emailUser@???"?
 list element: emailUser@???
emailUser in "emailUser@???"? no (end of list)

Is this not trying to lookup the string "emailUser" in the string
"emailUser@???"?  Should this not return true?

===
Removing ret=key from the lookup yields:

emailUser in
"{BLF-CRYPT}$2a$05$xqWtKL1l.e3B98ISN0xbyOSROOIcMgAn6hIBZ7J9tHp/Wu28jvJfy::::::"?
 list element:
{BLF-CRYPT}$2a$05$xqWtKL1l.e3B98ISN0xbyOSROOIcMgAn6hIBZ7J9tHp/Wu28jvJfy:::
emailUser in
"{BLF-CRYPT}$2a$05$xqWtKL1l.e3B98ISN0xbyOSROOIcMgAn6hIBZ7J9tHp/Wu28jvJfy::::::"?
no (end of list)


===
I am just trying to get a value into $local_part_data which is
untainted.  Is there a better way to handle this?

Again, Thank You for Your Assistance!!!

glenn


On 2024-03-21 1:41 PM, Jeremy Harris via Exim-users wrote:
> On 21/03/2024 17:59, Glenn Gregorec via Exim-users wrote:
>>   lookup yielded:
>> {BLF-CRYPT}$2a$05$xqWtKL1l.e3B98ISN0xbyOSROOIcMgAn6hIBZ7J9tHp/Wu28jvJfy::::::
>
> So the "local_users" option setting is telling Exim to try to match the
> local_part of the recipient to a local-part list which looks like
> "{BLF-CRYPT}$2a$05$xqWtKL1l.e3B98ISN0xbyOSROOIcMgAn6hIBZ7J9tHp/Wu28jvJfy::::::"
>
>
> It doesn't match that list, so this router does not fire.
>
> I think you should go back to the Exim documentation on
> "general options for routers", "lists" and "lookups".



--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/