procmail
[Top] [All Lists]

Re: Procmail shell filters?

2008-02-28 06:42:31
Am 2008-02-26 11:56:08, schrieb Tim Tyler:
   Procmail experts,

   Is it possible to set up a filter in .procmailrc that checks 
against whether an address is in a particular ldap group before 
allowing or rejecting the message?

Basically, I want the following:

:0:
* ^TOtestfilt
* ^From username is a member of a ldap group
! testfilter

So I need to figure out how to get the 3rd line to check if the 
username is a member of a particular ldap group.  Does this line need 
to call a shell script that returns a boolean value?  If so, what 
syntax might we use to call a script which checks our ldap database 
for appropriate credentials?

    :0:
    * ^TOtestfilt
    * ^From username is a member of a ldap group
    * ? testfilter ${DATABASE} ${USERNAME}
    {
      do
      something
      with
      it
    }

The proram "testfilter" should either returning
an ExitStatus of "0" or "1".  Thats all.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>