Re: [exim] request help with nis user lookups

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
A: montana
CC: exim-users
Assumpte: Re: [exim] request help with nis user lookups
On Wed, 31 May 2006, montana@??? wrote:
>
> is there a way i can break down the output of this query into fields
> and populate the needed variables for exim?


You can use ${extract to get the fields out of a passwd line, but you'd be
better off setting up your machine's nsswitch so that the underlying Unix
getpwnam uses NIS and therefore Exim's normal check_local_user stuff
works.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}