Re: [exim] how can get user group

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Graeme Fowler
日付:  
To: exim-users
題目: Re: [exim] how can get user group
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