Re: [exim] how can get user group

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Vasiliy G Tolstov
Datum:  
To: Graeme Fowler
CC: exim-users
Betreff: 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