[Mailman-Users] mailman + spamassassin

Jonas Meurer jonas at freesources.org
Thu Mar 13 20:42:33 CET 2003


On 13/03/2003 Dave Stern - Former Rocket Scientist wrote:
> It's theoretically possible but really messy. You'll still need an entry in
> aliases for each list eg:
> 
> listname: "|/usr/local/bin/procmail -m /etc/procmailrc"
>    and /etc/procmailrc will be rather universal, first running spamassassin
> followed by something like

Yes, but this alias is also needed if I use no spamfilter.

> :0
> |/etc/mailman/mail/wrapper post $LISTNAME
> 
> the tricky part is figuring out how to pass it the $LISTNAME param.
> The only way I know to get the listname is from some massive processing of
> the message itself, probably parsing it from the List-Post: header (but only
> if it exists ie what if you have other mbx'es on the list machine receiving
> mail...)  so if you do figure out how to do this, I'd love to see it.

Mh, this is better: as alias:
listname: "|/usr/local/bin/procmail -m LISTNAME=listname /etc/procmailrc"

then you can use $LISTNAME in procmail.

bye
 mejo

-- 
Efficiency and progess is ours one more
Now that we have the Neutron bomb
It's nice and quick and clean and gets things done
Kill kill kill kill kill the poor tonight



More information about the Mailman-Users mailing list