Websieve for Procmail setup. Here's what you need to do to get websieve to generate procmail rules. Copy filter.pl, auth.pl and procmail.cyrus (from the procmail subdirectory) to a directory of your choice. modify filter.pl's parameters to reflect your local settings as well as the location of your auth.pl, and user directory structure to store your user procmail rules. Don't forget to also set the adminuid and adminpass of an LDAP user that has read access to the 'matchingrules' LDAP attribute of all users. You can copy "procmail.cyrus" to /etc. Create the directory structure where your users recipes will be stored. Remember, it must be writeable by the "cyrus" user. Setup your MTA to deliver to procmail. This will vary if you're using sendmail or other MTA. I use postfix so I'll describe that setup: Set the following parameters in the corresponding postfix config files: in main.cf: mailbox_transport = procmail in master.cf: procmail unix - n n - - pipe flags=R user=cyrus argv=/usr/bin/procmail -p /etc/procmail.cyrus CYUSER=${user} EXTENSION=${extension} RECIP=${recipient} - change the location of the procmail.cyrus file to your location setup. Set $useprocmail=1 and in websieve.conf (at the bottom in the supplied copy) Also set the other parameters to suit your location. Note: IMPORTANT: Don't forget to set the secret key in the X-Customfilters: line to match the one in websieve.conf Theory of Operation - when a rule is created and saved, the pseudo rulesets are saved into the users 'matchingrules' LDAP attribute. - an email is sent to the 'cyrus' user containing the user id of the user, and a secret key to identify the server. - the email is passed through the procmail.cyrus rc file and is caught by the first rule for the 'cyrus' user. Upon a match it pipes the email to the "filter.pl" program which extracts the uid and then connects to the LDAP server, and extracts the pseudo code from the user's 'matchingrules' attribute. - filter.pl then converts the pseudo code to an actual procmail recipe file, creates the users vacation messages, reply files if needed in the common recipe directory. This filter only runs when a user submits a change to his rules. - any emails received go through the procmail.cyrus recipe file which then looks for a matching user recipe file and if found processes that users recipes or simply calls deliver to send the mail to the user's inbox.