procmail
[Top] [All Lists]

Procmail shell filters?

2008-02-26 10:58:26
   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?


Tim Tyler
Network Engineer - Beloit College
tyler(_at_)beloit(_dot_)edu 

____________________________________________________________
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>