Re: [exim] how can get user group

Top Page
Delete this message
Reply to this message
Author: Vasiliy G Tolstov
Date:  
To: Graeme Fowler
CC: exim-users
Subject: Re: [exim] how can get user group
В Втр, 15/09/2009 в 14:01 +0100, Graeme Fowler пишет:
> On Tue, 2009-09-15 at 16:23 +0400, Vasiliy G Tolstov wrote:
> > Why this is not work?
>
> Firstly, you want field 3 in most passwd files, not 4 (unless you have
> it in the gecos field).
>
> Try this, which will return "true" if the user's GID is 601:
>
> ${if eq{\
>          ${extract{3}{:}{${lookup{$local_part}lsearch{/etc/passwd}}}\
>          }}\
>          {601}\
>          {true}\
>          {false}\
>    }

>
> You can try this by passing that expansion to "exim -be".
>
> Graeme
>


Thank You! This work's fine (in non_smtp i change local_part to
sender_ident)

>


--
Vasiliy G Tolstov <v.tolstov@???>
Selfip.Ru