Not sure how you could get sendmail to do it, but with perl you could probably do it in about 20-50 lines. Just pull the messages one by one, if spamc exits 0, send it along.
On Wed, Nov 03, 2004 at 09:29:02PM -0800, Ranga Nathan wrote: > I want to filter my mail from sendmail through SpamAssassin but redirect > to my cox.net address. > > Using Sendmail, I used to redirect all my mail to my cox.net address. > Needless to say 99% is spam! Since I stopped redirecting, I have some 28MB > worth of mail sitting somewhere, waiting to be delivered. I want that 28MB > mail to be filtered and forwarded to my cox.net address. > > I understand that SpamAssassin requires filtering via procmail. So I set > up /etc/.procmailrc to say: > DROPPRIVS=yes > :0fw > * < 256000 > | /usr/bin/spamc > > and then brought up the /usr/bin/spamc daemon. > > What do I have to tell Sendmail to filter this 28MB of mail through > procmail, and then forward only non-SPAM mail to my cox.net address? > > No matter what I do, I have to filter the existing 28MB of mail before > doing anything else. > > Can someone help this idiot? > > Thanks > > > __________________________________________ > Ranga Nathan / CSG > Systems Programmer - Specialist; Technical Services; > BAX Global Inc. Irvine-California > Tel: 714-442-7591 Fax: 714-442-2840 > > _______________________________________________ > Boston-pm mailing list > [EMAIL PROTECTED] > http://mail.pm.org/mailman/listinfo/boston-pm > -- www.suave.net - Anthony Ball - [EMAIL PROTECTED] OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Wheel of Morality, turn turn turn...." -- Wakko _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

