Version: 1.2.6-1

With the --post option it is fairly simple to create moderation
whitelists by using a pre-EoC filter.  I just built a moderation
whitelisting system for a EoC mailing list as follows:

First, note that I am using Postfix and a separate lists domain here.
All mail to [EMAIL PROTECTED] gets sent to jyvilists-foo on
the server.  I'm using Maildrop as the MDA and its filter language to
preprocess EoC mail as follows:

import SENDER
import LOCAL
import RECIPIENT

IGNORE=`enemies-of-carlotta --is-list --skip-prefix=jyvilists- 
--domain=lists.jyvaskylanvihreat.fi --name $LOCAL`
if ($RETURNCODE != 0)
{
        echo "no such address $RECIPIENT ($LOCAL)"
        EXITCODE=67
        exit
}
EOC_OPT=''
if ($LOCAL eq 'jyvilists-ehdokkaat' && lookup($SENDER,'ehdokkaat-whitelist') )
{
        EOC_OPT='--post'
}
to "|enemies-of-carlotta --skip-prefix=jyvilists- 
--domain=lists.jyvaskylanvihreat.fi $EOC_OPT --incoming"

Now, any address in the ~jyvilists/ehdokkaat-whitelist file gets past
the ehdokkaat list moderation automatically, while all other submissions
get processed according to the list's moderation settings.

Similar mechanisms can be built with other mail filtering languages (like
Procmail), and the technique is also amendable to blacklisting.

-- 
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/

Attachment: signature.asc
Description: Digital signature

Reply via email to