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


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to