>> I'm looking to conditionally forward some emails that arrive at my >> server, specifically ones which are not flagged by my spam filter... >> I'm running qmail-ldap with qmail-queue-scanner.pl and spamassassin. >> The forwarding is currently done with the ldap attribute >> mailforwardingaddress for each user. >>
>There are two solutions. >a) use deliveryProgramPath LDAP attribute to specify your filter >b) use a extended default delivery rule. Nobody said that the aliasempty > may only be set to ./Maildir/. > Thanks.. this definitely got me on the right track and everything seems to be working the way I want, but after playing around and setting things up the way I think they should work, I wanted to pass it back for a quick peer review... I chose to use option a and have set both qmaildotmode (ldapwithprog) and deliveryprogrampath as ldap attributes for the users that require this (bypassing the control file). Since I want to always receive mail into the maildir, I wrote a script to wrap the condredirect and exit with 0. I call this script from deliveryprogrampath passing it the emailaddress that I want to forward to. The script looks like the following: #!/bin/sh /var/qmail/bin/condredirect "$1" sh -c '822field X-Spam-Status | grep -iqv Yes' exit 0 Basically, forwarding everything where the X-Spam-Status doesn't have the 'Yes' string. Should I be good to go or am I asking for trouble somehow? Thanks again... Gary ---------------------------------------------------------------------------- Email in a Flash! http://www.goowy.com
